PBI Tutorials

ID #1180

How to start Apache using different file/directory locations?

It is possible to start Apache using different directory and file locations for its root directory and for httpd.conf. Here's what you can do:

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

The -f option defines the location of httpd.conf, the -d option specifies an alternate initial ServerRoot, -k is used to tell Apache what to do (start, restart, etc...), and the & is used to retrieve the command prompt.

Tags: -

Related entries:

Last update: 2007-10-26 20:05
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: 1 (1 Vote)

completely useless 1 2 3 4 5 most valuable

You can comment this FAQ