Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie: Apache 2 install

Status
Not open for further replies.

handvat

Technical User
Joined
Aug 13, 2004
Messages
3
Location
NL
I am a complete newbie and nitwit, so please excuse any stupidity:

I have installed apache 2
I had 1.3.29 on my system (OS X 10.3.5) that came with the OS.
I have followed all instructions except changing any mods.
I do end up with a apache2 directory, but when I run apachetl and check the version (httpd -v) I get 1.3.29 for an answer.
Have I failed to upgrade/install?
I have cleared binary files with a 'clear' instruction.

Don't knwo what to do about it next..
Any help would be appreciated, justlet me know what info you need..
thanks
Taree
 
Are you running Panther server? Either way the Apache from OS X is in a different location then where you installed Apache 2. To run apache 2 do 'apachectl stop' to halt Apache 1 (or stop it from the GUI if you are running server). You won't be able to use the GUI with Apache 2 so you need to open a terminal session. Next 'cd' to /opt/apache2' which is where it should have installed Apache 2. Then execute 'sudo bin/apachectl start'. This will start Apache 2. However, you will need to edit 'conf/httpd.conf' to get it to work with the same web pages as before. At the very least you will need to change 'ServerRoot' to '/Library/Webserver/Documents'. There are probably other changes needed as well but until you are familar with both Unix and Apache it will not be easy to get it right. To get it to start automatically is another can of worms because OS X doesn't use /etc/rc.
 
to awingnut:

I can not find an opt directory relating to apache.
I can find apachectl in: usr/sbin
and in: usr/local/apache2/bin

if I start apache under usr/sbin/ it starts up fine and tells me it's version 1.3.29. If I then tell apachectl stop it tells me httpd (pid 988?) not running even though personal web sharing was enabled.
No matter what dir I cd to it keeps telling me /usr/sbin/apachectl stop: httpd (pid 988?) not running, while my sys pref GUI tells me webs sharing is on

any clues?
 
OK, then Apache 2 wound up in /usr/local/apache2. You start it from that directory using the command I gave you. Your other problems are because it is getting confused about what files are where. If you did a 'make install' Apache probably clobbered the conf file Apache 1 is using. If you look in /etc/httpd you should find httpd.conf.bak there. Copy it back to httpd.conf to get Apache 1 back to normal.

At this point you need to read the comments in the conf/httpd.conf file and make the appropriate changes.
 
I still have the same problem.
starting the server from the Apache2 dir is successfull. However a httpd -v still indicates the 1.3.29 version.
Also apachectl stop does not work at all.
It keeps telling me:
/usr/sbin/apachectl stop: httpd (pid 1916?) not running
/usr/local/apache2/bin/apachectl stop gives:
httpd (pid 967?) not running
 
well I've learned quite a bit about terminal commands

I now seem to be able to run apache2 and stop it though I don't get any messages confirming I did (they seem to be only generated for the default server)

I've also read a post that some software updates from Apple can downgrade the server back to its original if the newer version is located on the defalut path. So I better stick to this location.
Is there anyway though that I can start and stop this server from the sys prefs GUI?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top