Navigation
0 users online :: 0 Guests and 0 Registered
Records in this category
- How to create an Opera PBI?
- How to create a KOffice PBI?
- How to create an OpenOffice.org PBI?
- How to compile KOffice without some of its components?
- Creating complex PBIs from ports - Example: VLC 0.8.5
- How to create a Codecs PBI?
- Creating PBIs witk GTK/Pango programs
- How can I add and remove a line in a file?
- How can I substitute each instance of a variable in a file?
- How can I substitute each instance of a variable in a file?
- How to grab a PID?
- How can I interact with the user during the installation of a PBI?
- How can I find out the language of the user?
- How to find the version of an installed package?
- How to create a Digikam PBI?
- How to create a lighttpd PBI?
- How to create a PBI of an icon theme?
- How to display the progress of a file download in real time?
- How to prevent PBIs from breaking after a PC-BSD upgrade?
- Is there a tool to fetch libraries automatically?
- How can I uninstall a PBI from a shell script?
- How can I detect the version of a user's system?
- How to give the option to leave/delete the settings folder when uninstalling a PBI?
- How can I check if a required PBI is already installed?
- Where do I find custom graphics for the PBI Installer?
- How to create a Zend Studio PBI?
- How to integrate WINE applications visually with PC-BSD?
- How to create a Frozen Bubble PBI?
- How can I let the user launch a PBI upon completion?
- How to create an Apache PBI?
- How to start Apache using different file/directory locations?
Tags
Sticky FAQs
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_httpAnd 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:
- How do I configure PCBSD to boot up in text mode
- How to start Apache using different file/directory locations?
- How do I mount a Linux logical partition in PC-BSD?
- How to mount a PC-BSD partition under Linux?
- How to get the most out of phpMyFAQ as a documentation contributor?
Last update: 2007-11-13 01:06
Author: Charles-André Landemaine
Revision: 1.0
You can comment this FAQ