Discussion:
[PHP-INSTALL] uninstall php-5.2.6
Simon Jones
2008-07-21 11:39:52 UTC
Permalink
Hi all, how to i remove php-5.2.6 from my red hat box? i compiled
from source but need to go back to 4 asap.

i tried make uninstall but i just get errors.

Thanks for any pointers,

SMJ
Simon Jones
2008-07-21 12:17:39 UTC
Permalink
I wish to remove php-5.2.6 completely from my machine after
configuring it from source. how can this be done?

when i try make uninstall i get:

make: *** No rule to make target `uninstall'. Stop.

thanks, i need to uninstall so i can go back to an older version.
Daniel Brown
2008-07-21 16:30:49 UTC
Permalink
Post by Simon Jones
I wish to remove php-5.2.6 completely from my machine after
configuring it from source. how can this be done?
make: *** No rule to make target `uninstall'. Stop.
thanks, i need to uninstall so i can go back to an older version.
Just reconfigure, rebuild, and reinstall PHP4 over PHP5, if your
PHP4 binary doesn't already exist on the server. If it does, just
update your httpd.conf (or other web server configuration file) to
reflect the change. If you need to downgrade the CLI version, be sure
to do that as a fresh build as well. Don't worry about uninstalling
unless you're worried about disk space (which should not be an issue
even on an old P2 server).
--
</Daniel P. Brown>
Better prices on dedicated servers:
Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
Dedicated servers, VPS, and hosting from $2.50/mo.
Simon Jones
2008-07-23 11:46:06 UTC
Permalink
Post by Daniel Brown
Post by Simon Jones
I wish to remove php-5.2.6 completely from my machine after
configuring it from source. how can this be done?
make: *** No rule to make target `uninstall'. Stop.
thanks, i need to uninstall so i can go back to an older version.
Just reconfigure, rebuild, and reinstall PHP4 over PHP5, if your
PHP4 binary doesn't already exist on the server. If it does, just
update your httpd.conf (or other web server configuration file) to
reflect the change. If you need to downgrade the CLI version, be sure
to do that as a fresh build as well. Don't worry about uninstalling
unless you're worried about disk space (which should not be an issue
even on an old P2 server).
Hi Daniel,

thanks for the help, I have rebuilt from source (php 4) but still php
-v returns the 5.2.6 version, I've even removed httpd and all
dependencies and reinstalled then rebooted but php -v still returns
5.2.6 - any ideas why or am i losing the plot :)

[***@host ~]# php -v
PHP 5.2.6 (cli) (built: Jul 16 2008 13:09:31)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
[***@host ~]#
Simon Jones
2008-07-23 13:37:02 UTC
Permalink
Post by Simon Jones
Post by Daniel Brown
Post by Simon Jones
I wish to remove php-5.2.6 completely from my machine after
configuring it from source. how can this be done?
make: *** No rule to make target `uninstall'. Stop.
thanks, i need to uninstall so i can go back to an older version.
Just reconfigure, rebuild, and reinstall PHP4 over PHP5, if your
PHP4 binary doesn't already exist on the server. If it does, just
update your httpd.conf (or other web server configuration file) to
reflect the change. If you need to downgrade the CLI version, be sure
to do that as a fresh build as well. Don't worry about uninstalling
unless you're worried about disk space (which should not be an issue
even on an old P2 server).
Hi Daniel,
thanks for the help, I have rebuilt from source (php 4) but still php
-v returns the 5.2.6 version, I've even removed httpd and all
dependencies and reinstalled then rebooted but php -v still returns
5.2.6 - any ideas why or am i losing the plot :)
PHP 5.2.6 (cli) (built: Jul 16 2008 13:09:31)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
Fixed, it's running 5.2.4 now but still thinks it's running 5.2.6 when
you ask it... anyway least it's working now :)
Daniel Brown
2008-07-23 13:44:04 UTC
Permalink
Post by Simon Jones
Fixed, it's running 5.2.4 now but still thinks it's running 5.2.6 when
you ask it... anyway least it's working now :)
What leads you to believe that the server is running 5.2.4? If
it's saying 5.2.6, unless you changed something in the source, it
should actually be running 5.2.6. Are you seeing 5.2.4 in phpinfo()
output? If so, again, keep in mind that CLI and Apache binaries are
completely separate.
--
</Daniel P. Brown>
Better prices on dedicated servers:
Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
Dedicated servers, VPS, and hosting from $2.50/mo.
Daniel Brown
2008-07-23 13:42:12 UTC
Permalink
Post by Simon Jones
thanks for the help, I have rebuilt from source (php 4) but still php
-v returns the 5.2.6 version, I've even removed httpd and all
dependencies and reinstalled then rebooted but php -v still returns
5.2.6 - any ideas why or am i losing the plot :)
PHP 5.2.6 (cli) (built: Jul 16 2008 13:09:31)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
They're actually two completely separate builds: the Apache
interface is one build, and the CLI executable is another. So
removing httpd actually wouldn't do anything but cause more problems,
to be honest. I did see, however, that your follow-up email said that
you got it to work. Glad to hear that part.
--
</Daniel P. Brown>
Better prices on dedicated servers:
Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
Dedicated servers, VPS, and hosting from $2.50/mo.
Loading...