View Full Version : How to upgrade PHP4 to PHP5
29th January 2006, 23:03
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,
29th January 2006, 23:05
Debian sarge does not have PHP5 packages. You can find PHP5 packages for sarge on backports.org.
30th January 2006, 10:34
You can find PHP5 packages also on http://www.dotdeb.org/
31st January 2006, 12:49
Oke, but than what? How can I make apt-get to install packages from those sites?
Thanks in advance,
31st January 2006, 13: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
31st January 2006, 20: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:
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".
4th September 2006, 13:05
Quick question, after install PHP5 like Till explained do i need to change/do something with ISPconfig ? (like running the setup file again ??)
5th September 2006, 19:54
No. You just need to restart your main Apache. :)
24th October 2006, 19:57
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:
7th November 2006, 16: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.
8th November 2006, 18:35
I don't think this will work for Ubuntu. Backports.org is for Debian only.
But you can run
apt-get update and search for PHP5 like this:
apt-cache search php5
9th November 2006, 23:17
^ I did it and there was no effect so I also did apt-get upgrade and then the update and searching commands. No php5 stuff found. I hope it's still impossible that php5 doesn't work on Ubuntu 5.04, huh.
10th November 2006, 11:08
Please post the content of the file /etc/apt/sources.list
10th November 2006, 17:05
deb cdrom:[Ubuntu 5.04 _Hoary Hedgehog_ - Release i386 (20050407)]/ hoary main restricted
deb-src http://bg.archive.ubuntu.com/ubuntu hoary main restricted
## Major bug fix updates produced after the final release of the
deb http://bg.archive.ubuntu.com/ubuntu hoary-updates main restricted
deb-src http://bg.archive.ubuntu.com/ubuntu hoary-updates main restricted
## Uncomment the following two lines to add software from the 'universe'
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
deb http://archive.ubuntu.com/ubuntu/ hoary universe main restricted multiverse
deb-src http://bg.archive.ubuntu.com/ubuntu hoary universe
deb http://security.ubuntu.com/ubuntu hoary-security main restricted
deb-src http://security.ubuntu.com/ubuntu hoary-security main restricted
deb http://security.ubuntu.com/ubuntu hoary-security universe
# deb-src http://security.ubuntu.com/ubuntu hoary-security universe
10th November 2006, 17:54
Then there are no PHP5 packages for Hoary Hedgehog. You could try to upgrade your system to a newer Ubuntu version like this:
But use this at your own risk! It's possible that your system becomes unusable...
vBulletin® v3.8.7, Copyright ©2000-2014, vBulletin Solutions, Inc.