How to update php with Centos 5 and Plesk
The official Centos 5 repositories at the time of this writing have php 5.1.6 as the most up to date version of php. With Plesk installed many users have found upgrading php by use of RPMs or recompiling php somewhat tricky.
The method described below was tested on a clean install of Centos 5.2 with Plesk 9.0.1 As always, it is recommended that you backup your system before making any significant changes if the system you are upgrading is not a clean install (aka: you just reimaged the machine). The repositories being added from Atomicorp
|
1.Step:
|
Log into your server via ssh as described here.
 Tip
If you get a "wget: command not found" error, this is because wget is not installed. It can be installed using this command:
yum install wget
|
|
2.Step:
|
At the command prompt enter this line
wget -q -O - http://www.atomicorp.com/installers/atomic |sh
and press enter. During this process you will be prompted on whether you are using Plesk 9 or Plesk 8. Put in the corresponding number and enter.
|
|
3.Step:
|
Update the system using yum by enter the command
yum update
and pressing enter. You will be prompted on what will be install and how much space it will use. Enter Y for yes or N for no. If you choose no to either of these then the system will not be updated.
Here is what was updated on the machine tested
Mar 23 07:20:40 Updated: tzdata - 2008i-1.el5.noarch
Mar 23 07:20:53 Updated: glibc-common - 2.5-24.el5_2.2.x86_64
Mar 23 07:21:00 Updated: glibc - 2.5-24.el5_2.2.x86_64
Mar 23 07:21:02 Updated: glibc - 2.5-24.el5_2.2.i686
Mar 23 07:21:02 Updated: krb5-libs - 1.6.1-25.el5_2.2.x86_64
Mar 23 07:21:02 Updated: openssl - 0.9.8b-10.el5_2.1.x86_64
Mar 23 07:21:03 Updated: libxml2 - 2.6.26-2.1.2.7.x86_64
Mar 23 07:21:03 Updated: php-common - 5.2.9-2.el5.art.x86_64
Mar 23 07:21:03 Installed: mysql-libs - 5.0.77-1.el5.art.x86_64
Mar 23 07:21:04 Updated: net-snmp-libs - 1:5.3.1-24.el5_2.2.x86_64
Mar 23 07:21:04 Updated: httpd - 2.2.3-11.el5_2.centos.4.x86_64
Mar 23 07:21:05 Updated: bind-libs - 30:9.3.4-6.0.3.P1.el5_2.x86_64
Mar 23 07:21:05 Updated: nspr - 4.7.3-2.el5.x86_64
Mar 23 07:21:05 Updated: gnutls - 1.4.1-3.el5_2.1.x86_64
Mar 23 07:21:06 Updated: net-snmp - 1:5.3.1-24.el5_2.2.x86_64
Mar 23 07:21:06 Updated: php-cli - 5.2.9-2.el5.art.x86_64
Mar 23 07:21:06 Updated: php-pdo - 5.2.9-2.el5.art.x86_64
Mar 23 07:21:06 Updated: libxml2-python - 2.6.26-2.1.2.7.x86_64
Mar 23 07:21:07 Updated: dbus - 1.0.0-7.el5_2.1.x86_64
Mar 23 07:21:07 Installed: libICE - 1.0.1-2.1.x86_64
Mar 23 07:21:07 Installed: libXext - 1.0.1-2.1.x86_64
Mar 23 07:21:07 Updated: krb5-libs - 1.6.1-25.el5_2.2.i386
Mar 23 07:21:07 Installed: libSM - 1.0.1-3.1.x86_64
Mar 23 07:21:07 Installed: libXt - 1.0.2-3.1.fc6.x86_64
Mar 23 07:21:08 Installed: libXmu - 1.0.2-5.x86_64
Mar 23 07:21:08 Installed: libXaw - 1.0.2-8.1.x86_64
Mar 23 07:21:08 Installed: t1lib - 5.1.2-2.el5.art.x86_64
Mar 23 07:21:09 Updated: bind - 30:9.3.4-6.0.3.P1.el5_2.x86_64
Mar 23 07:21:09 Updated: php - 5.2.9-2.el5.art.x86_64
Mar 23 07:21:09 Updated: cups-libs - 1:1.2.4-11.18.el5_2.3.x86_64
Mar 23 07:21:10 Updated: nss - 3.12.2.0-4.el5.centos.x86_64
Mar 23 07:21:10 Updated: mysql - 5.0.77-1.el5.art.x86_64
Mar 23 07:21:13 Updated: vim-common - 2:7.0.109-4.el5_2.4z.x86_64
Mar 23 07:21:13 Updated: openssl - 0.9.8b-10.el5_2.1.i686
Mar 23 07:21:13 Updated: perl-TimeDate - 1:1.16-5.el5.noarch
Mar 23 07:21:13 Updated: php-mysql - 5.2.9-2.el5.art.x86_64
Mar 23 07:21:13 Updated: php-imap - 5.2.9-2.el5.art.x86_64
Mar 23 07:21:13 Updated: vim-minimal - 2:7.0.109-4.el5_2.4z.x86_64
Mar 23 07:21:14 Updated: net-snmp-utils - 1:5.3.1-24.el5_2.2.x86_64
Mar 23 07:21:14 Updated: php-mbstring - 5.2.9-2.el5.art.x86_64
Mar 23 07:21:14 Updated: php-xml - 5.2.9-2.el5.art.x86_64
Mar 23 07:21:15 Updated: psa-kronolith - 2.1.8-1.el5.art.noarch
Mar 23 07:21:15 Updated: nscd - 2.5-24.el5_2.2.x86_64
Mar 23 07:21:15 Updated: vim-enhanced - 2:7.0.109-4.el5_2.4z.x86_64
Mar 23 07:21:20 Updated: caching-nameserver - 30:9.3.4-6.0.3.P1.el5_2.x86_64
Mar 23 07:21:22 Updated: mysql-server - 5.0.77-1.el5.art.x86_64
Mar 23 07:21:22 Updated: php-gd - 5.2.9-2.el5.art.x86_64
Mar 23 07:21:23 Updated: psa-proftpd - 1.3.2-2.el5.art.x86_64
Mar 23 07:21:23 Updated: mod_ssl - 1:2.2.3-11.el5_2.centos.4.x86_64
|
|
|
Disclaimer: 1&1 provides the scripts and related information on this page as a courtesy, subject to 1&1's General Terms and Conditions of Service (the "GT&C"). As set forth in more detail in the GT&C, the scripts and information are provided "as-is", without any warranty, and 1&1 is not liable for any damages resulting from your use of the scripts or information.
|