[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to switch from php4 to php5 when upgrading to etch?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Zembower, Kevin escribió:
> I just upgraded my server from sarge to etch. Everything seemed to go
> well. php5 was installed. However, php4 still seems to be used by
> default:
> cn2:/etc/alternatives# ls -la `which php`
> lrwxrwxrwx 1 root root 21 Sep 11  2006 /usr/bin/php ->
> /etc/alternatives/php
> cn2:/etc/alternatives# ls -l /etc/alternatives/php
> lrwxrwxrwx 1 root root 13 Apr 19 13:32 /etc/alternatives/php ->
> /usr/bin/php4
> cn2:/etc/alternatives# ls -l /usr/bin/php4
> -rwxr-xr-x 1 root root 3086552 Mar  7 18:56 /usr/bin/php4
> cn2:/etc/alternatives# /usr/bin/php -v
> PHP 4.4.4-8+etch1 (cli) (built: Mar  7 2007 23:55:48)
> Copyright (c) 1997-2006 The PHP Group
> Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
> cn2:/etc/alternatives# /usr/bin/php4 -v
> PHP 4.4.4-8+etch1 (cli) (built: Mar  7 2007 23:55:48)
> Copyright (c) 1997-2006 The PHP Group
> Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
> cn2:/etc/alternatives#
> 
> What has to be done to switch all uses of php to php5? Is there a
> document somewhere that describes this?

Yes, your webserver manual. If you're using Apache then you should tell
to apache that uses php5, he doesn't guess IIRC, the same apply if
you're using any webserver like lighthttpd or cherokee. Isn't magic ;-).

BTW, if you're not using php4 anymore then you should purge/remove it
from your system.

Regards,
Jose Luis.
- --

ghostbar on Linux/Debian 'sid' i686 - #382503
Weblog: http://ghostbar.ath.cx/ - http://talug.org.ve
http://debian.org.ve - irc.debian.org #debian-ve #debian-devel-es
San Cristóbal, Venezuela. http://chaslug.org.ve
Fingerprint = 3E7D 4267 AFD5 2407 2A37  20AC 38A0 AD5B CACA B118
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGJ8MMOKCtW8rKsRgRCgfrAJ49QKG4HWlQERZyu0MerfCCDof0KgCghDzc
hfxBhwQk1q0FjGxr8RT5qrM=
=jEO5
-----END PGP SIGNATURE-----



Reply to: