server.sh 750 Bytes
Newer Older
RKolodziejczxyk's avatar
RKolodziejczxyk committed
1
#!/bin/bash
tbrehm's avatar
tbrehm committed
2

3

tbrehm's avatar
tbrehm committed
4 5
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin

6 7
. /etc/profile

8 9
umask 022

10 11 12 13 14 15 16
if [ -f /usr/local/ispconfig/server/lib/php.ini ]; then
        PHPINIOWNER=`stat -c %U /usr/local/ispconfig/server/lib/php.ini`
        if [ $PHPINIOWNER == 'root' ] || [ $PHPINIOWNER == 'ispconfig'  ]; then
                export PHPRC=/usr/local/ispconfig/server/lib
        fi
fi

17
cd /usr/local/ispconfig/server
18 19 20 21 22
/usr/bin/php -q \
    -d disable_classes= \
    -d disable_functions= \
    -d open_basedir= \
    /usr/local/ispconfig/server/server.php
23 24

cd /usr/local/ispconfig/security
25 26 27 28 29
/usr/bin/php -q \
    -d disable_classes= \
    -d disable_functions= \
    -d open_basedir= \
    /usr/local/ispconfig/security/check.php