1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

Merge pull request #128 from billz/fix-fastcgi

Fix fastcgi-php setup for fresh install
This commit is contained in:
Lawrence 2017-10-29 01:00:47 +08:00 committed by GitHub
commit 52e7f04882
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,13 @@ function enable_php_lighttpd() {
install_log "Enabling PHP for lighttpd"
sudo lighty-enable-mod fastcgi-php
if [ $? -eq 2 ]; then echo already enabled; else install_error "Cannot enable fastcgi-php for lighttpd"; fi
if [ $? -eq 2 ]
then
echo ' [already enabled]'
elif [ $? -ne 0 ]
then
install_error "Cannot enable fastcgi-php for lighttpd"
fi
sudo /etc/init.d/lighttpd restart || install_error "Unable to restart lighttpd"
}