I’m finding that more and more software developers are being quite inconsiderate and are making code that requires PHP 5.3. Since many server-based and long-term support distros are still on PHP 5.2, this can make things difficult quickly.
I’ll share how I upgraded one of my servers, but I do need to let you know about some specifics about my setup as your setup may be different and require different steps to upgrade.
When I started, my system ran CentOS 5.5 and PHP 5.2.16. Now it is running CentOS 5.6 and PHP 5.3.3.
You won’t be able to follow these steps without root access, so that is definitely a requirement. I’m also running Apache. You may be using a different web server, but if you don’t know what I’m talking about, you are running Apache. I assume that if you run a different server, you will know what to change in my steps.
Upgrade CentOS 5.5 to CentOS 5.6
I found that CentOS 5.6, released earlier this year, had package support for PHP 5.3. That made me very excited. I thought that all I needed to do was to upgrade my distro, and I would be done (I would later find that I was na茂ve).
Fortunately, upgrading CentOS is very easy. I simply ran the following command to spawn a huge amount of work for the server:
[user@server ~]$ sudo yum update [sudo] password for user: Loaded plugins: fastestmirror, priorities Loading mirror speeds from cached hostfile * addons: mirrors.tummy.com * base: centos.mirror.lstn.net * epel: fedora-epel.mirror.lstn.net * extras: mirror.ubiquityservers.com * updates: mirror.steadfast.net Setting up Update Process Resolving Dependencies --> Running transaction check ---> Package amtu.x86_64 0:1.0.6-2.el5 set to be updated ---> Package asciidoc.noarch 0:8.6.5-1.el5.rf set to be updated ---> Package audit.x86_64 0:1.7.18-2.el5 set to be updated ... Install 5 Package(s) Upgrade 208 Package(s) Remove 2 Package(s) Reinstall 0 Package(s) Downgrade 0 Package(s) Total download size: 309 M Is this ok [y/N]: y Downloading Packages: (1/213): avahi-glib-0.6.16-10.el5_6.x86_64.rpm | 15 kB 00:00 (2/213): avahi-glib-0.6.16-10.el5_6.i386.rpm | 15 kB 00:00 (3/213): rng-utils-2.0-4.el5.x86_64.rpm | 17 kB 00:00 ... Complete! [user@server ~]$
Notice the white “y” toward the bottom. Before it does anything, you must answer its question with a “y”. Just hitting enter will cancel the upgrade.
This will take between 5-30 minutes on average depending on the number of packages to be upgraded, the speed of your system, and your servers connection speed. So pop open a root beer and wait for everything to finish up.
Reboot the server
Since this should have installed a new kernel for your system, you will want to reboot so that this new kernel can be loaded.
Rebooting a server can be a scary thing. Make sure that you know how to contact your hosting company’s tech support in case there are any problems with connecting to the server after the reboot. Also make sure that you notify any people that may be upset about the reboot before you do it.
Upgrade PHP 5.2 to PHP 5.3
I booted up my system and found that my PHP version was not upgraded:
[user@server ~]$ php -v PHP 5.2.11 (cli) (built: Jan 17 2011 01:47:19) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
This version of CentOS took the odd step of having both PHP 5.2 and PHP 5.3 packages. The main packages are 5.2 while another set with modified names are 5.3. For instance, the PHP 5.2 main package is php
while the PHP 5.3 one is php53
.
I still have no idea why they decided to do things this way, but I guess it has to do with some software not supporting 5.3 properly yet.
Since I couldn’t just install the php53
packages as they would conflict with the php
packages, I had to remove all the existing PHP packages and install the new ones. This meant that I had to take stock of exactly what packages I had to remove and replace.
I used the yum
commands list
command to quickly get this information:
[user@server ~]$ yum list installed | grep php | cut -d' ' -f1 php.x86_64 php-cli.x86_64 php-common.x86_64 php-devel.x86_64 php-gd.x86_64 php-mbstring.x86_64 php-mysql.x86_64 php-mcrypt.x86_64 php-pdo.x86_64 php-pear.noarch php-pgsql.x86_64 php-xml.x86_64 php-xmlrpc.x86_64 [user@server ~]$
The | cut -d' ' -f1
part at the end is just some fanciness to show only the package name and not the extra cruft.
Next I checked to make sure that those packages were available for php53
:
[user@server ~]$ yum search php53 | cut -d' ' -f1 | grep php php53.x86_64 php53-bcmath.x86_64 php53-cli.x86_64 php53-common.x86_64 php53-dba.x86_64 php53-devel.x86_64 php53-gd.x86_64 php53-imap.x86_64 php53-intl.x86_64 php53-ldap.x86_64 php53-mbstring.x86_64 php53-mysql.x86_64 php53-odbc.x86_64 php53-pdo.x86_64 php53-pgsql.x86_64 php53-process.x86_64 php53-pspell.x86_64 php53-snmp.x86_64 php53-soap.x86_64 php53-xml.x86_64 php53-xmlrpc.x86_64 [use@server ~]$
I quickly noticed that neither php53-mcrypt.x86_64
nor php53-pear.noarch
were available. I would have to install these manually.
First, I shut down the Apache server as I didn’t want people going to broken pages as I did these updates:
[user@server ~]$ sudo service httpd stop Stopping httpd: [ OK ] [user@server ~]$
Next, I remove the old PHP packages:
[user@server ~]$ sudo yum remove php php-cli php-common php-devel php-gd php-mbstring php-mysql php-mcrypt php-pdo php-pear php-pgsql php-xml php-xmlrpc Loaded plugins: fastestmirror, priorities Setting up Remove Process Resolving Dependencies --> Running transaction check ---> Package php.x86_64 0:5.2.16-jason.1 set to be erased ... Remove 13 Package(s) Reinstall 0 Package(s) Downgrade 0 Package(s) Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test ... Complete! [user@server ~]$
Finally, I installed the available replacement packages:
[user@server ~]$ sudo yum install php53 php53-cli php53-common php53-devel php53-gd php53-mbstring php53-mysql php53-pdo php53-pgsql php53-xml php53-xmlrpc Loaded plugins: fastestmirror, priorities Loading mirror speeds from cached hostfile * base: centos.mirror.lstn.net * epel: fedora-epel.mirror.lstn.net * extras: mirror.ubiquityservers.com * updates: mirror.steadfast.net Setting up Install Process ... Install 2 Package(s) Upgrade 0 Package(s) Total download size: 18.5 M Is this ok [y/N]: y Downloading Packages: ... Complete! [user@server ~]$
Now it’s time to get the other PHP elements that were not available as packages.
Install PHP mcrypt
The php53-mcrypt
package wasn’t available, so we have to install it manually. The following steps will accomplish this.
We first need to install the development package for mcrypt:
[user@server ~]$ sudo yum install php53-devel libmcrypt-devel gcc ...
PHP’s mcrypt extension can be compiled and installed from the source code, so we need to download and unpackage the PHP 5.3.3 source. You can find a download link on the PHP releases page. I used wget
to make the process a bit quicker:
[user@server ~]$ wget http://museum.php.net/php5/php-5.3.3.tar.gz --2011-12-07 14:32:00-- http://museum.php.net/php5/php-5.3.3.tar.gz Resolving museum.php.net... 67.23.255.166 Connecting to museum.php.net|67.23.255.166|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 13921529 (13M) [application/x-gzip] Saving to: 'php-5.3.3.tar.gz' 100%[=================================================>] 13,921,529 2.04M/s in 6.6s 2011-06-24 19:10:40 (2.00 MB/s) - `php-5.3.3.tar.gz' saved [13921529/13921529] [user@server ~]$ tar xf php-5.3.3.tar.gz [user@server ~]$
Now we need to compile and install the mcrypt extension:
[user@server ~]$ cd php-5.3.3/ext/mcrypt/ [user@server mcrypt]$ phpize Configuring for: PHP Api Version: 20090626 Zend Module Api No: 20090626 Zend Extension Api No: 220090626 [user@server mcrypt]$ aclocal [user@server mcrypt]$ ./configure checking for egrep... grep -E checking for a sed that does not truncate output... /bin/sed checking for cc... cc ... checking how to hardcode library paths into programs... immediate configure: creating ./config.status config.status: creating config.h [user@server mcrypt]$ make .... Build complete. Don't forget to run 'make test'. [user@server mcrypt]$ make test Build complete. Don't forget to run 'make test'. ===================================================================== PHP : /usr/bin/php PHP_SAPI : cli PHP_VERSION : 5.3.3 ZEND_VERSION: 2.3.0 ... Do you want to send this report now? [Yns]: y Please enter your email address. (Your address will be mangled so that it will not go out on any mailinglist in plain text): user@example.com Posting to qa.php.net /buildtest-process.php Thank you for helping to make PHP better. [user@server mcrypt]$ sudo make install Installing shared extensions: /usr/lib64/php/modules/ [user@server mcrypt]$
Now all we have to do is set up the mcrypt.ini
file so that the mcrypt extension loads with PHP. This file needs to reside at /etc/php.d/mcrypt.ini
.
[user@server mcrypt]$ echo -e "; Enable mcrypt extension module\nextension=mcrypt.so" | sudo tee /etc/php.d/mcrypt.ini ; Enable mcrypt extension module extension=mcrypt.so [user@server mcrypt]$
Restarting the Apache server will load our new changes. (Thanks to Michael DePetrillo for pointing out that I originally skipped documenting this step.)
[user@server mcrypt]$ sudo service apache2 restart * Restarting web server apache2 ... waiting [ OK ] [user@server mcrypt]$
Install PHP Pear
Finally, I need to install PHP Pear. If you haven’t used it, it is essentially a code repository tool for easily installing, upgrading, and managing hosted code. It is basically PHP’s version of Perl’s CPAN.
Installing this is fairly straightforward.
[user@server ~]$ wget http://pear.php.net/go-pear.phar --2011-06-24 15:18:22-- http://pear.php.net/go-pear.phar Resolving pear.php.net... 78.129.214.25 Connecting to pear.php.net|78.129.214.25|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 3680148 (3.5M) [application/octet-stream] Saving to: `go-pear.phar' 100%[=================================================>] 3,680,148 523K/s in 7.3s 2011-06-24 15:18:29 (491 KB/s) - `go-pear.phar' saved [3680148/3680148] FINISHED --2011-06-24 15:18:29-- Downloaded: 1 files, 3.5M in 7.3s (491 KB/s) [user@server ~]$ sudo php go-pear.phar Below is a suggested file layout for your new PEAR installation. To change individual locations, type the number in front of the directory. Type 'all' to change all of them or simply press Enter to accept these locations. ... Beginning install... PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in phar:///usr/src/go-pear.phar/PEAR/Registry.php on line 1012 PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in phar:///usr/src/go-pear.phar/PEAR/Registry.php on line 1012 PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in phar:///usr/src/go-pear.phar/PEAR/Registry.php on line 1012 PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in phar:///usr/src/go-pear.phar/PEAR/Registry.php on line 1012 Configuration written to /etc/pear.conf... Initialized registry... ... PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer) PEAR: To install optional features use "pear install pear/PEAR#featurename" The 'pear' command is now at your service at /usr/bin/pear [user@server ~]$
Notice that ugly mess about the date()
function. It’s PHP 5.3-specific. I posted how to fix it here.
Final Thoughts
All in all, this was much more complex than I had anticipated. I can understand why the CentOS devs had decided to make a separate set of packages for PHP 5.3, but it really has made things difficult. I do have to warn you that many other packages will start to take issue with this setup as they will have dependency requirements for the php
package which naturally conflicts with the php53
. This leads me to think that they have done this in a way that the repo was not supposed to support as the dependencies should not break in this fashion.
Oh well. Nothing is perfect.
Did I help you?
Thanks a lot, Chris you saved me a weekend of frustration!
I had PHP 5.3 installed but had some problems with mcrypt:
[code]
Errors loading the mcrypt module with CentOS.
php53-common-5.3.3-1.el5_6.1.x86_64 from installed has depsolving problems
–> php53-common conflicts with php-common
[/code]
Full log @ http://pastebin.com/KhV4NVRh
After some research I found out that others also had the same bug where “php53-common conflicts with php-common”, as described in http://e-univ.appspot.com/gadget/centos-56-how-to-resolve-php53-rpm-dependency-conflict-with-phpmcrypt-and-phpcommon/
So it seems this tutorial fixes the issue. I did everything pretty much step by step and it worked really well!
Thanks a lot 馃槈
Chris, thanks so much for this very clear guide to upgrading php on CentOS!
I’ve upgraded our server to CentOS 5.6, checked the php packages that have to be removed (version 5.1.6) and seen that the php53 files are indeed there…
…but now my courage is failing me.
I see you are using WordPress — did you have any difficulties with your WP site(s) after you did the php ugrade?
I run a WP site for my organization and would like to update to WP 3.2. But our CentOS server is running php 5.1.6, and the WP upgrade requires 5.2.4 or higher.
So I really want to follow through on your procedures, but I’m afraid I’ll crash the site.
If I mess up, how would I restore php 5.1.6? (As you can tell, I’m a novice…)
The new packages are not really any different from the regular ones other than the version of PHP that they provide. The reason that there are so many steps is that software version upgrades are not meant to work this way. The distro is supposed to bless specific versions of packages and release those together. Since some of the packages had issues with PHP 5.3, they opted to do this weird work around which is far from ideal. The better solution, IMHO, would have been to work with the developers of the problem packages and get them to upgrade their software so that the conflict did not exist. However, that didn’t happen, so back to reality.
The WordPress sites running on the server I did this on had no issues after the upgrades, so this will not be an issue. Now whether or not you will have some specific packages on your server that may take issue with this upgrade path, I can’t say. If you have issues, you can simply reverse the process by first removing the
php53*
packages and then reinstalling the neededphp*
packages.thanks very much. this is working very well for me.
thank you for making this so easy, i did it in about 20 minutes with beer in hand. cheers!
Hi Chris,
Thanks so much for this article. Saved a fair amount of time.
Take care,
-Nate
Thank you Chris. This was extremely helpful.
Hi Chris
Thanks for the amazingly accurate and well put documentation.
This really helped us.
All the best
Mark
[…] Actualitzat 24/6/2011: si necessites fer servir la versi贸 5.3 de PHP consulta el seg眉ent link: http://chrisjean.com/2011/06/24/upgrade-php-5-1-or-5-2-to-5-3-on-centos/ Com ja ha quedat pal茅s, jo utilitzo sovint la distribuci贸 CentOS. El problema […]
[…] as another blogger聽 / poster mentioned you are missing some major components like mcrypt (hey, if you didnt notice no big issue, […]
Chris,
I have WHM/cPanel server with tons of domains. Everything is working fine until I upgraded the PHP to 5.3. Now my customers complaning as websites showing with ?????(such symblos) but this issue for few domains only. Can you please let me know is there anything I can do to resolve this issue?
Thanks for providing best article.
Sorry, but I don’t think that’s enough information for me to know what is going on. My best guess is that there is some issue with recognizing UTF-8 or Unicode characters. I can’t know what might be the source of this with the information given.
Chris,
Thanks, I was looking for this solution all day, and thought I would have to download RPMs for some shady websites…
This worked perfectly for me on CentOS Linux version 5.6, PHP 5.1.6.
No problems with mysql or wordpress.
thanks alot!
i was going crazy – you helped me
Thanks Chris,
It saved me trouble I was having upgrading to php 5.3; Though I could find php53-mcrypt in my repository, I still had to install pear manually.
Thanks a lot!
This is exactly what I was looking for.
I want to add mcrypt, but arter
aclocal
I have:
configure.in:8: warning: LT_AC_PROG_SED is m4_require’d but is not m4_defun’d
configure.in:8: LT_AC_PROG_SED is required by…
acinclude.m4:2683: PHP_CONFIG_NICE is expanded from…
configure.in:8: the top level
What should I do?
After a bit of digging, it seems to be a problem with the locations of your system’s ltmain.sh and libtool.m4 files. Read this
Had the same problem too, FYI the read this link is broken!
here is the solution that worked for me
Files ltmain.sh & libtool.m4 missing from /usr/share/alocal
Find the files of the server
$ Find / -name ltmain.sh
result: /usr/lib/php/build/ltmain.sh
$ Find / – name libtool.m4
result: /usr/lib/php/build/libtool.m4
Navigate to the alocal
cd /usr/share/alocal
Create symlinks for the found files
ln -s /usr/lib/php/build/ltmain.sh ltmain.sh
ln -s /usr/lib/php/build/libtool.m4 libtool.m4
all done
Resume process with alocal command
Hi guys, I came across the EXACT same issue and Joel M’s solution wasnt working for me, the solution was to install libtool using the command:
$ yum install libtool
then the aclocal command worked for me but then got an error telling I had no compilers so I had to install one:
$yum install gcc
I hope that helps someone
Sorry about that. I fixed the link.
Thanks for this detailed tutorial! Just finished the process and everything seems to be working OK.
Thanks a lot!
Very useful. It worked first try.
Thanks to share.
thx !!! usefull !
Thanks a lot for this Chris; it saves me both time and money (host provider was going to charge me to update PHP).
It’s going fine so far until I got to the wget bit. although it is connected, it is giving a 404 error. However, trying the php -v again, I can see that I have 5.3.3 already which suggests it’s probably gone through. What do you advise? Should I just proceed with the next step?
Regards
The portion starting with the “wget” command first installs the PHP Mcrypt library and then PHP Pear. Neither of these are strictly necessary, but I included them to make the instructions more complete. Of the two, the Mcrypt library is more important. It provides many encryption/decription functions and support for many encryption methods that software your server runs may very well require.
The root problem is that the link to the php-5.3.3.tar.gz file changed. I’ve updated the post to have the current link.
Thanks Chris,
I am yet another one in your list of well wishers. You really saved me a lot of time due to this excellent documentation!
Cheers,
Amit
Hey thanks a lot!!!
You saved me so much time.. Thank you so much.
Thank you very very much Chris Jean, You saved me so much time. Thanks a lot!..
You are awesome. This is the only place I could find that gave a tutorial that didn’t break mid-install!
Glad to help Patrick.
thanks a lot chris, your installation step make us more easier to upgrade it.
btw, currently php version is 5.3.10, how do upgrade it from 5.3.3 to 5.3.10
Do you have suggestion to make more easier ?.
There isn’t anything from official channels to update to the latest release.
I found someone who keeps a repo with the latest PHP release, but this is a very different process from this one and would require you to reverse everything you did in these instructions. I also don’t know how reliable the provided solution is or offer any recommendations regarding it.
Hey, thanks, this saved my day. For anyone interested, I had to also yum install gcc make
Thank you for this tutorial. I’m a PHP programmer being wrongly accused of being a sysadmin; this webpage helped me a lot.
I love that you were “wrongly accused of being a sysadmin.” That cracks me up.
Thanks Chris, the article is very helpfull and is complete to make an update of PHP 5.1 to PHP 5.3.
I came across another problem with the last step: “echo -e “; Enable mcrypt extension module\nextension=mcrypt.so” | \
sudo tee /etc/php.d/mcrypt.ini”
This did not work for me at all, after a search, I came across this link:
http://www.excaliburtech.net/archives/222
Which is another way to install mcrypt for php5.3 on CentOS 5.6:
echo “extension=mcrypt.so” > /etc/php.d/mcrypt.ini
After restarting apache finally solved my problem 馃檪
Aaaaawesome.. I’ve been tryin upgrade my PHP 5.1 to 5.3 and always failed or stuck with some dependecies.. Have tried dozens ways in few weeks.. and NOW it’s solved in few minutes.. Thanks Chris..
Thanks for sharing!
This really help making this upgrade easy. Upgrading to Centos 6 is not an option at this time for me.
Before I could compile and install mcrypt sources I had to;
yum install libtool gcc
Hey all!
This was a great find & thanks! I don’t know your position on unverified repos, but I just wanted to drop by & try to save you some work on the next 5.x metal you’re driving @ http://www.atomicorp.com/wiki/index.php/Getting_Started#Setup_and_Installation .
Caveat: Though I’ve installed 5.3.10 & mcrypt, pecl (conffirmed via installed uploadprogress.so per php.ini), I haven’t installed anything that *directly* uses php. php -v shows PHP 5.3.10 (cli) (built: Feb 3 2012 08:20:28). Currently testing in a 5.8 VM… so… yeah.
Thanks Chris!
For those reading the above comment, the linked instructions add a new repository source. This new source provides updates to software, such as PHP, with updates that are ahead of what the official CentOS repositories supply. This could be a good thing or a bad thing depending on your individual or corporate needs.
Worked great. Thank you very much!
Hi,
This is by far the most comprehensive and user friendly guide for upgrading PHP from 5.1 to 5.3 with CentOS5. Thanks for your effort in putting up this guide and this has made the upgrade process a smooth event for us.
Thanks!
I’m glad that it helped you Hriday.
[…] as another blogger / poster mentioned you are missing some major components like mcrypt (hey, if you didnt notice no big issue, […]
Wow, thanks alot for the info, it worked perfectly.
However, when I run php -v it returns with 5.3.3 but when I run phpinfo from a browser it shows 5.1.6 still.
Any solution to fix this as I am still unable to install Joomla as it thinks I’m running an older version.
Thanks, John
Have you tried restarting your web server after the installation?
DOH!
Thanks. 馃槈
Help!
The websites are failing now as they can’t seem to understand the php path or something.
I read that you need to reset the default php path or something but I’m unclear how to do this.
Please help, thanks.
Without an actual error message, I would just be guessing. Could you give me an error message?
And I cannot connect to my Plesk control panel after the upgrade. Anybody able to help please?
Thanks
Thank you Chris! Everything worked exactly the way you have mentioned. And it worked very smoothly! Thank you for the nice article & clear explanation.
Thank you for the very clear and detailed write-up, very clear, even down the explanation about the timezone settings! Thanks! 馃檪
thank you for your guide / work,
it made a complex task so much easier.
Thank you so very much. You saved me from so much trouble and unnecessary work. In my case only needed to manually add pear. Thanks again.
Hey Chris, I just want to say thanks for your tutorial. It was easy to follow and I had no problems during the process. Everything is working fine. Keep up the good work!
Chris –
Kudos on a clear, easy-to-follow upgrade for PHP. My WordPress installation required that I perform this upgrade and your tutorial made it easy to do so!
Darryl
you`r the best mate 馃榾
[…] http://chrisjean.com/2011/06/24/upgrade-php-5-1-or-5-2-to-5-3-on-centos/ […]
Hi Chris,
I ran into a problem while installing mcrypt extension, you can see the details below.
Up to this point everything was fine. I need this extension beacuse I am trying to install magento.
[root@s15409583 mcrypt]# aclocal
configure.in:8: warning: LT_AC_PROG_SED is m4_require’d but is not m4_defun’d
configure.in:8: LT_AC_PROG_SED is required by…
acinclude.m4:2683: PHP_CONFIG_NICE is expanded from…
configure.in:8: the top level
[root@s15409583 mcrypt]# ./configure
checking for egrep… grep -E
checking for a sed that does not truncate output… /bin/sed
checking for cc… no
checking for gcc… no
configure: error: no acceptable C compiler found in $PATH
See `config.log’ for more details.
It looks like you need to install the
gcc
package:[…] vital when making major changes like this so take one! Here's details on a manual php53 upgrade Upgrade PHP 5.1/5.2 to 5.3 on CentOS :: Chris Jean -Jeremya Reply With Quote + Reply to Thread « Previous […]
Hi
Everything went swimmingly, or so it seemed, but phpinfo() (5.1.3) and php -v (5.3.3) show different php versions now.
Any ideas please?
Thanks
Gareth
Have you tried restarting your web server to ensure that it is loading the new PHP version?