CT's Nextcloud, Freshrss.heimdall & mailbackup: Refractored PHP Installation
Now using external `AlpinePHPTool` script for installing/configuring php. This wil make upgrading PHP on existing containers automaticaly plausible/easier. Removed php packages from alpine.yaml and moved them to CT-Files `Config/php.pkglist` Remove PHP configurations steps from CT's init.sh and integrated them in ` AlpinePHPTool` Removed PHP timezone configuration files and intergradeded them in `AlpinePHPTool` Updated
This commit is contained in:
@@ -37,7 +37,7 @@ http {
|
||||
}
|
||||
location ~ \.php$ {
|
||||
include fastcgi_params;
|
||||
fastcgi_pass unix:/run/php-fpm83/php-fpm.sock;
|
||||
fastcgi_pass unix:/run/php-fpmPHPver/php-fpm.sock;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[heimdall]
|
||||
user = nginx
|
||||
group = nginx
|
||||
listen = /run/php-fpm83/php-fpm.sock
|
||||
listen = /run/php-fpmPHPver/php-fpm.sock
|
||||
listen.owner = nginx
|
||||
listen.group = nginx
|
||||
php_admin_value[disable_functions] = exec,passthru,system
|
||||
@@ -27,7 +27,7 @@ php_admin_value[max_input_time] = 15
|
||||
php_admin_value[cgi.fix_pathinfo] = 0
|
||||
php_admin_value[allow_url_fopen] = 1
|
||||
php_admin_value[file_uploads] = On
|
||||
php_admin_value[open_basedir] = /opt/heimdall:/run/php-fpm83/php-fpm.sock:/tmp
|
||||
php_admin_value[open_basedir] = /opt/heimdall:/run/php-fpmPHPver/php-fpm.sock:/tmp
|
||||
php_admin_value[session.use_strict_mode] = 1
|
||||
php_admin_value[session.cookie_httponly] = 1
|
||||
|
||||
|
||||
1
CT-Files/heimdall/Configs/php.pkglist
Normal file
1
CT-Files/heimdall/Configs/php.pkglist
Normal file
@@ -0,0 +1 @@
|
||||
php83 php83-ctype php83-curl php83-pdo_sqlite php83-mbstring php83-json php83-zip php83-xml php83-fpm php83-session php83-openssl php83-tokenizer php83-fileinfo
|
||||
@@ -1,2 +0,0 @@
|
||||
[Date]
|
||||
date.timezone = Europe/Amsterdam
|
||||
@@ -4,15 +4,13 @@
|
||||
rm -rf /etc/nginx/conf.d
|
||||
mv /opt/Setup/Configs/nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
#Configure Php-Fpm
|
||||
rm -rf /etc/php83/php-fpm.d/*
|
||||
mv /opt/Setup/Configs/php.conf /etc/php83/php-fpm.d/heimdall.conf
|
||||
mv /opt/Setup/Configs/phpTimezone.ini /etc/php83/conf.d/04_date_timezone.ini
|
||||
#SetupPHP
|
||||
ash /opt/Setup/Scripts/PHPTool.sh -d heimdall || exit 1
|
||||
rm /opt/Setup/Scripts/PHPTool.sh
|
||||
|
||||
#Install Heimdall
|
||||
git clone -b 2.x https://github.com/linuxserver/Heimdall.git /opt/heimdall
|
||||
chown -R nginx:nginx /opt/heimdall
|
||||
|
||||
#Enable services on boot
|
||||
rc-update add nginx
|
||||
rc-update add php-fpm83
|
||||
rc-update add nginx
|
||||
Reference in New Issue
Block a user