Saturday, December 27, 2014

Apache2 tips and file locations

The last post mentioned that the HP2000 notebook has Apache2 web server running and that more information and added details were to be added at a future time.

This weekend thought to put pen to paper and put some of the necessary log file and directory locations.

Apache2 log file location:
/var/log/apache2/access.log
/var/log/apache2/error.log

Apache2 config file location (this is unique to Ubuntu):
 /etc/apache2/

Apache2 file location:
/usr/lib/cgi-bin

This directory will contain you .html, .cgi. pl, .sh files (perl, bash, cgi). Note that a perl script in this directory can have a .cgi extension. 

Starting, stopping restarting Apache2:
>apache2 start
>apache2 stop
>apache2 restart

No comments:

Post a Comment