Error Loading Apache2
David Gentry
localbusinesswebsites at earthlink.net
Thu Mar 31 13:04:24 PDT 2011
Ryan,
>> $ sudo port load apache2
>> Password:
>> Error: Target org.macports.load returned: launchctl: Dubious permissions on file (skipping): /Library/LaunchDaemons/org.macports.apache2.plist
>
> I'm not sure why the permissions on /Library/LaunchDaemons/org.macports.apache2.plist are wrong on your system, but they need to be fixed, using sudo chmod.
>
> On my system, where apache2 loads fine, the permissions are:
>
> $ ls -l /Library/LaunchDaemons/org.macports.apache2.plist
> lrwxr-xr-x 1 root wheel 76 Feb 27 23:24 /Library/LaunchDaemons/org.macports.apache2.plist -> /opt/local/etc/LaunchDaemons/org.macports.apache2/org.macports.apache2.plist
>
> $ ls -l /opt/local/etc/LaunchDaemons/org.macports.apache2/org.macports.apache2.plist
> -rw-r--r-- 2 root wheel 958 Feb 27 23:23 /opt/local/etc/LaunchDaemons/org.macports.apache2/org.macports.apache2.plist
Here are my current permissions. Can you please tell me how to fix them using sudo chmod?
$ ls -l /Library/LaunchDaemons/org.macports.apache2.plist
lrwxr-xr-x 1 root wheel 76 Mar 1 14:33 /Library/LaunchDaemons/org.macports.apache2.plist -> /opt/local/etc/LaunchDaemons/org.macports.apache2/org.macports.apache2.plist
$ ls -l /opt/local/etc/LaunchDaemons/org.macports.apache2/org.macports.apache2.plist
-rw-rw-r--+ 2 root admin 958 Mar 1 14:33 /opt/local/etc/LaunchDaemons/org.macports.apache2/org.macports.apache2.plist
David
On Mar 31, 2011, at 1:56 PM, Ryan Schmidt wrote:
On Mar 31, 2011, at 13:43, David Gentry wrote:
> $ sudo port load apache2
> Password:
> Error: Target org.macports.load returned: launchctl: Dubious permissions on file (skipping): /Library/LaunchDaemons/org.macports.apache2.plist
I'm not sure why the permissions on /Library/LaunchDaemons/org.macports.apache2.plist are wrong on your system, but they need to be fixed, using sudo chmod.
On my system, where apache2 loads fine, the permissions are:
$ ls -l /Library/LaunchDaemons/org.macports.apache2.plist
lrwxr-xr-x 1 root wheel 76 Feb 27 23:24 /Library/LaunchDaemons/org.macports.apache2.plist -> /opt/local/etc/LaunchDaemons/org.macports.apache2/org.macports.apache2.plist
$ ls -l /opt/local/etc/LaunchDaemons/org.macports.apache2/org.macports.apache2.plist
-rw-r--r-- 2 root wheel 958 Feb 27 23:23 /opt/local/etc/LaunchDaemons/org.macports.apache2/org.macports.apache2.plist
More information about the macports-users
mailing list