Apachectl starts wrong apache (Mac OSX)

Posted on 2004-11-14
Last Modified: 2008-03-17
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?
Question by:grexx
    LVL 6

    Accepted Solution

    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.
    LVL 1

    Author Comment

    Thanks! How simple. Great tip!
    LVL 1

    Author Comment

    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! :-)

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
    In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now