EDIT:Amended for new repo and 5.3.5
Instructions below to upgrade PHP to 5.3.5
Please note these are not the official packages, and have been put together by http://rpms.famillecollet.com/ for RHEL5 distributions (thank you!). I have rebuilt these so they install for ClearOS with the addition of two RPM's (libedit and sqlite2).
Thefore please consider these as beta / testing quality.
WARNING: 5.3.x is not entirely backwards compatible with older versions of PHP. Therefore if your application / website / scripts do not specify compatibility then it may break!
If you are a website developer then you may want to review the changes between 5.2 and 5.3 here
http://uk2.php.net/migration53
1. GET THE FILES
Setup the community repo per instructions HERE
2. INSTALL
3. PHP VERSION INFO
Create a file called phpinfo.php in /var/www/html that looks like the following
Point your browser at http://mydomain.com/phpinfo.php
Enjoy!
Instructions below to upgrade PHP to 5.3.5
Please note these are not the official packages, and have been put together by http://rpms.famillecollet.com/ for RHEL5 distributions (thank you!). I have rebuilt these so they install for ClearOS with the addition of two RPM's (libedit and sqlite2).
Thefore please consider these as beta / testing quality.
WARNING: 5.3.x is not entirely backwards compatible with older versions of PHP. Therefore if your application / website / scripts do not specify compatibility then it may break!
If you are a website developer then you may want to review the changes between 5.2 and 5.3 here
http://uk2.php.net/migration53
1. GET THE FILES
Setup the community repo per instructions HERE
2. INSTALL
yum --enablrepo=timb-testing upgrade php
service httpd restart
php -v
3. PHP VERSION INFO
Create a file called phpinfo.php in /var/www/html that looks like the following
<HTML>
<BODY>
<?php
phpinfo();
?>
</BODY>
</HTML>
Point your browser at http://mydomain.com/phpinfo.php
Enjoy!

Share this post:
Responses (48)
-
Accepted Answer
-
Accepted Answer
your a life saver my man!
i need 2 extensions to play with drupal on my server though,
Drupal requires you to enable the PHP extensions in the following list
dom
gd
i kept tring to get the gd extension off your rpm but it wouldn't let me try to download the 5.3 version :'(
think you can help me out? -
Accepted Answer
Hi Robert, that's normal - those RPM's are for the webconfig (which runs it's own apache service) and PHP version 5.2.10
If you have an existing /etc/php.ini it will not overwrite it (the new config would be saved at /etc/php.rpmnew) to protect user configuration.
If you have no existing config you will get a new php.ini (which is the case if you have removed PHP altogether) -
Accepted Answer
-
Accepted Answer
Hi Robert, PHP 5.3.x is not 100% compatible with 5.2.x or earlier so unless your CMS/blog/website specifically requires it you should stay at 5.2
If you run 'php -v' from the command line, use phpinfo() or 'rpm -qa | grep php-' you can list all the PHP packages and cehck the versions...
Just remember to backup /etc/php.ini if you remove PHP, to downgrade
yum remove php-*
yum --enablrepo=timb install app-php php php-common -
Accepted Answer
well not so fast sonny.....
upgrading may have cause unintended consequences with joomla 1.6
how would I go back to php 5.2.17? yum remove php & yum remove php-tidy?
update: I think I've rolled back everything to 5.2.17 and the joomla1.6 site is no longer broken. Is there a way to check that everythings the correct php version and that I didn't miss anything? thanks
Robert -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
Updated installation instructions on the first page so that it uses the new repo and simplifies installation -
Accepted Answer
Cheers Tim,
I am trying out the new version of Joomla and a few components that require PHP 5.3 so for me it would be a god send.
I am thinking I might use the Howto and run a VMserver on ClearOS and use that to host some of these problems.
I am totally hooked on the Zarafa module there is no comparison with the Hoarde module.
Stuart -
Accepted Answer
Hi Stuart, Zarafa uses a PHP-MAPI extension which has to be built for the version you are running. By default this is PHP-5.1.6 as found in ClearOS5.2. Therefore to upgrade PHP you need update to a compatible version of PHP-MAPI to use with Zarafa-Webaccess.
At present there are alternative versions for 5.2.9 and 5.2.17 as outlined in the Zarafa thread on the first page. As you've requested it i'll setup a VM and run a build for 5.3.5. ClearOS6 will be using PHP-5.3.x so will remove the need for maintaing several versions of the PHP-MAPI RPM
Note that PHP 5.3 is not 100% backwards compatible with 5.2 so unless you require it for a specific application, I would stick with the latest 5.2.x variant -
Accepted Answer
-
Accepted Answer
Hi Tim,
Total download size: 52 M
Is this ok [y/N]: y
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
ERROR with rpm_check_debug vs depsolve:
Package php-mapi needs php-api = 20041225, this is not available.
Complete!
I have a clean install of ClearOS with Zarafa installed.
Anybody else get the dependancy probs?
Stuart -
Accepted Answer
-
Accepted Answer
Tim Burgess wrote:
UPDATE: PHP 5.3.5 now available
http://download.clearfoundation.com/community/timb80/php-5.3.5/
Thanks for updating.
But I wonder if you can provide php-pecl-apc?
Edit: nvm, I got remi's php-pecl-apc installed. -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
Thanks Tim for the above information.
Using your help iv been able to upgrade to PHP 5.2.16 (i think it was, server down due to my meddling).
And install the needed Zarafa rpm's.
Now all I need to is find the right config file as to where my mail gets sent as I have checked the requested log and it does look to be sending it to postfix.
Thanks as all ways -
Accepted Answer
What's you current version of PHP? (you can check by running 'php -v').
First try and restart the webserver... 'service httpd restart'.
If that doesn't work you'll need to install the associated version of php-mapi for your PHP version. The default one in the repo is for 5.1.6, there are others available for 5.2.9, 5.2.14 and 5.2.16.
Mail was probably diverting back to your normal ClearOS account. You can check by running 'grep relay /var/log/maillog' and reviewing the last few lines. -
Accepted Answer
Thanks for the heads up Tim.
My Zarafa webmail seemingly randonly stoped reciving mail just before the end of December. As far as I could tell the mail must still be getting recived as there are no bounce backs. So not being one to find or understand log files :whistle: I insted opted for updating my Zarafa installation.
The install whent ok (or so I thought) untill I tryed to login to webaccess. All I get is this error
Not Found: PHP mapi extension not found
If you have upgraded zarafa, please restart Apache
Zarafa WebAccess can't start because of incompatible configuration.
Please correct above errors, a good start is by checking your '/etc/php.ini' file.
Or if you wish, you can disable this config check by editing the file '/usr/share/zarafa-webaccess/config.php', but this is not recommend.
In my semi logical way I thought that updating my PHP might help. Do you think installing PHP 5.2.9
insted will get me going again?
Thanks as all ways
P.S If this is going off topic or better suted to a different thred such as this one let me know. -
Accepted Answer
-
Accepted Answer
Hello all
Iget this when i try to install
--> Running transaction check
--> Processing Dependency: php-api = 20041225 for package: php-mapi
---> Package libicu.i386 0:3.6-5.11.4 set to be updated
--> Finished Dependency Resolution
Error: Missing Dependency: php-api = 20041225 is needed by package php-mapi
Where might i find this package :S -
Accepted Answer
Hi Laurence, sorry had a bit of a reshuffle - you can find enchant, libtidy, libedit, recode, freetds, libt1 all here:-
ftp://download.clearfoundation.com/community/timb80/php-5.3.4/extra/
ftp://download.clearfoundation.com/community/timb80/php-5.3.4/ -
Accepted Answer
Hmm tried the latest version you posted and I get the following dependency issues:
Error: Missing Dependency: libenchant.so.1 is needed by package php-enchant
Error: Missing Dependency: libtidy-0.99.so.0 is needed by package php-tidy
Error: Missing Dependency: librecode.so.0 is needed by package php-recode
Error: Missing Dependency: libsybdb.so.5 is needed by package php-mssql
Error: Missing Dependency: libt1.so.5 is needed by package php-gd
Any help? Search with yum but it's giving me no results -
Accepted Answer
UPDATE: 5.3.4 now available too
ftp://download.clearfoundation.com/community/timb80/php-5.3.4/
I'll be removing 5.3.2 in due course -
Accepted Answer
I just upgraded to version 5.3.2 So I thought I would post my experience/How-to here.
I initially posted it in the wrong thread, so I apologize for the duplication.
Here goes.....
I ftp browsed to the ftp site:
ftp://download.clearfoundation.com/community/timb80/php-5.3.2/
did these commands:
wget ftp://download.clearfoundation.com/community/timb80/php-5.3.2/*.rpm
ran the install and got this.
Error: Missing Dependency: libsqlite.so.0 is needed by package php-pdo
Error: Missing Dependency: libedit.so.0 is needed by package php-cli
then realized that these dependancies were in the 5.3.2 directory mentioned above and that I had already downloaded them with the *.rpm.. so I then ran these in this order.
yum --nogpgcheck install libedit-*
yum --nogpgcheck install sqlite2-*
yum --nogpgcheck install php-*
service httpd restart
everything works fine now.
REASON FOR UP GRADE:
I had to upgrade the PHP to version 5.3.x in order to run Collabtive.
http://www.collabtive.o-dyn.de/
Its a neat task/project management program.
works well so far too.. simple to install.. you just have to have the latest PHP for it to work or you
get an error when accessing the admin page ( Fatal Error. Class DateTimeZone could not be located.)
All you have to do is download collabtive and follow the install text in the package.
Anyway, I hope this helps someone. Just trying to share :-)
George -
Accepted Answer
ClearNovice wrote:
Hi Tim,
Long time
I have been away on business, I came back upgraded to Clear OS 5.2 and its working fine. I am trying to upgrade to PHP 5.3 and I cant get past this
Connecting to download.clearfoundation.com|64.34.186.224|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /community/timb80/php-5.3.2 ... done.
==> PASV ... done. ==> LIST ...
Just fixed the issue with slow FTP, I downloaded the files manually from the ftp mirror and uploaded to my ClearBox. The upgrade works fine. :woohoo: -
Accepted Answer
Hi Tim,
Long time
I have been away on business, I came back upgraded to Clear OS 5.2 and its working fine. I am trying to upgrade to PHP 5.3 and I cant get past this
Connecting to download.clearfoundation.com|64.34.186.224|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /community/timb80/php-5.3.2 ... done.
==> PASV ... done. ==> LIST ...
-
Accepted Answer
joutch, well that hurted and destroyed the killboard update function that i run (yes only for games, not a real one) so i rolled back to 5.2.13 and that worked fine. I got the same error as above and was missing a packet that i couldnt find. (same ones as last time that are neaded for a lot of boards, ehm how are they called againMCcrypt and the other one was ehm... php devil i think.
Pitty though but 5.2.13 works fine for me too

Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »