Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 29th January 2006, 22:03
Jeroen Jeroen is offline
Junior Member
 
Join Date: Jan 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Red face How to upgrade PHP4 to PHP5

Hi everybody,

I followed the Debian Sarge Howto and everything went just fine. But now I want to update PHP4 to PHP5, how is this done?

Thanks in advance,

Regards,

Jeroen.
Reply With Quote
Sponsored Links
  #2  
Old 29th January 2006, 22:05
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,717
Thanks: 820
Thanked 5,322 Times in 4,175 Posts
Default

Debian sarge does not have PHP5 packages. You can find PHP5 packages for sarge on backports.org.

http://www.backports.org
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 30th January 2006, 09:34
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

You can find PHP5 packages also on http://www.dotdeb.org/
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 31st January 2006, 11:49
Jeroen Jeroen is offline
Junior Member
 
Join Date: Jan 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Oke, but than what? How can I make apt-get to install packages from those sites?

Thanks in advance,

Regards,

Jeroen.
Reply With Quote
  #5  
Old 31st January 2006, 12:02
Jeroen Jeroen is offline
Junior Member
 
Join Date: Jan 2006
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Is this the correct syntax to update to php5:

apt-get install libapache2-mod-php5 libapache2-mod-perl2 php5 php5-cli php5-common php5-curl php5-dev php5-domxml php5-gd php5-imap php5-ldap php5-mcal php5-mhash php5-mysql php5-odbc php5-pear php5-xslt curl libwww-perl imagemagick

Thanks!
Reply With Quote
  #6  
Old 31st January 2006, 19:53
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,717
Thanks: 820
Thanked 5,322 Times in 4,175 Posts
Default

First you have to add the source from the site to your apt sources list. For backports.org add this line:

deb http://www.backports.org/debian/ sarge-backports main

to your /etc/apt/sources.list. Then run the command:

apt-get update

To see which php5 packages are available, execute this command:

apt-cache search php5

Then install the packages that you need with the command:

apt-get install packagename1 packagename2 pacakgename3

The pcakaes might be named like this:

apt-get install libapache2-mod-php5 libapache2-mod-perl2 php5 php5-cli php5-common php5-curl php5-dev php5-domxml php5-gd php5-imap php5-ldap php5-mcal php5-mhash php5-mysql php5-odbc php5-pear php5-xslt

But I'am not sure if all these packages where available at backports.org, so its better if you compare this list with the packages list you get with "apt-cache search php5".
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 4th September 2006, 12:05
avdongen avdongen is offline
Junior Member
 
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Quick question, after install PHP5 like Till explained do i need to change/do something with ISPconfig ? (like running the setup file again ??)

Regards,

Adrian.
Reply With Quote
  #8  
Old 5th September 2006, 18:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

No. You just need to restart your main Apache.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 24th October 2006, 18:57
oxxmoxx oxxmoxx is offline
Junior Member
 
Join Date: Sep 2006
Posts: 17
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Hi,

please let me add something to this topic, because I have to spend a lot of time to find a solution for a problem.

After the update to php5 with apt-get and the parameters above apache and php5 works, but mysql and gd-support for example is per default not active.

For activation the modules it is neccessary the modify the php.ini (/etc/php5/apache2/php.ini). In the Section "Dynamic Extensions" you have to integrate the modules - for example: "extension=mysql.so".

Then restart the apache and everything works fine

I hope this will help for some "isp-config fighter" to save time ...

Greetz
Alex
Reply With Quote
  #10  
Old 7th November 2006, 15:05
pop_corn pop_corn is offline
Junior Member
 
Join Date: Nov 2006
Location: Bulgaria, Plovdiv
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to pop_corn Send a message via Yahoo to pop_corn
Default

Hallo. I'm glad to see you've discussed something that I've been through for some time.
I'm an Ubuntu 5.04 user and I installed php4 and mysql4 from my Synaptic. What I'm curious about is whether the things you've shared here are actual for my situation too. If not, I'm just wondering if you have some links or whatever useful to tell me what to do to get php5 version.

Thanks.
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
Sarge php5 freeType gd pontifex Installation/Configuration 6 7th December 2005 09:37
Big unespected problem in upgrade!!! donaldblake Installation/Configuration 6 6th December 2005 22:31
Suse 9.3 setup probs with php5 hyperclock Tips/Tricks/Mods 0 21st September 2005 02:34
Installing PHP4 ProTrooper Installation/Configuration 10 29th August 2005 20:20
Upgrade to 2.0.8? bearau HOWTO-Related Questions 2 27th August 2005 09:20


All times are GMT +2. The time now is 04:06.


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