Use php56 instead of php71
This commit is contained in:
parent
1affd0666b
commit
52db1b9e75
|
@ -11,7 +11,7 @@ if [ ! -d /var/lib/mysql/$db ]; then
|
||||||
/usr/bin/mysql -e 'create database $db'
|
/usr/bin/mysql -e 'create database $db'
|
||||||
/usr/bin/mysql $db < $dbstruct
|
/usr/bin/mysql $db < $dbstruct
|
||||||
else
|
else
|
||||||
su -s /bin/bash - www -c "cd /usr/share/dl/include/scripts && /usr/bin/php71 ./dbupgrade.php"
|
su -s /bin/bash - www -c "cd /usr/share/dl/include/scripts && /usr/bin/php56 ./dbupgrade.php"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
/usr/bin/mysql <<EOF
|
/usr/bin/mysql <<EOF
|
||||||
|
|
|
@ -3,7 +3,7 @@ if ($fastcgi_mod eq 'mod_fastcgi'){
|
||||||
$OUT .=<<_EOF;
|
$OUT .=<<_EOF;
|
||||||
Action phpdl-fastcgi /php-cgi-bin/phpdl-wrapper
|
Action phpdl-fastcgi /php-cgi-bin/phpdl-wrapper
|
||||||
Alias /php-cgi-bin/phpdl-wrapper /var/www/php-cgi-bin/phpdl-wrapper
|
Alias /php-cgi-bin/phpdl-wrapper /var/www/php-cgi-bin/phpdl-wrapper
|
||||||
FastCgiExternalServer /var/www/php-cgi-bin/phpdl-wrapper -socket /var/run/php-fpm/php71-dl.sock -pass-header Authorization -idle-timeout 120
|
FastCgiExternalServer /var/www/php-cgi-bin/phpdl-wrapper -socket /var/run/php-fpm/php56-dl.sock -pass-header Authorization -idle-timeout 120
|
||||||
_EOF
|
_EOF
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@ _EOF
|
||||||
elsif ($fascgi_mod eq 'mod_proxy_fcgi'){
|
elsif ($fascgi_mod eq 'mod_proxy_fcgi'){
|
||||||
$php =<<'_EOF';
|
$php =<<'_EOF';
|
||||||
<FilesMatch \.php$>
|
<FilesMatch \.php$>
|
||||||
SetHandler "proxy:unix:/var/run/php-fpm/php71-dl.sock|fcgi://localhost"
|
SetHandler "proxy:unix:/var/run/php-fpm/php56-dl.sock|fcgi://localhost"
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
_EOF
|
_EOF
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user