Fix PHP extensions configuration
This commit is contained in:
parent
246d395b59
commit
2539320713
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -1,7 +1,7 @@
|
||||||
extension = pdo
|
|
||||||
extension = pdo_sqlite
|
extension = pdo_sqlite
|
||||||
extension = sodium
|
|
||||||
extension = gettext
|
extension = gettext
|
||||||
|
# Only required for the check.php script
|
||||||
|
extension = curl
|
||||||
|
|
||||||
expose_php = Off
|
expose_php = Off
|
||||||
zend_extension = opcache
|
zend_extension = opcache
|
||||||
|
|
|
@ -7,10 +7,21 @@ export PHP_INI=/etc/php/php.ini
|
||||||
|
|
||||||
if [[ $OS = "debian" ]]; then
|
if [[ $OS = "debian" ]]; then
|
||||||
mkdir -p /etc/php/8.2/fpm/
|
mkdir -p /etc/php/8.2/fpm/
|
||||||
|
ln -s /etc/php/8.2/fpm/ /etc/php/8.2/cli
|
||||||
mv /etc/php/php-fpm.conf /etc/php/8.2/fpm/
|
mv /etc/php/php-fpm.conf /etc/php/8.2/fpm/
|
||||||
export PHP_INI=/etc/php/8.2/fpm/php.ini
|
export PHP_INI=/etc/php/8.2/fpm/php.ini
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cp /etc/php.ini-development $PHP_INI
|
||||||
|
|
||||||
|
if [[ $OS = "debian" ]]; then
|
||||||
|
echo "extension = pdo" >> $PHP_INI
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $OS = "arch" ]]; then
|
||||||
|
echo "extension = sodium" >> $PHP_INI
|
||||||
|
fi
|
||||||
|
|
||||||
cat /install/php.ini >> $PHP_INI
|
cat /install/php.ini >> $PHP_INI
|
||||||
|
|
||||||
# For systemd
|
# For systemd
|
||||||
|
|
Loading…
Reference in New Issue