1. Store
  2. Apps
  3. Hardware
  4. Support
  5. Solutions

ClearFoundation

Forums
Welcome, Guest
upgrading to PHP 5.3.3 on ClearOS 5.2
(1 viewing) 1 Guest
Go to bottomPage: 12
TOPIC: upgrading to PHP 5.3.3 on ClearOS 5.2
#18743
upgrading to PHP 5.3.3 on ClearOS 5.2 3 Years, 10 Months ago  
Just saw the 5.3.2 stuff, but not until after I had already upgraded my way... quick and dirty.

Wanted to play with Kohana, but the "Enviroment Test" page came up somewhat "lacking"

Alrighty...let's fix this thing.

Code:


yum remove php-ldap #to squash later dependency issues

#add EPEL and Remi repos to YUM
wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm

yum --enablerepo=remi update mysql php #to resolve mysql dependencies

service httpd restart



Upgrade to 5.3.3. accomplished !

EDIT 10 May 2011 Tim seems to be keeping up with PHP, so consider this post obsolete. New instructions --> here <-- to upgrade.
W.Welch
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2011/05/10 11:42 By whw3.Reason: obsolete
The administrator has disabled public write access.
Want to be a command-line ninja? Read the Linux Newbie Administrator Guide.
 
#18778
Re: upgrading to PHP 5.3.3 on ClearOS 5.2 3 Years, 10 Months ago  
Nice! thanks

I remember you from the CC forums
Tim Burgess
Moderator
Posts: 6601
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#19486
Re:upgrading to PHP 5.3.3 on ClearOS 5.2 3 Years, 10 Months ago  
W.Welch wrote:
Just saw the 5.3.2 stuff, but not until after I had already upgraded my way... quick and dirty.

Wanted to play with Kohana, but the "Enviroment Test" page came up somewhat "lacking"

Alrighty...let's fix this thing.

Code:


yum remove php-ldap #to squash later dependency issues

#add EPEL and Remi repos to YUM
wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm

yum --enablerepo=remi update mysql php #to resolve mysql dependencies

service httpd restart



Upgrade to 5.3.3. accomplished !



Hi, thanks for the info.

I did this and it seemed to work ok but oddly Ive now lost access to the ClearOS webconfig. Everything else seems to continue to function ok.

Edit .....

Bah, nevermind, just one particular PC playing silly buggers Works fine.
Duncan
Gold Boarder
Posts: 206
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/10/24 12:09 By Mindriot.
The administrator has disabled public write access.
 
#24033
Re:upgrading to PHP 5.3.3 on ClearOS 5.2 3 Years, 6 Months ago  
I followed the above and it updated to PHP 5.3.5.

PHPMyAdmin now comes up with two warnings:

The additional features for working with linked tables have been deactivated.
Your PHP MySQL library version 5.0.77 differs from your MySQL server version 5.1.54. This may cause unpredictable behavior.

and I get some garbage at the top of my website.

Can anyone help?
Brian
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#24036
Re:upgrading to PHP 5.3.3 on ClearOS 5.2 3 Years, 6 Months ago  
The PHP version used by the webconfig is seperate from the version used in the web server,so you can ignore the phpmyadmin warning

To help with the web server PHP issues, can you look at the logs? /var/log/httpd/access_log or /var/log/httpd/error_log

Can you also run 'php -v' and post the output?
Tim Burgess
Moderator
Posts: 6601
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#24340
Re:upgrading to PHP 5.3.3 on ClearOS 5.2 3 Years, 6 Months ago  
In case that you need php-ldap extension back to your system, you will need to compile it from the source by follow these steps:

1. Install required packages
Code:


yum install gcc
yum --enablerepo=remi install php-devel



load the PHP source code from php.net site. It might be important to load the corresponding source version.
then extract it to the /usr/src/php. For example, the PHP 5.3.5 source code should be under /usr/src/php/php-5.3.5, and so. Then change directory to the ldap extension source code, it is under /usr/src/php/php-5.3.5/ext/ldap

2. Compile the extension
Code:


phpize
./configure --enable-ldap
make



3. Install the extension
Code:


cp modules/ldap.so /usr/lib/php/modules



And then add following content into /etc/php.d/ldap.ini
Code:


; Enable ldap extension module
extension=ldap.so



4. restart httpd
Chawalit Limsowan
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#27548
Re:upgrading to PHP 5.3.3 on ClearOS 5.2 3 Years, 4 Months ago  
I need some help with this procedure. I'm not finish yet, but have a missing/old location which makes the installation fail

[root@clarkconnect ~]# yum remove php-ldap
Loading "protect-packages" plugin
Loading "kmod" plugin
Setting up Remove Process
base-kernels | 951 B 00:00
atrpms | 3.0 kB 00:00
6c39c5bf1237bf3a5964380c1634d8288f5df1f8-primary.sqlite.bz2 | 1.1 MB 00:02
base-updates | 951 B 00:00
clearcentos-os | 951 B 00:00
base-supplements | 951 B 00:00
base-os | 1.1 kB 00:00
clearcentos-updates | 951 B 00:00
base-console | 951 B 00:00
Excluding Packages from EL $releasever - $basearch - ATrpms
Finished
Reducing EL $releasever - $basearch - ATrpms to included packages only
Finished
Resolving Dependencies
--> Running transaction check
---> Package php-ldap.i386 0:5.2.9-2 set to be erased
--> Processing Dependency: php-ldap >= 5.1.6 for package: app-php
--> Running transaction check
---> Package app-php.i386 0:5.2-10 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Removing:
php-ldap i386 5.2.9-2 installed 41 k
Removing for dependencies:
app-php i386 5.2-10 installed 0.0

Transaction Summary
=============================================================================
Install 0 Package(s)
Update 0 Package(s)
Remove 2 Package(s)

Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : app-php ######################### [1/2]
Erasing : php-ldap ######################### [2/2]

Removed: php-ldap.i386 0:5.2.9-2
Dependency Removed: app-php.i386 0:5.2-10
Complete!
[root@clarkconnect ~]# wget download.fedora.redhat.com/pub/epel/5/i3...lease-5-4.noarch.rpm
--2011-05-02 21:23:01-- download.fedora.redhat.com/pub/epel/5/i3...lease-5-4.noarch.rpm
Resolving download.fedora.redhat.com... 209.132.181.24, 209.132.181.25, 209.132.181.26, ...
Connecting to download.fedora.redhat.com|209.132.181.24|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12232 (12K) [application/x-rpm]
Saving to: `epel-release-5-4.noarch.rpm'

100%[=====================================================================================>] 12,232 29.9K/s in 0.4s

2011-05-02 21:23:02 (29.9 KB/s) - `epel-release-5-4.noarch.rpm' saved [12232/12232]

[root@clarkconnect ~]# wget rpms.famillecollet.com/enterprise/remi-release-5.rpm
--2011-05-02 21:23:14-- rpms.famillecollet.com/enterprise/remi-release-5.rpm
Resolving rpms.famillecollet.com... 88.191.74.232, 2a01:e0b:1:74:2e0:f4ff:fe1b:b827
Connecting to rpms.famillecollet.com|88.191.74.232|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4974 (4.9K) [application/x-rpm]
Saving to: `remi-release-5.rpm'

100%[=====================================================================================>] 4,974 --.-K/s in 0.03s

2011-05-02 21:23:14 (143 KB/s) - `remi-release-5.rpm' saved [4974/4974]

[root@clarkconnect ~]# rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm
warning: remi-release-5.rpm: Header V3 DSA signature: NOKEY, key ID 00f97f56
warning: epel-release-5-4.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 217521f6
Preparing... ########################################### [100%]
1:epel-release ########################################### [ 50%]
2:remi-release ########################################### [100%]
[root@clarkconnect ~]# yum --enablerepo=remi update mysql php #to resolve mysql dependencies
Loading "protect-packages" plugin
Loading "kmod" plugin
epel | 3.7 kB 00:00
b8d15187a965c06dc0089aede25d5795a669ca4f-primary.sqlite.bz2 | 3.0 MB 00:13
Could not retrieve mirrorlist rpms.famillecollet.com/enterprise/$releasever/remi/mirror error was
[Errno 14] HTTP Error 404: Not Found
Error: Cannot retrieve repository metadata (repomd.xml) for repository: remi. Please verify its path and try again
[root@clarkconnect ~]#


Any ideas ?
stassen
Expert Boarder
Posts: 128
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#27551
Re:upgrading to PHP 5.3.3 on ClearOS 5.2 3 Years, 4 Months ago  
5.3.6 is available as per instructions here - might help?
Tim Burgess
Moderator
Posts: 6601
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#27895
Re:upgrading to PHP 5.3.3 on ClearOS 5.2 3 Years, 3 Months ago  
Hey Tim,

This is off-topic, but it is MY post so....

Have you consider building the suhosin extention?

Thanks.
W.Welch
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
Want to be a command-line ninja? Read the Linux Newbie Administrator Guide.
 
#27917
Re:upgrading to PHP 5.3.3 on ClearOS 5.2 3 Years, 3 Months ago  
Hi, i've not heard of it! looks interesting and straight forward enough to implement. Do you use it?
Tim Burgess
Moderator
Posts: 6601
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12
  get the latest posts directly to your desktop