![]() |
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) 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 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 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 ExtendedStatus On find the area remove comments and modify "Allow from..." as follows Now reboot |
| Get Status | type to display the apache server status |
| Install | cd /usr/ports/www/php4 make install clean |