HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   How to upgrade PHP4 to PHP5 (http://www.howtoforge.com/forums/showthread.php?t=2296)

Jeroen 29th January 2006 22:03

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.

till 29th January 2006 22:05

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

http://www.backports.org

falko 30th January 2006 09:34

You can find PHP5 packages also on http://www.dotdeb.org/

Jeroen 31st January 2006 11:49

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

Thanks in advance,

Regards,

Jeroen.

Jeroen 31st January 2006 12:02

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!

till 31st January 2006 19:53

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".

avdongen 4th September 2006 12:05

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.

falko 5th September 2006 18:54

No. You just need to restart your main Apache. :)

oxxmoxx 24th October 2006 18:57

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 ...:rolleyes:

Greetz
Alex

pop_corn 7th November 2006 15:05

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.


All times are GMT +2. The time now is 15:47.

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