Fix fastcgi-php setup for fresh install

pull/4/head
Joseph Haig 8 years ago
parent cf149fd498
commit f0f4f16438

@ -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"
}

Loading…
Cancel
Save