1.

How Do You Start And Stop Apache On Linux?

Answer»

The APACHE SERVER RUNS as httpd DAEMON in Linux and you can either use kill command after finding the PID of httpd PROCESS as shown here or you can use the apachectl script as shown below to start and stop Apache web server in Linux

Starting Apache web server in Linux

$ apachectl start

Stopping Apache web server in Linux

$ apachectl stop

Restarting Apache web server in Linux

$ apachectl restart

or:

/sbin/service httpd restart

You might need root access to do if Apache web server is not running on your application account.

The Apache server runs as httpd daemon in Linux and you can either use kill command after finding the PID of httpd process as shown here or you can use the apachectl script as shown below to start and stop Apache web server in Linux

Starting Apache web server in Linux

$ apachectl start

Stopping Apache web server in Linux

$ apachectl stop

Restarting Apache web server in Linux

$ apachectl restart

or:

/sbin/service httpd restart

You might need root access to do if Apache web server is not running on your application account.



Discussion

No Comment Found