1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-05 15:57:23 +01:00

add php-fastcgi init script to start the FastCGI process needed to run Roundcube (and any other PHP scripts, really)

This commit is contained in:
Joshua Tauberer
2014-03-17 00:03:19 +00:00
parent 0564136bd7
commit 2ebd9706ec
2 changed files with 141 additions and 1 deletions

View File

@@ -47,4 +47,10 @@ cat - > /etc/roundcube/debian-db.php <<EOF;
EOF
chown -R www-data.www-data $STORAGE_ROOT/mail/roundcube
# Create an init script to start the PHP FastCGI daemon and keep it
# running after a reboot. Use 'restart' to start it here since it may
# already be running.
rm -f /etc/init.d/php-fastcgi
ln -s $(pwd)/conf/phpfcgi-initscript /etc/init.d/php-fastcgi
update-rc.d php-fastcgi defaults
service php-fastcgi restart