JSP - Johnson's Server Project
FIREWALL - Apache (Internet Server)

GOAL Install Apache
Installation Actually Apache was installed when you installed OpenBSD
HOWEVER, due to a licensing change at Apache, OpenBSD will only distribute Apache version 1.3.29
The latest version of Apache HTTP Server is 2.0.50
Remove existing Apache delete /usr/sbin/httpd/ (rm -r httpd)
delete /usr/lib/apache/ (rm -r apache)
delete /usr/src/usr.sbin/httpd/*
delete /var/www.conf/httpd*
delete /var/www/htdocs*
Download Apache Get Files httpd-2.0.50.tar.gz
and httpd-2.0.50.tar.gz.asc
You also need a KEYS file containing signatures
Verify signatures read regarding file signature validation
You may have to make /usr/ports/security/gnupg to get gpg working (don't forget to rehash) gpg --import KEYS
gpg --edit-key Striker (set up a trust level based on discussion above)
trust
5
y
q
gpg --verify httpd-2.0.50.tar.gz.asc
Move files and extract copy files into /usr/sbin/
gzip -d httpd-2.0.50.tar.gz
tar xvf httpd-2.0.50.tar
Configuration run /usr/sbin/httpd-2.0.50/configure
Build Apache make
make install
Customizing Edit /usr/local/apache2/conf/httpd.conf
Test (start) /usr/local/apache2/bin/apachectl start
lynx localhost (This should bring up a web page)
The web page shown is /usr/local/apache2/htdocs/index.html.en
/usr/local/apache2/bin/apachectl stop
.
Auto-Start edit the file /etc/rc.conf.local (Anyting here overrides what is in rc.conf> and add the line
httpd_flags=""    # note the use of two double-quotes
This will cause Apache server httpd to be launched with every system restart. (Reboot now to start it)
Test type lynx localhost
(lynx is a browser that is also included with the OpenBSD Installation)
You should get the Apache introduction page
Configure for status reports edit /var/www/conf/httpd.conf
find the line #ExtendedStatus On and remove the comment so it reads
ExtendedStatus On

find the area
<Location /server-status> .......
</Location>
remove comments and modify "Allow from..." as follows

<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
Now reboot
Get Status type
apachectl status
to display the apache server status


INSTALL PHP

Install cd /usr/ports/www/php4
make install clean