Developers Documentation

×

Warning

301 error for file:https://clearos.com/dokuwiki2/lib/exe/css.php?t=dokuwiki&tseed=82873f9c9a1f5784b951644363f20ef8

User Tools

Site Tools


Upgrading to PHP 5.3.5

5.3.5 is not fully backwards compatible with 5.2.x so ensure that you don't need any options from 5.2.x before upgrade.

Instructions below to upgrade PHP to 5.3.5

Please note these are not the official packages, and have been put together by 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

In order to apply this upgrade, you will need to add Tim's Repo to your system.

http://www.clearfoundation.com/docs/howtos/adding_tim_s_repo

Options

You can also install many other PHP features through YUM.

YUM install php-*

YUM list php-* for all the available app you can add.

Download & Install

GET THE FILES

I will assume you already have installed the repo (As above)

2. INSTALL
yum --enablerepo=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



<?php
phpinfo();
?>

Point your browser at example.org/phpinfo.php

Enjoy!

Removal

Yum remove php-(Enter module to remove)

Forum Page

content/en_us/kb_howtos_upgrading_to_5.3.5.txt · Last modified: 2014/12/23 17:40 by dloper