Apache failing to start from launched plist, starts from httpd

Joined
Mar 26, 2019
Messages
187
Reaction score
8
Points
18
Your Mac's Specs
Mac mini. July 2012
Apache is working fine if I start it with /usr/sbin/httpd -k start But If I use the apachectl start command it fails, as does the plist file. It’s only started doing this I think since I rebooted a few days ago.
Summary:
httpd -k start ,works
apachectl start ,does not.

The error in system.log appears to be “Service could not initialise: 18E226” but I can’t see what the problem is. Latest Mojave.

The full error seems to be.
com.apple.xpc.launchd[1] (org.apache.httpd[2412]): Service could not initialize: 18E226: xpcproxy + 11291 [1534][1571C9B2-C489-3268-9D6B-73137AC77303]: 0x2

Anyone know why this could be happening?
Thanks


Sent from my iPad using Mac-Forums
 
Joined
Mar 11, 2019
Messages
461
Reaction score
4
Points
18
apachectl is a shell script.

Is it possible that there is a path problem? Is everything the script wants in the place where the script expects it to be? Have you installed any non-Apple versions of any software that ended up in a location different from the Apple version?

FWIW (nothing), it works on my machine.
 
OP
rachalmers
Joined
Mar 26, 2019
Messages
187
Reaction score
8
Points
18
Your Mac's Specs
Mac mini. July 2012
Hi thanks.
The problem was, I'd moved the Ruby binary - and httpd-wrapper needs the Apple Ruby in /usr/bin/ruby.

I put it back, and all started to work again.
 
Joined
Mar 11, 2019
Messages
461
Reaction score
4
Points
18
Yeah, I figured it had to be something like that.

Glad you got it sorted.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top