Starting Apache

Starting Apache

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

     [[email protected] tmp]# chkconfig httpd on

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

     [[email protected] tmp]# service httpd start
     [[email protected] tmp]# service httpd stop
     [[email protected] tmp]# service httpd restart

You can test whether the Apache process is running with:

     [[email protected] tmp]# pgrep httpd

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

     Python   SQL   Java   php   Perl 
     game development   web development   internet   *nix   graphics   hardware 
     telecommunications   C++ 
     Flash   Active Directory   Windows