From db3228844a44eb97dd292dd06ee4ec37195d5cd2 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 30 Dec 2013 16:47:05 -0800 Subject: [PATCH] Note where to stop/start php-fpm in upgrade example script Summary: This isn't as explicit as it could be. Test Plan: Reading. Reviewers: poop Reviewed By: poop CC: aran Differential Revision: https://secure.phabricator.com/D7861 --- scripts/install/update_phabricator.sh | 4 ++++ src/docs/user/installation_guide.diviner | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/install/update_phabricator.sh b/scripts/install/update_phabricator.sh index c89dac967b..5aad808087 100755 --- a/scripts/install/update_phabricator.sh +++ b/scripts/install/update_phabricator.sh @@ -33,13 +33,17 @@ $ROOT/phabricator/bin/phd stop # Stop the webserver (apache, nginx, lighttpd, etc). This command will differ # depending on which system and webserver you are running: replace it with an # appropriate command for your system. +# NOTE: If you're running php-fpm, you should stop it here too. + sudo /etc/init.d/httpd stop + # Upgrade the database schema. You may want to add the "--force" flag to allow # this script to run noninteractively. $ROOT/phabricator/bin/storage upgrade # Restart the webserver. As above, this depends on your system and webserver. +# NOTE: If you're running php-fpm, restart it here too. sudo /etc/init.d/httpd start # Restart daemons. diff --git a/src/docs/user/installation_guide.diviner b/src/docs/user/installation_guide.diviner index 2e2836cacb..ee6277834b 100644 --- a/src/docs/user/installation_guide.diviner +++ b/src/docs/user/installation_guide.diviner @@ -155,10 +155,10 @@ See for more information. Since Phabricator is under active development, you should update frequently. To update Phabricator: - - Stop the webserver. + - Stop the webserver (including `php-fpm`, if you use it). - Run `git pull` in `libphutil/`, `arcanist/` and `phabricator/`. - Run `phabricator/bin/storage upgrade`. - - Restart the webserver. + - Restart the webserver (and `php-fpm`, if you stopped it earlier). For more details, see @{article:Configuration Guide}. You can use a script similar to this one to automate the process: