Commit d5fe5bd2 authored by Joshua Tauberer's avatar Joshua Tauberer

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 2ebd9706
parent 6d1d9e1c
...@@ -21,10 +21,17 @@ mkdir -p $STORAGE_ROOT/www/static ...@@ -21,10 +21,17 @@ mkdir -p $STORAGE_ROOT/www/static
cp conf/www_default.html $STORAGE_ROOT/www/static/index.html cp conf/www_default.html $STORAGE_ROOT/www/static/index.html
chown -R $STORAGE_USER $STORAGE_ROOT/www/static/index.html chown -R $STORAGE_USER $STORAGE_ROOT/www/static/index.html
service nginx restart # 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
conf/php-fcgid start # Start services.
service nginx restart
service php-fastcgi restart
# Open ports.
ufw allow http ufw allow http
ufw allow https ufw allow https
...@@ -51,10 +51,3 @@ cat - > /etc/roundcube/debian-db.php <<EOF; ...@@ -51,10 +51,3 @@ cat - > /etc/roundcube/debian-db.php <<EOF;
EOF EOF
chown -R www-data.www-data $STORAGE_ROOT/mail/roundcube 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment