Hi,
I want to restart apache using ssh. How can I get the apache path (can i get it from php.ini) and what are the things I need to do in order to restart apache.
Do I need to go to apache/bin and run the command?
Hi,
I want to restart apache using ssh. How can I get the apache path (can i get it from php.ini) and what are the things I need to do in order to restart apache.
Do I need to go to apache/bin and run the command?
Apache controls PHP not the other way around, to restart Apache simply do the following…
It depends on the platform, but on most servers the command SgtLegend provided will work
On others (e.g. debian) you might need
/etc/init.d/apache2 restart
or
apachectl restart
And instead of “restart” you can also use “graceful”, which also restarts Apache without actually shutting it down, but just reloading the config, so you don’t have any downtime.
if it’s apache2, Scallio, it’ll actually probably be ‘apache2ctl restart’
Oddly, I’ve also seen servers with apachectl for Apache 2, but yeah, most servers probably have apache2ctl
Thanks all