Link to home
Start Free TrialLog in
Avatar of grexx
grexx

asked on

Apachectl starts wrong apache (Mac OSX)

I have Apache 2 installed on my Mac (OSX 10.3). It works fine and starts up normally. This install is next to the old default Apache, version 1.3.29. Normally I use a control panel item to do a graceful restart and for small configuration changes that works allright. I do have a problem with this control panel when there is something wrong in the config file. Then the control panel gives an error message, and it refuses to work properly after that. Then a restart seems the only way to solve this problem.

So I think I go to /library/apache2/ where I have Apache2 installed, and use bin/apachectl to start apache. The problem is that when I use this method, it starts the old version, not the new one. Any ideas what I'm doing wrong here? Can I delete the old version?
ASKER CERTIFIED SOLUTION
Avatar of DominicCronin
DominicCronin
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of grexx
grexx

ASKER

Thanks! How simple. Great tip!
Avatar of grexx

ASKER

I opened the file, and all pathes in there were to the correct Apache. And still it didn't work... :-( Until I realised that I didn't use an absolute path the Apachectl....  Oh stupid me! :-)