PHP 5.3.6 Upgrade - ClearOS

Instructions below to upgrade PHP to 5.3.6

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

1. SETUP THE REPO


rpm --import ftp://www.timburgess.net/RPM-GPG-KEY-TimB.txt
wget ftp://www.timburgess.net/repo/clearos/5.2/os/timb-release-1-0.noarch.rpm
rpm -Kv timb-release-1-0.noarch.rpm
rpm -Uvh timb-release-1-0.noarch.rpm



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


<HTML>
<BODY>
<?php
phpinfo();
?>
</BODY>
</HTML>



Point your browser at http://mydomain.com/phpinfo.php

Enjoy! :D

Worked Flawlessly

Perfect, quick and painless, thank you!

Hello

I am a linux noob I do not understand how a place is the console for the files to intalled.
And the code to type for me are the Chinese could you help me
Écouter
Lire phonétiquement
Dictionnaire - Afficher le dictionnaire

Update from php ver. 5.1.6 to 5.3.4

I follow your instructions to upgrade the php from ver. 5.1.6 to 5.3.4 but cannot get my Centos 5.2 to show the changes. I doing the upgrade to install egroupware 1.8 but cannot get pass the check point for the php ver. it must be php 5.2+. Any help. The upgrade goes fine to the point of some missing dependencys below for the php extras. I think the basic php version is installed.

--> Finished Dependency Resolution
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: php-common = 5.1.6-27.v5 is needed by package php-ncurses
Error: Missing Dependency: libt1.so.5 is needed by package php-gd
Error: Missing Dependency: libtidy-0.99.so.0 is needed by package php-tidy
Error: Missing Dependency: libenchant.so.1 is needed by package php-enchant

Any help to get the php to reflect the upgrade.

thank you!!! you just saved

thank you!!! you just saved my life :)

Hi everyone, you can find the

Hi everyone, you can find the missing dependancies in the "Extra" folder
For example, php-recode, php-mssql
Libtidy and Libenchant, are also provided. T1lib is required for php-gd.
ftp://starlane.gotdns.oprg/php-5.3.5/extra/

php-api dependency problem

Hi Tim,

I have a clean install of ClearOS 5.2 SP1 with your excellent Zarafa module loaded.
I am trying to run Joomla 1.6 and a few plugins and PHP 5.3x is required.
I seem to have a problem with dependency for php-api.

Anybody else have the same as this is a virgin ClearOS with the latest updates added.

Many Thanks

Stuart

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
php-bcmath i686 5.3.5-1.clearos php-bcmath-5.3.5-1.clearos.i686.rpm 52 k
php-dba i686 5.3.5-1.clearos php-dba-5.3.5-1.clearos.i686.rpm 89 k
php-devel i686 5.3.5-1.clearos php-devel-5.3.5-1.clearos.i686.rpm 3.1 M
php-embedded i686 5.3.5-1.clearos php-embedded-5.3.5-1.clearos.i686.rpm 3.4 M
php-enchant i686 5.3.5-1.clearos php-enchant-5.3.5-1.clearos.i686.rpm 36 k
php-fpm i686 5.3.5-1.clearos php-fpm-5.3.5-1.clearos.i686.rpm 3.3 M
php-gd i686 5.3.5-1.clearos php-gd-5.3.5-1.clearos.i686.rpm 625 k
php-intl i686 5.3.5-1.clearos php-intl-5.3.5-1.clearos.i686.rpm 303 k
php-mcrypt i686 5.3.5-1.clearos php-mcrypt-5.3.5-1.clearos.i686.rpm 71 k
php-mssql i686 5.3.5-1.clearos php-mssql-5.3.5-1.clearos.i686.rpm 107 k
php-odbc i686 5.3.5-1.clearos php-odbc-5.3.5-1.clearos.i686.rpm 156 k
php-pgsql i686 5.3.5-1.clearos php-pgsql-5.3.5-1.clearos.i686.rpm 276 k
php-process i686 5.3.5-1.clearos php-process-5.3.5-1.clearos.i686.rpm 103 k
php-pspell i686 5.3.5-1.clearos php-pspell-5.3.5-1.clearos.i686.rpm 34 k
php-recode i686 5.3.5-1.clearos php-recode-5.3.5-1.clearos.i686.rpm 12 k
php-snmp i686 5.3.5-1.clearos php-snmp-5.3.5-1.clearos.i686.rpm 48 k
php-soap i686 5.3.5-1.clearos php-soap-5.3.5-1.clearos.i686.rpm 652 k
php-sqlite i686 5.3.5-1.clearos php-sqlite-5.3.5-1.clearos.i686.rpm 132 k
php-tidy i686 5.3.5-1.clearos php-tidy-5.3.5-1.clearos.i686.rpm 88 k
php-xml i686 5.3.5-1.clearos php-xml-5.3.5-1.clearos.i686.rpm 529 k
php-xmlrpc i686 5.3.5-1.clearos php-xmlrpc-5.3.5-1.clearos.i686.rpm 151 k
php-zts i686 5.3.5-1.clearos php-zts-5.3.5-1.clearos.i686.rpm 3.7 M
Updating:
php i686 5.3.5-1.clearos php-5.3.5-1.clearos.i686.rpm 3.4 M
php-cli i686 5.3.5-1.clearos php-cli-5.3.5-1.clearos.i686.rpm 6.5 M
php-common i386 5.1.6-27.v5.3 base-updates 153 k
php-common i686 5.3.5-1.clearos php-common-5.3.5-1.clearos.i686.rpm 5.1 M
php-imap i686 5.3.5-1.clearos php-imap-5.3.5-1.clearos.i686.rpm 173 k
php-ldap i686 5.3.5-1.clearos php-ldap-5.3.5-1.clearos.i686.rpm 86 k
php-mbstring i686 5.3.5-1.clearos php-mbstring-5.3.5-1.clearos.i686.rpm 3.9 M
php-mysql i686 5.3.5-1.clearos php-mysql-5.3.5-1.clearos.i686.rpm 348 k
php-pdo i686 5.3.5-1.clearos php-pdo-5.3.5-1.clearos.i686.rpm 217 k
Installing for dependencies:
autoconf noarch 2.59-12 clearcentos-os 647 k
automake noarch 1.9.6-2.3.el5 clearcentos-os 476 k
enchant i386 1:1.4.2-4.el5.1 enchant-1.4.2-4.el5.1.i386.rpm 348 k
freetds i386 0.64-6.el5 freetds-0.64-6.el5.i386.rpm 2.2 M
imake i386 1.0.2-3 clearcentos-os 319 k
libedit i386 2.11-2.20080712cvs.el5 libedit-2.11-2.20080712cvs.el5.i386.rpm 156 k
libicu i386 3.6-5.11.4 clearcentos-os 5.2 M
libtidy i386 0.99.0-14.20070615.el5 libtidy-0.99.0-14.20070615.el5.i386.rpm 328 k
lm_sensors i386 2.10.7-9.el5 clearcentos-os 511 k
m4 i386 1.4.5-3.el5.1 clearcentos-os 133 k
net-snmp i386 1:5.3.2.2-9.el5_5.1 clearcentos-updates 697 k
net-snmp-libs i386 1:5.3.2.2-9.el5_5.1 base-os 1.3 M
postgresql-libs i386 8.1.22-1.el5_5.1 clearcentos-updates 196 k
recode i386 3.6-24.el5 recode-3.6-24.el5.i386.rpm 1.6 M
sqlite2 i386 2.8.17-2.el5.remi sqlite2-2.8.17-2.el5.remi.i386.rpm 327 k
t1lib i386 5.1.1-7.el5 t1lib-5.1.1-7.el5.i386.rpm 442 k
unixODBC i386 2.2.11-7.1 clearcentos-os 832 k

Transaction Summary
=============================================================================
Install 39 Package(s)
Update 9 Package(s)
Remove 0 Package(s)

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!

RE: php-api dependency problem

If I get a clean install of ClearOS 5.2 SP 1
Then it is possible to upgrade to PHP5.3 only problem then is the dependencies for Zarafa are broken.

Sort of a catch 22 its either Zarafa or PHP5.3 but not both Doh!

Stuart

Hi - I don't yet have a

Hi - I don't yet have a compatible version of PHP-MAPI(For Zarafa-webaccess) for PHP-5.3.5. I'm investigating!

New Community Repo

Instructions amended to use new community yum repo

Downgrade PHP 5.3.5 to 5.2.17

Hi .. Tim,

I'm one of Clearos Indonesia Moderator.

I have upgrade my ClearOS version to PHP 5.3.5, but some script and application on my web dont running well, can you tell me how to downgrade my ClearOS version to 5.2.17? This question also ask on ClearOs Indonesia Forum.

Many thanks

Heri

Hi, thanks for the

Hi, thanks for the comment!

to downgrade, first backup /etc/php.ini, then simply remove all PHP packages - and install from the "timb" repo which contains 5.2.17


yum remove php php-common

yum --enablerepo=timb install php php-common

service httpd restart

php -v


You can then compare /etc/php.ini files and restore your config if necessary

working issue

Hi tim,

I have tried this a couple of time and can not get it to work, I have uploaded my terminal data.

[root@intranet php]# rpm --import ftp://www.timburgess.net/RPM-GPG-KEY-TimB.txt
[root@intranet php]# wget ftp://www.timburgess.net/repo/clearos/5.2/os/timb-rele ase-1-0.noarch.rpm
--2011-06-17 13:53:51-- ftp://www.timburgess.net/repo/clearos/5.2/os/timb-relea se-1-0.noarch.rpm
=> `timb-release-1-0.noarch.rpm'
Resolving www.timburgess.net... 80.4.60.49
Connecting to www.timburgess.net|80.4.60.49|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /repo/clearos/5.2/os ... done.
==> SIZE timb-release-1-0.noarch.rpm ... 3989
==> PASV ... done. ==> RETR timb-release-1-0.noarch.rpm ... done.
Length: 3989 (3.9K)

100%[======================================>] 3,989 --.-K/s in 0.08s

2011-06-17 13:53:56 (46.6 KB/s) - `timb-release-1-0.noarch.rpm' saved [3989]

[root@intranet php]# rpm -Kv timb-release-1-0.noarch.rpm
timb-release-1-0.noarch.rpm:
Header V3 DSA signature: OK, key ID bc334fda
Header SHA1 digest: OK (0fa605457268277f985ad2b2fadf6835e1b132a3)
MD5 digest: OK (cbbdf310e711c73d6237dba5b673ca0a)
V3 DSA signature: OK, key ID bc334fda
[root@intranet php]# rpm -Uvh timb-release-1-0.noarch.rpm
Preparing... ########################################### [100%]
package timb-release-1-0.noarch is already installed
[root@intranet php]# yum --enablerepo=timb-testing upgrade php
Loading "kmod" plugin
Loading "protect-packages" plugin

Error getting repository data for timb-testing, repository not found

Hi, sorry to hear of your

Hi, sorry to hear of your problems - can you check that the following file exists? /etc/yum.repos.d/timb.repo
And also provide the output of 'yum --enablerepo=* repolist'

I need GD and MySQLi for Drupal installation ...

Hi Tim:
Good tutorial but I need to install some packages needed by Drupal installation:
- gd
- mysqli
Can you point me in the right direction to install this packages after upgrade my PHP to 5.3.5?

If no exist?

"Hi, sorry to hear of your problems - can you check that the following file exists? /etc/yum.repos.d/timb.repo"
I don't have.
[root@bastosserver ~]# rpm --import ftp://www.timburgess.net/RPM-GPG-KEY-TimB.txt
[root@bastosserver ~]# wget ftp://www.timburgess.net/repo/clearos/5.2/os/timb-release-1-0.noarch.rpm
--2012-02-17 00:04:52-- ftp://www.timburgess.net/repo/clearos/5.2/os/timb-release-1-0.noarch.rpm
=> `timb-release-1-0.noarch.rpm.5'
Rezolvare www.timburgess.net... 80.4.60.49
Connecting to www.timburgess.net|80.4.60.49|:21... conectat.
Login ca anonymous ... Admis!
==> SYST ... terminat.==> PWD ... terminat.
==> TYPE I ... finalizat.==> CWD /repo/clearos/5.2/os ... terminat.
==> SIZE timb-release-1-0.noarch.rpm ... 3989
==> PASV ... terminat.==> RETR timb-release-1-0.noarch.rpm ... terminat.
Dimensiune: 3989 (3,9K)

100%[======================================>] 3.989 --.-K/s in 0,02s

2012-02-17 00:04:55 (227 KB/s) - `timb-release-1-0.noarch.rpm.5' saved [3989]

[root@bastosserver ~]# rpm -Kv timb-release-1-0.noarch.rpm
timb-release-1-0.noarch.rpm:
Header V3 DSA signature: OK, key ID bc334fda
Header SHA1 digest: OK (0fa605457268277f985ad2b2fadf6835e1b132a3)
MD5 digest: OK (cbbdf310e711c73d6237dba5b673ca0a)
V3 DSA signature: OK, key ID bc334fda
[root@bastosserver ~]# rpm -Uvh timb-release-1-0.noarch.rpm
Preparing... ########################################### [100%]
package timb-release-1-0.noarch is already installed
[root@bastosserver ~]# yum --enablerepo=timb-testing upgrade php
Loading "protect-packages" plugin
Loading "kmod" plugin

Error getting repository data for timb-testing, repository not found

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is used to make sure you are a human visitor and to prevent spam submissions.
Image CAPTCHA
Enter the characters shown in the image.

User login

Navigation

Poll

What wireless chipset do you use in Linux?: