Reference Apache Commands

Here’s a list of Apache commands and operations.

 

Load & Unload Apache sites

(Explicitly name the *.conf file if needed)

a2ensite /etc/apache2/sites-available/*

a2dissite /etc/apache2/sites-available/*

 

Recycle Apache

(Compared to service apache2 restart init.d gives a return indication)

/etc/init.d/httpd restart
/etc/init.d/httpd start
/etc/init.d/httpd stop

 

List all apache .conf

apache2ctl -S

 

Tags:

About the author