mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-22 15:40:22 +00:00
Merge from Upstream/Master https://github.com/billz/raspap-webgui
This commit is contained in:
commit
db8e201624
1 changed files with 8 additions and 1 deletions
|
@ -73,7 +73,14 @@ function enable_php_lighttpd() {
|
||||||
install_log "Enabling PHP for lighttpd"
|
install_log "Enabling PHP for lighttpd"
|
||||||
|
|
||||||
sudo lighty-enable-mod fastcgi-php
|
sudo lighty-enable-mod fastcgi-php
|
||||||
if [ $? -eq 2 ]; then echo already enabled; else install_error "Cannot enable fastcgi-php for lighttpd"; fi
|
ERR=$?
|
||||||
|
if [ $ERR -eq 2 ]
|
||||||
|
then
|
||||||
|
echo ' [already enabled]'
|
||||||
|
elif [ $ERR -ne 0 ]
|
||||||
|
then
|
||||||
|
install_error "Cannot enable fastcgi-php for lighttpd"
|
||||||
|
fi
|
||||||
sudo /etc/init.d/lighttpd restart || install_error "Unable to restart lighttpd"
|
sudo /etc/init.d/lighttpd restart || install_error "Unable to restart lighttpd"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue