controlling Macports version of Apache2
ctreleaven at macports.org
Thu Oct 23 19:58:07 PDT 2014
At 10:43 PM -0400 10/23/14, William H. Magill wrote:
> > On Oct 23, 2014, at 9:55 PM, Brandon Allbery <allbery.b at gmail.com> wrote:
>> On Thu, Oct 23, 2014 at 9:52 PM, William H. Magill <magill at mac.com> wrote:
>> Finding /opt/local/apache2/bin/apachectl was "obvious." But not
>>from any pllist file.
>> Looking at that file and comparing it with Apple's they are
>> I.e. /opt/local/apache2/bin/apachectl contains no reference to a
>>plist file, OR the use of launchctl. It looks like a non-Apple
>>oriented, plain Unix start file.
>> Other way around: the MacPorts launchd plist uses apachectl to
>>actually start the web server, as indicated by the apache2
>>Portfile. apachectl itself does not reference launchd, it is
>>referenced *by* launchd via the plist.
>That is the set of instructions I was looking for... I know I've
>seen them someplace, but cannot find them anywhere!
>I don't see them in the Portfile for apache2. Maybe they have just
>gotten lost in an upgrade.
>They should be something like:
>sudo /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper stop
>sudo /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper start
>sudo /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper restart
>It's not the most obvious thing in the world.
Perhaps you want the "A" portion of MAMP:
More information about the macports-users