One of our Amazon Linux servers has php56 installed, which is not the default PHP installation. Quite often I see updates for this package, while on other server PHP is not updated.

Do I need to restart the HTTPD service after updating php56?

  • 1
    Are you using Apache's PHP module, or PHP-FPM?
    – muru
    Commented Nov 27, 2015 at 9:23
  • We're using the Apache PHP module.
    – SPRBRN
    Commented Nov 27, 2015 at 10:04

1 Answer 1


You do not need to restart apache, but you need to tell it to reload its configuration. I am not sure which command centos uses to start/stop/reload daemons.

On centos the command should be:

sudo service httpd graceful

On a linux that uses systemd the command would be:

sudo systemctl reload apache2

On debian it would be:

sudo apache2ctl graceful
  • 1
    I don't see a reload option. When I try sudo apachectl reload it displays the help info for httpd. In the end I restarted: sudo service httpd graceful.
    – SPRBRN
    Commented Nov 27, 2015 at 11:02
  • 1
    thanks SPRBRN, I fixed the command accordingly :). Actually, graceful on centos should do exactly the same thing as reload on other distros
    – Thawn
    Commented Nov 27, 2015 at 11:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .