How to start Apache web server?

You must use the chkconfig command for configuring Apacheweb server to start at boot:

[root@bigboy tmp]# chkconfig httpd on

Use the httpd<code> init script in the <code>/etc/init.d directory to start,stop, and restart Apache after booting:

[root@bigboy tmp]# /etc/init.d/httpd start
[root@bigboy tmp]# /etc/init.d/httpd stop
[root@bigboy tmp]# /etc/init.d/httpd restart

You can test whether the Apache process is running with

[root@bigboy tmp]# pgrep httpd

you should get a response of plain old process ID numbers.

Leave a Reply

Your email address will not be published. Required fields are marked *