How do I restart apache on a web server?

Asked

Viewed 2,148 times

0

I made some settings in php.ini of my site that are not working, and they told me that I needed to restart apache to make it work, but I don’t know how to proceed with this reboot. Someone can give me a way to make it?

  • On Linux is sudo /etc/init.d/apache2 restart

  • What platform?

  • Click [Edit] and give more details about the server type, whether it’s a third party or not, etc. - if you have access to php.ini, I assume you have access to the apache service.

  • 1

    Usually in a hosoeding there is a panel where you can restart just by clicking on a button.. If you are in a hosting case, see the hosting support.

1 answer

1

This depends on the operating system used.

If you have access to SSH:

No Centos/RHEL

If you use Cpanel you’re probably using the Centos!

service httpd restart

In Debian/Ubuntu

sudo /etc/init.d/apache2 restart

sudo service apache2 restart

You can replace the restart for reload, or use the reload before the restart to update the configuration data.

If using "admin panels":

No Cpanel/WHM

You can use the Restart Services:

Home >> Restart Services >> HTTP Server (Apache)

In Plesk 10.x-12.x

You can use the Services Management:

[Server >>] Tools & Settings >> Services Management : Web Server (Apache)

Note: I no longer use the Cpanel and never used the Plesk, for this reason I cannot say that the data is still correct and updated. This data was extracted from the company’s own page.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.