Click to See Complete Forum and Search --> : Best Method to Uninstall & Upgrade PHP5?


hijinio
06-10-2005, 03:37 PM
Hi there,

I'm fairly new to PHP, but loving it because it's powerful & easy to pick up on. I'm finding that there are some items I should have enabled when I compiled it (LDAP support) - even though it is running fine with the web server configured. I'm a Unix system.

My question to you is two part:
* I would like to recompile PHP5 with extra options enabled. Is it as easy as shutting down my web server and recompiling it? That way, when I bring up my web server again, all the options are there.
* If not, how do I uninstall PHP5? (I'd like to know this answer just in case I ever need to do a clean install.)

Thank you in advance for your help!
Hiji

hijinio
06-12-2005, 09:56 PM
Yikes... 220+ views, and nobody has an answer? ;)

This could also apply to Linux users as well. Linux users, what do you do to uninstall PHP and/or recompile PHP to gain additional functionality?

Thanks!
Hiji

thorpe
06-16-2005, 11:24 AM
if your going to install the same version (just with more extensions), it should be as easy as shutting down the server, and recompiling with the options you want.

as for uninstalling... it depends on what flavour of linux your running. i use gentoo, so for me, its as simple as running a few commands. unfortunately this is about the only easy thing about gentoo. this os took me litterally 3 days to compile and about 6 weeks to get it running how i like.

unfortunately, most linux systems dont have this type of install/uninstall system, and for those, (as far as i know) you need to track down all the files related to php (these will be scattered fairly well through lots of directories) and delete them. linux has no registry, so this should be a safe method of removal.

hijinio
06-16-2005, 09:22 PM
Originally posted by thorpe
if your going to install the same version (just with more extensions), it should be as easy as shutting down the server, and recompiling with the options you want.

Ok, great! I just didn't know if I had to uninstall and then recompile. I will simply recompile.

Thanks!
Hiji

demetri007
06-19-2005, 03:46 PM
If you used RPM enter at shell#>rpm -e package. If you compiled from source you can just remove the directories, if you had compiled php5 not using its default install path. Dont know about RPM, then again it will do it for you. If you find out otherwise please let me know.

Demetri