Will "service httpd reload" reload the new php.ini settings?

I am trying to enable shorthand in PHP by setting this:

short_open_tag = 1 

Then do:

 service httpd reload 

however, the changes do not take effect. Do I need to do an "apache2 reload service" instead? or does "service httpd reload" usually work to load new php.ini settings?

Thanks!

+8
php terminal ssh apache
source share
3 answers

You need

 service apache2 reload 

as php.ini settings changes require apache / nginx or any other server to reboot

+13
source

depends on distribution

Fedora-based "service httpd restart" Debian-based "restart apache2 service"

Not sure if on another distribution

+3
source

Using CentOS and Apache 2.4, you can use the following command to reload apache configuration, including php.ini

 apachectl graceful 
0
source

All Articles