Michel Käser
2015-05-17 4bc030979267303b2ff1668c99af0a4e7089824b
ensure the internal PHP scripts work even if system-wide PHP settings are set that could affect how ISPConfig would work. See FS#3293
7 files modified
49 ■■■■ changed files
install/tpl/apache_apps_fcgi_starter.master 6 ●●●● patch | view | raw | blame | history
install/tpl/apache_ispconfig_fcgi_starter.master 7 ●●●● patch | view | raw | blame | history
server/cron.sh 6 ●●●● patch | view | raw | blame | history
server/scripts/ispconfig_update.sh 6 ●●●● patch | view | raw | blame | history
server/scripts/update_from_dev.sh 6 ●●●● patch | view | raw | blame | history
server/scripts/update_from_tgz.sh 6 ●●●● patch | view | raw | blame | history
server/server.sh 12 ●●●● patch | view | raw | blame | history
install/tpl/apache_apps_fcgi_starter.master
@@ -3,4 +3,8 @@
export PHPRC
export PHP_FCGI_MAX_REQUESTS=5000
export PHP_FCGI_CHILDREN=1
exec {fastcgi_bin} -d magic_quotes_gpc=off
exec {fastcgi_bin} -d  \
    -d disable_classes= \
    -d disable_functions= \
    -d magic_quotes_gpc=off \
    -d open_basedir=
install/tpl/apache_ispconfig_fcgi_starter.master
@@ -3,4 +3,9 @@
export PHPRC
export PHP_FCGI_MAX_REQUESTS=5000
export PHP_FCGI_CHILDREN=1
exec {fastcgi_bin} -d magic_quotes_gpc=off -d session.save_path=/usr/local/ispconfig/interface/temp
exec {fastcgi_bin} \
    -d disable_classes= \
    -d disable_functions= \
    -d magic_quotes_gpc=off \
    -d open_basedir= \
    -d session.save_path=/usr/local/ispconfig/interface/temp
server/cron.sh
@@ -10,4 +10,8 @@
fi
cd /usr/local/ispconfig/server
/usr/bin/php -q /usr/local/ispconfig/server/cron.php
/usr/bin/php -q \
    -d disable_classes= \
    -d disable_functions= \
    -d open_basedir= \
    /usr/local/ispconfig/server/cron.php
server/scripts/ispconfig_update.sh
@@ -1,3 +1,7 @@
#!/bin/bash
php -q /usr/local/ispconfig/server/scripts/ispconfig_update.php
php -q \
    -d disable_classes= \
    -d disable_functions= \
    -d open_basedir= \
    /usr/local/ispconfig/server/scripts/ispconfig_update.php
server/scripts/update_from_dev.sh
@@ -4,7 +4,11 @@
wget -O ispconfig3-dev.tar.gz "http://git.ispconfig.org/ispconfig/ispconfig3/repository/archive.tar.gz?ref=master"
tar xzf ispconfig3-dev.tar.gz
cd ispconfig3.git/install
php -q update.php
php -q \
    -d disable_classes= \
    -d disable_functions= \
    -d open_basedir= \
    update.php
cd /tmp
rm -rf /tmp/ispconfig3.git /tmp/ispconfig3-dev.tar.gz
server/scripts/update_from_tgz.sh
@@ -12,7 +12,11 @@
then
    tar xvfz ISPConfig-3-stable.tar.gz
    cd ispconfig3_install/install/
    php -q update.php
    php -q \
    -d disable_classes= \
    -d disable_functions= \
    -d open_basedir= \
    update.php
    rm -rf /tmp/ispconfig3_install/install
    rm -f ISPConfig-3-stable.tar.gz
else
server/server.sh
@@ -15,7 +15,15 @@
fi
cd /usr/local/ispconfig/server
/usr/bin/php -q /usr/local/ispconfig/server/server.php
/usr/bin/php -q \
    -d disable_classes= \
    -d disable_functions= \
    -d open_basedir= \
    /usr/local/ispconfig/server/server.php
cd /usr/local/ispconfig/security
/usr/bin/php -q /usr/local/ispconfig/security/check.php
/usr/bin/php -q \
    -d disable_classes= \
    -d disable_functions= \
    -d open_basedir= \
    /usr/local/ispconfig/security/check.php