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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help uninstalling PHP 4, 5, Zend Optimizer 2, 3 and config Apache

Status
Not open for further replies.

djbeta

IS-IT--Management
Apr 16, 2004
46
US

Hi folks,

I just upgraded a 10.3 machine to 10.4. After the upgrade, the PHP installation prevented a certain PHP application from running properly... I have a mess now.. I've had PHP4, PHP5, and Zend Optimizer version 2, 3.0 and 3.2.8 installed.. PHP4 was the default OS X installation, PHP5 was the Entropy version, and the Zend Optimizers were from the Zend site

I'm confused about a few things.. first of all..

I *think* my 10.4 Apache httpd.conf file lives at /private/etc/httpd/httpd.conf

BUT.. i see no mention of PHP5 in that file.. so I'm wondering if I'm looking at the actual httpd.conf file that drives my 10.4 web server... any advice there? Could the file live somewhere else.. or can php5 actually be running without being mentioned in the httpd.conf file. By the way, the lines to enable php4 are commented out in that file, as they should be if I'm trying to run php5.

Secondly... I'm trying to get a PHP application running. It doesn't think that the Zend Optimizer is installed, even though it seemed I installed it from terminal correctly..

My plan is to wipe the PHP 4 and 5 installations as well as all occurrences of the Zend Optimizer.. and then reinstall PHP (4 or 5) along with the Zend Optimizer (which the application needs to run)..

part of the issue is that I think that the version of the version 3.2.8 Zend Optimizer I installed for PHP 5 was intended for Darwin 5.6 and even though it ran correctly.. I'm not sure the version for 5.6 jives with Tiger...

I suppose it might be safest to reinstall PHP 4.x and Zend 2.x which I know work.. in any case..

any advice anyone can offer would be most appreciated. thanks
 
for starters, turn off Personal Web Sharing in System->Preferences|Sharing. that should kill all existing instances of apache and related php.

then download MAMP. this installation package runs in user space and is self contained. it comes with Zend Optimizer out of the box.

 
I actually tried that once and ran into some problems because this is a box that in production. Several MySQL databases are running on this machine and I need them to stay up.

As far as I know, MAMP won't automatically find the old MySQL databases and Web Pages ? will it ?
I don't think it will. Will my MySQL login, web paths, be conserved?

By the way, I'm working on a clone of this system that I tried to upgrade to OS 10.4, that is what caused all the problems. So, I currently have a working 10.3 version of this box, and once I figure out how to keep my web pages, PHP and MySQL running perfectly under 10.4, I will upgrade the live machine. (after backing it up by cloning it, of course)



 
don't worry about mysql. mamp will create a separate instance of mysql but you can set the port to something non-standard.

if your native mysql instance is working your code run on the MAMP version of apache and php will just address the non-MAMP mysql. no problem.

i have not had problems with MAMP stability. i use it 24 hours a day but, admittedly, it is not under heavy load.
 
to debug your problem (rather than avoid it) open a terminal window and create a sudo session.

navigate to root and type
Code:
locate httpd.conf
[/conf]

that will, at least, give you all possible httpd.confs to look at

a ps -A will also tell you what http daemons are running which may help you track down recalcitrant apache instances.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top