#1  
Old 12th January 2010, 00:58
BorderAmigos BorderAmigos is offline
Senior Member
 
Join Date: Apr 2008
Location: San Diego & Tijuana
Posts: 302
Thanks: 26
Thanked 33 Times in 31 Posts
Send a message via MSN to BorderAmigos Send a message via Yahoo to BorderAmigos
Default 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.
__________________
System6Hosting.com, ISPConfig 3, Debian.
Reply With Quote
Sponsored Links
  #2  
Old 12th January 2010, 11:25
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,421
Thanks: 812
Thanked 5,205 Times in 4,081 Posts
Default

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
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 12th January 2010, 15:30
BorderAmigos BorderAmigos is offline
Senior Member
 
Join Date: Apr 2008
Location: San Diego & Tijuana
Posts: 302
Thanks: 26
Thanked 33 Times in 31 Posts
Send a message via MSN to BorderAmigos Send a message via Yahoo to BorderAmigos
Default

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
__________________
System6Hosting.com, ISPConfig 3, Debian.

Last edited by BorderAmigos; 12th January 2010 at 19:17. Reason: update
Reply With Quote
  #4  
Old 14th January 2010, 22:23
BorderAmigos BorderAmigos is offline
Senior Member
 
Join Date: Apr 2008
Location: San Diego & Tijuana
Posts: 302
Thanks: 26
Thanked 33 Times in 31 Posts
Send a message via MSN to BorderAmigos Send a message via Yahoo to BorderAmigos
Default

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.
__________________
System6Hosting.com, ISPConfig 3, Debian.

Last edited by BorderAmigos; 15th January 2010 at 17:38. Reason: Update
Reply With Quote
  #5  
Old 15th January 2012, 15:37
DaRKNeSS666NL DaRKNeSS666NL is offline
HowtoForge Supporter
 
Join Date: Nov 2006
Posts: 207
Thanks: 17
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by till View Post
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...
Reply With Quote
  #6  
Old 15th January 2012, 15:41
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,421
Thanks: 812
Thanked 5,205 Times in 4,081 Posts
Default

Which error do you get?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 15th January 2012, 16:04
DaRKNeSS666NL DaRKNeSS666NL is offline
HowtoForge Supporter
 
Join Date: Nov 2006
Posts: 207
Thanks: 17
Thanked 4 Times in 4 Posts
Default

Quote:
Originally Posted by till View Post
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...
Reply With Quote
  #8  
Old 15th January 2012, 16:31
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,421
Thanks: 812
Thanked 5,205 Times in 4,081 Posts
Default

run the command without sudo:

cat dotdeb.gpg | apt-key add -
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 17:26
Unable to install ISPConfig bdonecker Installation/Configuration 21 26th May 2009 08:20
ISP Config hesitation when opening web pages frankb Installation/Configuration 7 15th December 2008 13:06
ispconfig php 5 errors itamarjp Installation/Configuration 8 25th April 2008 10:20
Apache2 Freezes celtic Server Operation 31 28th May 2007 17:18


All times are GMT +2. The time now is 08:16.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.