Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > How to remove and re-install Apache under OS X 10.1?

How to remove and re-install Apache under OS X 10.1?
Thread Tools
Mac Elite
Join Date: Mar 2002
Location: Clogland
Status: Offline
Reply With Quote
Jan 2, 2003, 10:57 AM
 
Can anyone help me or maybe point me in the way of a resource that would help me re-install the Apache webserver as provided with OS X 10.1 ?

I seem to have messed around with it too much and after turning off the webserver I am getting error messages when trying to start it up again.

The error involves "/usr/lib/libiodbc.2.1.6.dylib" not being present which I am assuming is an odbc feature not supported by OS X 10.1.

I have done extensive searching around the web for the last two days, and none of the work arounds have provided any joy.

My current plan is to remove Apache completely then hopefully re-install from the source CD provided with the original purchase (iBook 600mhz).

Thanks in advance, I posted originally a thread in the Web Developer forum.....

http://forums.macnn.com/showthread.p...hreadid=138209
     
skalie  (op)
Mac Elite
Join Date: Mar 2002
Location: Clogland
Status: Offline
Reply With Quote
Jan 2, 2003, 01:23 PM
 
*Bump*

So, just over 2 hours and this thread has sunk to number 15 in the pile, 7 views.

Where to take it next? UNIX? Third-Party Software?

Maybe I should think of a more inviting title?
     
ivi
Forum Regular
Join Date: Nov 2002
Status: Offline
Reply With Quote
Jan 2, 2003, 05:03 PM
 
You shouldn't be that agressive first of all. It is easy to delete apache:

$ rm -rf /etc/httpd

then reinstall your apache into /etc/httpd and thats it. Installation instactions are within the distribution. Apache doesn't have any config files outside its directory.
     
skalie  (op)
Mac Elite
Join Date: Mar 2002
Location: Clogland
Status: Offline
Reply With Quote
Jan 3, 2003, 04:59 AM
 
I'm sorry if I appeared agressive, it's just that I've spent the last few days trying to get this webserver back up and running so I can play with php and mySql again which I enjoy.

Troubleshooting this one has been less than pleasurable, I have found very little documentation about this one, it seems to be a combination of a compatability with the various versions of Apache and Mac OS X 10.1 and also my own ineptitude and lack of experience when it comes to running the Terminal.

Seeing my thread drop like a stone without hardly any views made me think that I was dealing with an issue that no-one wanted to touch with a barge pole.



Back to the business in hand your command

$ rm -rf /etc/httpd

seemed to work, now to the business of re-installing Apache.


My first stop was.....

http://www.entropy.ch/software/macosx/php/

....to download the "4.2.2 version" that runs on 10.1.x.

The terminal returned this when running through the set-up....

gunzip libphp4.so.gz
libphp4.so.gz: No such file or directory
...even though I can see a file right infront of me named libphp4.so.gz on my desktop

Brick wall (again)


OK second attempt was to go here....

http://www.serverlogistics.com/downloads-osx.php

"These packages are for Mac OS X 10.1, and are not guaranteed to be compatible with Mac OS X 10.2 Jaguar"

That's what I'm looking for.

"Apache 2 will install into /usr/local/apache2, and will not overwrite any Apache 1 files that are supplied by Apple"

That also sounds good.

This download gave me a .pkg which installed.

From the terminal this time


sudo apachectl restart
/usr/sbin/apachectl restart: httpd not running, trying to start

sudo apachectl graceful
/usr/sbin/apachectl graceful: httpd not running, trying to start
fopen: No such file or directory
httpd: could not open document config file /etc/httpd/httpd.conf

Am I missing a very basic principle here?

Any help would be gratefully appreciated and any aggression on my part in the near future will probably be channelled into projecting this iBook towards a brick wall, discus style.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:53 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2