Date: Wed, 17 Dec 2008 22:54:35 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Grant Peel <gpeel@thenetnow.com> Cc: freebsd-questions@freebsd.org Subject: Re: PHP and PHP-Extensions Message-ID: <4949832B.80703@infracaninophile.co.uk> In-Reply-To: <DD12D2E5EAD740BD8D8365B07AC44A19@GRANTPC> References: <DD12D2E5EAD740BD8D8365B07AC44A19@GRANTPC>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB1E6549DBB01559024CFF0B5 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Grant Peel wrote: > I have a somewhat broken installation of php 4.4.7 and the extensions > and want to completely remove them and reinstall them. >=20 > How does one conpletely remove php4 (from ports) and the extensions > to ensure a clean install? Make sure you have good backups. Also make sure you have a handy list of= all the ports you started with: # pkg_info -Ia > /root/initial.ports Now, delete the lang/php4 port and everything that depends on it. The easiest way to do this is with the pkg_deinstall program which is part of portupgrade(1): # pkg_deinstall -dfr php4=20 'php4' is actually a packagename glob, so this will delete any package mentioning 'php4' in its name, plus every thing depending on those ports.= So it will delete pure PECL or PEAR code modules and end user application= s as well. Then regenerate the list of ports you've got installed and diff it against the initial list as a sanity check: # pkg_info -Ia > /root/final.ports # diff -u initial.ports final.ports That should be pretty much it. If you've stripped out everything PHP related then /usr/local/lib/php/ and /usr/local/share/pear/ should be empty or gone completely, and there should be no ports left with 'php', 'pear' or 'pecl' prominently in their names. Nor should you have 'eaccelerator' or 'zend' related stuff still there. You'll still have some PHP related files in /usr/local/etc/ which you can delete or not as required -- they all have php in the name or directory path making them quite easy to identify. Note however that if you're intending to upgrade to PHP5 then you must delete /usr/local/etc/php.conf first, as that's the file that tells bsd.php.mk which version of PHP you're using. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enigB1E6549DBB01559024CFF0B5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAklJgzEACgkQ8Mjk52CukIzQRgCfTgPTfRhU2BReAM0E85shABlJ 8mkAn0T1SO3kEXFOvqOTn/7r26bBVfP9 =867i -----END PGP SIGNATURE----- --------------enigB1E6549DBB01559024CFF0B5--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4949832B.80703>