PBI Tutorials

ID #1179

How to create an Apache PBI?

First you need to compile Apache from ports (Apache is now called httpd in the ports). Then in your /etc/rc.conf file, you have to add:

apache22_enable="YES" apache22_http_accept_enable="YES"  

Make sure you have 127.0.0.1 in your /etc/hosts file or Apache will complain.

Each time you start your computer you'll have to load this kernel module:

# kldload accf_http  
And in your httpd.conf file you need:
ServerRoot "/Programs/Apache2.2.3" ServerName 127.0.0.1 DocumentRoot "/home/"
To define Apache's library directory, you need to set this variable:
LD_LIBRARY_PATH="/Programs/Apache2.2.3/libs"; export LD_LIBRARY_PATH;  

When you launch the Apache PBI, it'll search for libraries in this directory.

For instance to launch Apache you'll issue:

# /Programs/Apache2.2.3/sbin/apachectl -d /Programs/Apache2.2.3 -f /Programs/Apache2.2.3/share/examples/apache22/httpd.conf -k start  

This is all you need to know :)

Tags: -

Related entries:

Last update: 2007-11-13 01:06
Author: Charles-André Landemaine
Revision: 1.0

Digg it! Share on Facebook Print this record Send FAQ to a friend Show this as PDF file
Propose a translation for Propose a translation for
Please rate this FAQ:

Average rating: 0 (0 Votes)

completely useless 1 2 3 4 5 most valuable

You can comment this FAQ