This site is currently
Under Construction
...soon to be...

OpenBSD Apache

Last updated: 2009-06-31

httpd

===

How-to: OpenBSD 3.8+Apache+PHP+MySQL

http://freeyourbox.org/tutorials/bsd/obsd3.8_apache_php_mysql.html

===

Refer: http://www.openbsd101.com/tipstricks.html#tt6

Installing all the sets (base44.tgz) of OpenBSD will assure that you have Apache 1.3.29 installed. Apache 2.0 will not come with the base installation of OpenBSD due to Apache's license changes for 2.0.

* step 1 - Location of Apache configuration file
* step 2 - Starting httpd
* step 3 - Having httpd run at startup

1. Configuration of Apache is done using the /var/www/conf/httpd.conf file.

2. Starting the http daemon:
# apachectl start

A good rule of thumb is not to edit your /etc/rc.conf file. Instead create then edit a file called /etc/rc.conf.local. Settings specified in rc.conf.local will take precedence over settings in the /etc/rc.conf file.

3. Edit your /etc/rc.conf.local file adding this entry:
# echo 'httpd_flags="" ' >> /etc/rc.conf.local

===

Logs:

Access log file: /var/www/logs/access_log
Error log file: /var/www/logs/error_log

===