Starting Apache



Starting Apache

Use the chkconfig command to configure Apache to start at boot:

     [root@bigboy tmp]# chkconfig httpd on

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

     [root@bigboy tmp]# service httpd start
     [root@bigboy tmp]# service httpd stop
     [root@bigboy tmp]# service 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.