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

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



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?

Thanks so much for your help and advice.

-Kevin

Kevin Zembower
Internet Services Group manager
Center for Communication Programs
Bloomberg School of Public Health
Johns Hopkins University
111 Market Place, Suite 310
Baltimore, Maryland  21202
410-659-6139 



Reply to: