How to restart Apache on a dedicated or hosted VPS The CentOS documentation offers both apachectl and service as good options. However, apachectl also confuses some system administrators because the executable’s location is more variable than /sbin/service. Interestingly, the Apache httpd documentation uses the apachectl command. The main benefit when it comes to a CentOS server: service will continue to work for you if you migrate to a more specialized http server such as nginx. Read on for specifics.Īlthough there are at least a half-dozen different ways to restart httpd, I suggest using the service command. From there, you can employ the service command. To get started, you’ll need a dedicated or hosted virtual private server (VPS). The trick is restarting Apache without having to reboot the hosted CentOS Linux server. When httpd itself becomes hopelessly confused and unresponsive.When updating the Web server’s configuration file.This commonly comes into play in the following scenarios: If you a maintain a modest website, one of the most fundamental techniques you’ll learn is restarting the Apache httpd Web server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |