How do I Restart apache on a web server? [closed]

0

I made some settings in php.ini from my site that are not working, and they told me that I needed to restart apache to work, but I do not know how to proceed with this reboot. Can someone give me a way to do it?

    
asked by anonymous 30.07.2016 / 18:02

1 answer

1
  

This depends on the operating system used.

If you have access to SSH:

No CentOS / RHEL

  

If you use CPanel you are probably using CentOS!

service httpd restart

No Debian / Ubuntu

sudo /etc/init.d/apache2 restart

sudo service apache2 restart

You can replace restart with reload , or use reload before restart for configuration data to be updated.

If you are using "admin panels":

No CPanel / WHM

You can use Restart Services :

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

No Plesk 10.x-12.x

You can use Services Management :

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

Note: I no longer use CPanel and have never used Plesk , so I can not say that the data is still correct and up to date. This data was taken from the company's own website.

    
30.07.2016 / 21:26