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?
LVL 1
grexxAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DominicCroninCommented:
apachectl is a script. You can open it up in a text editor and examine what it does. You may find that you can simply edit the location of httpd.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
grexxAuthor Commented:
Thanks! How simple. Great tip!
0
grexxAuthor Commented:
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! :-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.