Wrong version of Apache starts

started at 06 Jan 2009 by Frank
  • Frank
    06 Jan 2009

    I downloaded and compiled the newest version of Apache2 but when I start it, Apache ver 1.3 "loads". I'm running the start command from /usr/local/apache2/bin. I'm running MAC OS X Server 10.4.11. What am I diong wrong

  • Richard
    07 Jan 2009

    Frank, what is the exact command you ue to start it up and how do you determine the version that is running.

    by the way, I'm going to guess here as I have 0 experience on the Server version on Mac OS.

  • Frank
    07 Jan 2009

    Richard,
    Thank you for your prompt reply. To (attempt to) start Apache2, I open a terminal window, sudo -s in and cd to where the Apache2 files where installed. (Note, I installed and configured according to what was on the Apache.org website, I made no changes and accepted all the defaults). At the (default location) /usr/local/apache2/bin I type in 'apachectl start' It comes back with "processing the config dir /files etc. at location /etc/httpd (where I believe Apache 1.3.41 that came preinstalled on the MAC server is located BUT, there is nothing in these files (unless I missed something that is causing 1.3.41 to launch instead of 2.2.11., then it comes back with "/usr/sbin/apachectl start: httpd started". At the prompt I then type "httpd -v" and it returns "Apache/1.3.41 (Darwin)" If I open Safari and type "localhost" it brings up the Apache screen and when I click on the "documentation" link it brings up the manual for Apache HTTP Server Version 1.3. I have tried taking a copy of the http.conf file in the Apache2 directory and placing it in the Apache 1.3 directory but when that loads I get all kinds of errors as Apache 1.3 knows nothing about the things in the Apache2 http.conf file. The reason I'm trying to do this is we have a small PHP app that needs to run on Apache2.x or better. Now MAC OSX 10.4.11 server does come with a "beta" 2.x version of Apache server, but as the documentation states this for experimenting or testing only.

  • Richard
    10 Jan 2009

    Frank, if you use the command line you have to make sure to iverride the PATH variable. If you type in apachectl (doens't matter where you are) it will always pick the default installed version. You have to type in the full path with command like /usr/local/apache2/bin/apachectl or cd into the directory but then type as command ./apachectl Then you will start the right version.

    Good luck

Reply

You must log in to post.