php-fcgid should have been configured in web.sh not webmail.sh

When I re-did this, I left in an old reference to the php-fcgid
script that never made it into the repo. Deleting that and moving
the php-fcgid configuration on top of it.

fixes #9
see 2ebd9706ec
This commit is contained in:
Joshua Tauberer 2014-03-17 01:46:47 +00:00
parent 6d1d9e1cc9
commit d5fe5bd2a2
2 changed files with 9 additions and 9 deletions

View File

@ -21,10 +21,17 @@ mkdir -p $STORAGE_ROOT/www/static
cp conf/www_default.html $STORAGE_ROOT/www/static/index.html
chown -R $STORAGE_USER $STORAGE_ROOT/www/static/index.html
# Create an init script to start the PHP FastCGI daemon and keep it
# running after a reboot. Allows us to serve Roundcube for webmail.
rm -f /etc/init.d/php-fastcgi
ln -s $(pwd)/conf/phpfcgi-initscript /etc/init.d/php-fastcgi
update-rc.d php-fastcgi defaults
# Start services.
service nginx restart
service php-fastcgi restart
conf/php-fcgid start
# Open ports.
ufw allow http
ufw allow https

View File

@ -51,10 +51,3 @@ 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