
12th January 2010, 00:58
|
|
Senior Member
|
|
Join Date: Apr 2008
Location: San Diego & Tijuana
Posts: 302
Thanks: 26
Thanked 32 Times in 30 Posts
|
|
How to update PHP?
I'm running ISPConfig3 with sites set up to use suPHP. I want to upgrade the PHP installation in my Debian Lenny box from the distro of 5.2.6 to the newer 5.2.12 or 5.3.
When I try compiling the source and installing PHP package 5.2.12 it seems to install ok but phpinfo() says I am still using 5.2.6. Looking at Synaptic shows both PHP's installed.
What am I missing here? Something to do with suPHP maybe? Thanks in advance.
|

12th January 2010, 11:25
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,883
Thanks: 691
Thanked 4,187 Times in 3,204 Posts
|
|
You have to install the new php 5.3 as mod_php, cli php and cgi php, so compiling php from source is not a good solution. Better use the debian packages from dotdeb:
www.dotdeb.org
|

12th January 2010, 15:30
|
|
Senior Member
|
|
Join Date: Apr 2008
Location: San Diego & Tijuana
Posts: 302
Thanks: 26
Thanked 32 Times in 30 Posts
|
|
Thank you for the link. Didn't know that one.
(Edit) Did the above only to find out that 5.3 doesn't work well with Drupal 6, Gallery2, etc.
Was able to downgrade back to PHP 5.2.6 then upgrade to 5.2.12.
aptitude install php5=5.2.6.dfsg.1-1+lenny4
aptitude install php5=5.2.12-0.dotdeb.1
Last edited by BorderAmigos; 12th January 2010 at 19:17.
Reason: update
|

14th January 2010, 22:23
|
|
Senior Member
|
|
Join Date: Apr 2008
Location: San Diego & Tijuana
Posts: 302
Thanks: 26
Thanked 32 Times in 30 Posts
|
|
Drupal is working fine now with PHP 5.2.12. But ISPConfig 3 admin is giving some errors. They don't really affect anything but probably should be addressed.
Code:
Strict Standards: ob_start() [function.ob-start]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PST/-8.0/no DST' instead in /usr/local/ispconfig/interface/lib/app.inc.php on line 35
Warning: ob_start() [ref.outcontrol]: output handler 'ob_gzhandler' conflicts with 'zlib output compression' in /usr/local/ispconfig/interface/lib/app.inc.php on line 35
EDIT: It seems zlib compression was enabled after the update and was causing this error. I disabled it and the error went away. Not sure how that happened.
Last edited by BorderAmigos; 15th January 2010 at 17:38.
Reason: Update
|

15th January 2012, 15:37
|
|
HowtoForge Supporter
|
|
Join Date: Nov 2006
Posts: 207
Thanks: 17
Thanked 3 Times in 3 Posts
|
|
Quote:
Originally Posted by till
You have to install the new php 5.3 as mod_php, cli php and cgi php, so compiling php from source is not a good solution. Better use the debian packages from dotdeb:
www.dotdeb.org
|
Trying to update my php also so I am using this link. After following the instructions I am stuck at:
Code:
cat dotdeb.gpg | sudo apt-key add -
Any help would be appreciated...
__________________
Updating my server to Debian Squeeze, so here I go again...
|

15th January 2012, 15:41
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,883
Thanks: 691
Thanked 4,187 Times in 3,204 Posts
|
|
Which error do you get?
|

15th January 2012, 16:04
|
|
HowtoForge Supporter
|
|
Join Date: Nov 2006
Posts: 207
Thanks: 17
Thanked 3 Times in 3 Posts
|
|
Quote:
Originally Posted by till
Which error do you get?
|
I am getting:
Code:
server1:~# cat dotdeb.gpg | sudo apt-key add -
-bash: sudo: command not found
__________________
Updating my server to Debian Squeeze, so here I go again...
|

15th January 2012, 16:31
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,883
Thanks: 691
Thanked 4,187 Times in 3,204 Posts
|
|
run the command without sudo:
cat dotdeb.gpg | apt-key add -
|

15th January 2012, 16:44
|
|
HowtoForge Supporter
|
|
Join Date: Nov 2006
Posts: 207
Thanks: 17
Thanked 3 Times in 3 Posts
|
|
Quote:
Originally Posted by till
run the command without sudo:
cat dotdeb.gpg | apt-key add -
|
That indeed got rid of the error, thanks for that Till.
But now I ran apt-get update/upgrade but still no update from my php version?
It sees the update fine if I am correct
Code:
server1:~# apt-get update
Hit http://security.debian.org lenny/updates Release.gpg
Ign http://security.debian.org lenny/updates/main Translation-en_US
Get:1 http://mirror.nl.leaseweb.net oldstable Release.gpg [836B]
Ign http://mirror.nl.leaseweb.net oldstable/all Translation-en_US
Hit http://mirror.nl.leaseweb.net oldstable Release
Hit http://security.debian.org lenny/updates Release
Ign http://mirror.nl.leaseweb.net oldstable/all Packages/DiffIndex
Ign http://mirror.nl.leaseweb.net oldstable/all Sources/DiffIndex
Hit http://mirror.nl.leaseweb.net oldstable/all Packages
Hit http://mirror.nl.leaseweb.net oldstable/all Sources
Ign http://security.debian.org lenny/updates/main Packages/DiffIndex
Get:2 http://php53.dotdeb.org oldstable Release.gpg [836B]
Ign http://php53.dotdeb.org oldstable/all Translation-en_US
Ign http://security.debian.org lenny/updates/main Sources/DiffIndex
Hit http://security.debian.org lenny/updates/main Packages
Hit http://php53.dotdeb.org oldstable Release
Hit http://security.debian.org lenny/updates/main Sources
Ign http://php53.dotdeb.org oldstable/all Packages/DiffIndex
Ign http://php53.dotdeb.org oldstable/all Sources/DiffIndex
Hit http://php53.dotdeb.org oldstable/all Packages
Hit http://php53.dotdeb.org oldstable/all Sources
Hit http://ftp.nl.debian.org lenny Release.gpg
Ign http://ftp.nl.debian.org lenny/main Translation-en_US
Hit http://ftp.nl.debian.org lenny Release
Ign http://ftp.nl.debian.org lenny/main Packages/DiffIndex
Hit http://volatile.debian.org lenny/volatile Release.gpg
Ign http://volatile.debian.org lenny/volatile/main Translation-en_US
Ign http://volatile.debian.org lenny/volatile/contrib Translation-en_US
Ign http://ftp.nl.debian.org lenny/main Sources/DiffIndex
Hit http://ftp.nl.debian.org lenny/main Packages
Ign http://volatile.debian.org lenny/volatile/non-free Translation-en_US
Hit http://volatile.debian.org lenny/volatile Release
Hit http://ftp.nl.debian.org lenny/main Sources
Ign http://volatile.debian.org lenny/volatile/main Packages/DiffIndex
Ign http://volatile.debian.org lenny/volatile/main Sources/DiffIndex
Ign http://volatile.debian.org lenny/volatile/contrib Packages/DiffIndex
Ign http://volatile.debian.org lenny/volatile/non-free Packages/DiffIndex
Hit http://volatile.debian.org lenny/volatile/main Packages
Hit http://volatile.debian.org lenny/volatile/main Sources
Hit http://volatile.debian.org lenny/volatile/contrib Packages
Hit http://volatile.debian.org lenny/volatile/non-free Packages
Fetched 1672B in 1s (1654B/s)
Reading package lists... Done
server1:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
bind9-host dnsutils libapache2-mod-php5 libbind9-50 libisccc50 libisccfg50
liblwres50 mysql-client mysql-server php-pear php5 php5-cgi php5-cli
php5-common php5-curl php5-gd php5-imagick php5-imap php5-mcrypt php5-mysql
The following packages will be upgraded:
mysql-common
1 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.
Need to get 75.4kB of archives.
After this operation, 28.7kB disk space will be freed.
Do you want to continue [Y/n]? y
Get:1 http://mirror.nl.leaseweb.net oldstable/all mysql-common 5.1.58-1~dotdeb.0 [75.4kB]
Fetched 75.4kB in 0s (1645kB/s)
Reading changelogs... Done
(Reading database ... 38037 files and directories currently installed.)
Preparing to replace mysql-common 5.0.51a-24+lenny5 (using .../mysql-common_5.1.58-1~dotdeb.0_all.deb) ...
Unpacking replacement mysql-common ...
Setting up mysql-common (5.1.58-1~dotdeb.0) ...
Configuration file `/etc/mysql/my.cnf'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : background this process to examine the situation
The default action is to keep your current version.
*** my.cnf (Y/I/N/O/D/Z) [default=N] ?
server1:~#
__________________
Updating my server to Debian Squeeze, so here I go again...
|

16th January 2012, 12:40
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 21:49.
|
Recent comments
2 days 12 hours ago
2 days 21 hours ago
3 days 27 min ago
3 days 1 hour ago
3 days 3 hours ago
3 days 4 hours ago
3 days 6 hours ago
3 days 7 hours ago
3 days 23 hours ago
4 days 12 min ago