Fwd: Help with conjoined apaches

Jeremy Lavergne jeremy at lavergne.gotdns.org
Sat Apr 28 18:18:29 PDT 2012


From: Bradley Giesbrecht <pixilla at macports.org>
>> I did a 'find / -name 'apachectl' and the /usr/sbin is the only instance. Is there a way to get macports to refresh the installation?
> 
> You can deactivate apache2, then activate it again:
> sudo port deactivate apache2
> sudo port activate apache2
> 
> First, would you mind checking the port contents though? Surely it's part of the package, perhaps named apache2ctl?
> port contents apache2

It is named apachectl and /opt/local/apache2/bin needs to be in PATH _BEFORE_ /usr/sbin if you don't want to specify the full path to MacPorts apache2 apachectl:

$ echo $PATH
/opt/local/apache2/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
$ which apachectl
/opt/local/apache2/bin/apachectl
$ port contents apache2 | grep /bin/
/opt/local/apache2/bin/ab
/opt/local/apache2/bin/apachectl
/opt/local/apache2/bin/apxs
/opt/local/apache2/bin/checkgid
/opt/local/apache2/bin/dbmmanage
/opt/local/apache2/bin/envvars-std
/opt/local/apache2/bin/htcacheclean
/opt/local/apache2/bin/htdbm
/opt/local/apache2/bin/htdigest
/opt/local/apache2/bin/htpasswd
/opt/local/apache2/bin/httpd
/opt/local/apache2/bin/httxt2dbm
/opt/local/apache2/bin/logresolve
/opt/local/apache2/bin/rotatelogs


Regards,
Bradley Giesbrecht (pixilla)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 8796 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20120428/9cb6ae8d/attachment.bin>


More information about the macports-users mailing list