Dotster VPS Upgrade to PHP 5 and MySQL 5

May 7, 2007

I recently purchased a Dotster VPS and needed to get it upgraded to have PHP 5 and MySQL 5, rather than version 4 of both. These machines run CentOS, so the best plan was to use yum.

Unfortunately, yum is not installed initially, so the first step was to get and install all the prerequisites plus yum:

export MIRROR=http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/
wget ${MIRROR}python-sqlite-1.1.7-1.2.i386.rpm
wget ${MIRROR}sqlite-3.3.3-1.2.i386.rpm
wget ${MIRROR}python-urlgrabber-2.9.8-2.noarch.rpm
wget ${MIRROR}python-elementtree-1.2.6-4.2.1.i386.rpm
wget ${MIRROR}yum-2.4.3-1.c4.noarch.rpm

rpm -Uhv python-elementtree-1.2.6-4.2.1.i386.rpm
rpm -Uhv python-urlgrabber-2.9.8-2.noarch.rpm
rpm -Uhv sqlite-3.3.3-1.2.i386.rpm
rpm -Uhv python-sqlite-1.1.7-1.2.i386.rpm
rpm -Uvh yum-2.4.3-1.c4.noarch.rpm

Once that is in place, you need to enable CentOS Plus. Go into /etc/yum.repos.d/CentOS-Base.repo and under [centosplus] change “enabled=0″ to “enabled=1″.

Now you can simply execute ‘yum update’ and it should install both MySQL 5 and PHP 5 with all the necessary prerequisites (plus a number of other things…)

Update: A few other things to do:

  • Remove /etc/php.d/ioncube-loader.ini This file will cause weirdness with PHP and throw “Failed loading /usr/lib/php4/php_ioncube_loader_lin_4.3.so: /usr/lib/php4/php_ioncube_loader_lin_4.3.so: undefined symbol: zend_hash_add_or_update” in /var/log/httpd/error_log
  • Change php.ini memory_limit to be increased from the default of 8M, I recommend at least 32MB
  • Tune your MaxClients setting in /etc/httpd/conf/httpd.conf I couldn’t begin to make a recommendation here…

Do this at your own risk, this could mess up your entire system. Be sure to have a good backup before starting this process.

cent os, centos, centos plus, centosplus, dotster, dotster vps, mysql, mysql 5, php, php 5, unix, vps, yum

Tags: , , , , , , , , , , , ,

Related:


Comments

9 Responses to “Dotster VPS Upgrade to PHP 5 and MySQL 5”

  1. » CentOS 5 Released on May 10th, 2007 6:54 pm

    [...] care because I want Apache 2.2.4, and while it’s pretty easy to get MySQL & PHP 5 on a CentOS/Plesk box, Apache 2.2 is a bit more of a [...]

  2. Tom Wilson on May 22nd, 2007 6:30 pm

    Hey, thanks a bunch for this little helper post. I just upgraded to a VPS and had php4 and mysql4, so this helped speed up the transition process 10 fold. Thanks again.

  3. Kevin on June 10th, 2007 1:10 pm

    One word - LIFESAVER! I’m in the process of transferring several of my sites to a new VPS with a new company, which only offers CentOS as the OS…which is fine, but I’m used to FC6. I wasn’t sure if I could just upgrade software without screwing up Plesk or what (not used to having a control panel to get in my way)

    Really helpful.

  4. Avi on July 6th, 2007 5:04 am

    WOW!

    I was pretty worried, but it was just smooth and easy. :)

    THANKS!

  5. John Doyle on August 8th, 2007 9:58 am

    had two centos 4.4 boxes this worked a charm.
    Had to recompile suexec but only took a few mins.
    Many thanks

  6. Cliff on November 1st, 2007 3:13 pm

    It is worth mentioning that you should upgrade your MySQL databases as well, so that you can take advantage of some of the zoomy new features in 5.

    mysql_upgrade -u admin –password=XXXXXXXX

  7. michael on November 30th, 2007 7:42 am

    You can get the ioncube loader message to go away by downloading the free ioncube loaders from this page

    http://www.ioncube.com/loaders.php

    the reason it is complaining is that now it only has the old loaders for php 4.3.

    since you have just upgraded to php5 you only need to upload the ioncube php5 loaders to get rid of that message.

    to do that do something like
    wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz

    make sure you go to ioncube and select the package that is right for your system. the random link above is the tar file for the linux x86-64 server

    then just copy the ioncube loader into the same directory that the complaints are coming from. in the case above it’s
    /usr/lib/php4/php_ioncube_loader_lin_4.3.so

    so you need to copy
    /usr/lib/php4/php_ioncube_loader_lin_5.0.so
    into the same directory then the ioncube loaders can be activated.

  8. Mahmoud on February 10th, 2008 3:40 am

    I followed exactly step by step your kindly provided recommendations, but yummy on my CentOS4.6 machine only upgraded the centos kernel on yum update. sql is still 4

  9. Dimi on April 6th, 2008 9:05 am

    Good help thanks,
    I’ve upgrade my PHP to v 5 without any issue
    but i have an error in the beginning of this upgrade for Mysql and now i should take some help from friends.

    Regards
    Dimi

Got something to say?





User contributed tags: t (844) - f (42) - yum update php (42) - plesk + upgrade php (36) - Failed loading /usr/lib/php4/php_ioncube_loader_lin_4.3 (33) - yum upgrade php (32) - undefined symbol: zend_hash_add_or_update (31) - yum php5 (30) - plesk php upgrade (28) - Failed loading /usr/lib/php4/php_ioncube_loader_lin_4 3 (24) - yum update mysql (23) - plesk update php (21) - plesk php5 (19) - yum upgrade mysql (18) - plesk (upgrade to php5) (18) - plesk php 5 (18) - centosplus mysql (17) - centos 5 mysql administrator (16) - upgrade php plesk (16) - plesk mysql 5 (16) - dotster vps (15) - mysql-administrator centos 5 (15) - yum mysql5 (15) - centos 5 php mysql (15) - yum update php mysql (14) - yum php 5 (13) - yum mysql 5 (13) - Failed loading /usr/lib/php4/php_ioncube_loader_lin_4.3 (13) - centos 5 php (12) - centos php5 (12) - plesk upgrade php5 (12) - centos php5 mysql (11) - centos 5 mysql (11) - centos plesk php5 (11) - centos mysql 5 rpm (11) - mysql centos 5 (10) - plesk mysql5 (10) - mysql administrator centos (10) - zend_hash_add_or_update (10) - yum php 5 centos (10) - centos 5 php5 (10) - vps php5 (10) - Centos upgrade mysql (10) - upgrade php centos (9) - Centos 5 MYSQL install (9) - centos yum php5 (9) - centos 3 php5 (9) - yum install php5 (9) - centos install php5 (9) - plesk centos php5 (8) - yum update mysql 5 (8) - php5 centos 5 (8) - yum install php 5 (8) - upgrading php plesk (8) - upgrade php4 to php5 centos (8) - yum install mysql 5 centos (8) - dotster php (8) - dotster vps yum (8) - plesk php5 upgrade (8) - centos4 php5 (8) - centOS 4 php5 (8) - plesk mysql-5 upgrade (7) - php5-mysql centos (7) - centosplus mysql5 (7) - yum php5-mysql (7) - plesk 8 upgrade php (7) - plesk php rpm (7) - php 5 centos (7) - CentOS Mysql (7) - plesk upgrade php 5 (7) - yum php (7) - centos php 5 (7) - Plesk Upgrade Mysql 5 (7) - yum php upgrade (7) - Failed loading /usr/lib/php4/php_ioncube_loader_lin_4 3 (7) - update php centos (7) - upgrade php on plesk (7) - php5 yum (7) - yum install php5 mysql (7) - dotster php version (7) - VPS mysql 5 (7) - plesk upgrading php (7) - install php5 + centos 4 (7) - upgrade php plesk 8 (6) - upgrade to php 5 yum (6) - Plesk 8 PHP 5 (6) - installing mysql in centos (6) - /usr/lib/php4/php_ioncube_loader_lin_4 3 so: undefined  (6) - php5 centos (6) - centos yum update php (6) - installing mysql centos (6) - vps upgrade mysql (6) - php update plesk (6) - dotster mysql (6) - upgrade mysql "centos 5" (6) - php5 plesk centos (6) - plesk update mysql (6) - php_ioncube_loader_lin_4.3.so (6) - upgrade php rpm (6) - centos upgrade to php 5 (6) - centos upgrade 4 to 5 (6) - plesk centos 5 (6) - +ioncube +"undefined symbol: zend_hash_add_or_update" (6) - upgrade php in plesk (6) - yum upgrade php plesk (6) - php 5 plesk (6) - plesk upgrade mysql (6) - mysql 5 rpm (6) - php5 plesk (6) - centos update mysql (6) - upgrade mysql centos (6) - centos mysql administrator (6) - upgrade php vps (5) - yum mysql update (5) - dotster (5) - yum mysql upgrade (5) - centos 5 mysql 5 (5) - plesk php update (5) - CentOS update PHP (5) - centos php 5 yum (5) - centos 5 mysql rpm (5) - upgrade mysql rpm (5) - php5 vps (5) - centos php5 with mysql (5) - yum upgrade mysql5 (5) - centos 3 php 5 (5) - wget mysql (5) - plesk update mysql 5 (5) - MySQL 5 on CentOS 4 (5) - Upgrade php5 Plesk (5) - yum install php version 5 (5) - yum install mysql 5 (5) - upgrade php on vps (5) - upgrade mysql 5 plesk (5) - centosplus mysql 5 (5) - centos upgrade php4 to php5 (5) - wget mysql CentOS (5) - undefined symbol: zend_hash_add_or_update php4 (5) - yum upgrade php 5 (5) - centos upgrade php (5) - plesk php5 centos (5) - mysql tools centOs (5) - yum upgrade php5 (5) - centos php rpm (5) - upgrade centos 4 to 5 (5) - php 5 plesk centos 4 (5) - php 5 yum (5) - upgrade PHP (5) - plesk mysql rpm (5) - install php5 on centos 5 (5) -