Apache2 port usage...

Ryan Schmidt ryandesign at macports.org
Wed Jun 15 23:43:58 PDT 2016

On Jun 15, 2016, at 3:01 PM, Carlo Tambuatco wrote:

> I just installed the apache2 webserver port for experimentation and I was wondering if I have to create aliases for all the installed associated commands ie: apachectl, httpd, etc… to use it or is there some other convenient shortcut for using them…?

You can add /opt/local/apache2/bin to your shell's PATH variable.

> Also can someone explain the purpose of these
> /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper
> /opt/local/etc/LaunchDaemons/org.macports.apache2/org.macports.apache2.plist
> and how to use them…? 

You can start Apache using:

sudo port load apache2

You can stop Apache using:

sudo port unload apache2

The above files are part of how that feature works.

More information about the macports-users mailing list