Apache MacPorts Tutorial
Apache version 2 has some significant improvements over the Apache version 1.X that shipped standard with Mac OS X 10.4. Documentation is available for Apache 2.2 at http://httpd.apache.org/docs/2.2/.The first thing we need to do is set the Apache configuration file, which you can do in the command line by copying the sample httpd.conf file to httpd.conf itself, using the following commands:
cd /opt/local/apache2/conf
sudo cp httpd.conf.sample httpd.conf
sudo cp httpd.conf.sample httpd.conf
Before you configure Apache version 2 you just installed, first install and configure Webmin (see menu at left). Login to Webmin on your server once it is up, and go the Apache Webserver under the Servers menu. Click the Module Config link, and set the following configurable options:
Apache server root directory: /opt/local/apache2/
Path to httpd executable: /opt/local/apache2/bin/httpd
Path to the apachectl command: /opt/local/apache2/bin/apachectl
Path to httpd.conf or apache2.conf: /opt/local/apache2/conf/httpd.conf
Path to srm.conf: /dev/null
Path to access.conf: /dev/null
Path to mime.types: /opt/local/apache2/conf/mime.types
Path to httpd executable: /opt/local/apache2/bin/httpd
Path to the apachectl command: /opt/local/apache2/bin/apachectl
Path to httpd.conf or apache2.conf: /opt/local/apache2/conf/httpd.conf
Path to srm.conf: /dev/null
Path to access.conf: /dev/null
Path to mime.types: /opt/local/apache2/conf/mime.types
Now you can start Apache (either use terminal or click on Start Apache button in Webmin)
and test it!
Chapter 7 of the
Book of Webmin
is a great online guide for managing Apache with Webmin.


