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

ClearFoundation

Forums
Welcome, Guest
PHP-5.3.5 Upgrade RPM's
(1 viewing) 1 Guest
Go to bottomPage: 12345
TOPIC: PHP-5.3.5 Upgrade RPM's
*
#11888
PHP-5.3.5 Upgrade RPM's 3 Years ago  
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 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
uk2.php.net/migration53

1. GET THE FILES

Setup the community repo per instructions HERE

2. INSTALL

Code:

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
Code:

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


Point your browser at mydomain.com/phpinfo.php

Enjoy!
Tim Burgess
Moderator
Posts: 5833
graph
User Online Now Click here to see the profile of this user
Last Edit: 2011/03/09 11:15 By timb80.
The administrator has disabled public write access.
 
#11889
Re: PHP-5.3.2 Upgrade RPM's 3 Years ago  
Update - files are uploaded now

I've tested the installation on a clean VM and it works fine, although i've not tried a full blown website
Tim Burgess
Moderator
Posts: 5833
graph
User Online Now Click here to see the profile of this user
Last Edit: 2010/05/29 09:46 By timb80.
The administrator has disabled public write access.
 
#11950
Re:PHP-5.3.2 Upgrade RPM's 3 Years ago  
I just wanted t say thanks. I wish they would update the default to at lest 5.2 but I like 5.3 and find it stable enough already.
Alexander Smith
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#13370
Re:PHP-5.3.2 Upgrade RPM's 2 Years, 11 Months ago  
Im getting this error

Error: Missing Dependency: php-common = 5.2.9-2 is needed by package php-ncurses
Alton Hoang
Expert Boarder
Posts: 139
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#13387
Re:PHP-5.3.2 Upgrade RPM's 2 Years, 11 Months ago  
Hi Alton - it appears that the mhash and ncurses extensions have been removed from PHP 5.3 (versus older releases)

run the following before upgrading (assuming you don't use them)
Code:

yum remove php-ncurses php-mhash

Tim Burgess
Moderator
Posts: 5833
graph
User Online Now Click here to see the profile of this user
The administrator has disabled public write access.
 
#13405
Re:PHP-5.3.2 Upgrade RPM's 2 Years, 11 Months ago  
Thanks Tim,

That did the job. Interesting though. This was on a complete rebuild of clearos 5.2 as where when i had 5.1 installed the 5.3.2 full upgrade worked with no issues until now. But that did the job.

Thanks
Alton Hoang
Expert Boarder
Posts: 139
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#14588
Re:PHP-5.3.2 Upgrade RPM's 2 Years, 11 Months ago  
I did an upgrade from 5.2.9, and I thought everything worked. Sadly I did not test out thoroughly enough. I opened up rather too quickly the different installed web sites and applications and they all seemed fine.

However, I now find something very odd. I can log into Roundcube and Group Office 3.52. I can go to the Inbox, and it will list the directories. However I then get error messages telling me "Invalid username or password". I went to check, and double check the password works. Yes, it works perfectly accessing through Thunderbird directly to the server.

What is very annoying is that if I restart Apache, log in to GroupOffice or Roundcube it will load the mail. However, the minute I go to another folder or open another message the errors start up again with the "invalid username or password" crap.

How could I drop back to 5.2.9 safely? Would going back even be worth it?
sbn
Senior Boarder
Posts: 49
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#14592
Re:PHP-5.3.2 Upgrade RPM's 2 Years, 11 Months ago  
Hi - are there any clues in /var/log/httpd/error_log?

Not all sites are 5.3 comptaible...as of 5.3 they introduced changes that are not backwards compatible with older php versions. Do roundcube and group office state they are compataible with 5.3?

You can indeed roll back to 5.2.9 realtively safely although you may have to reinstall horde if you use it, you can simply remove PHP, then reinstall the old version. See what dependancies this throws up:-
Code:

yum remove php-common

Tim Burgess
Moderator
Posts: 5833
graph
User Online Now Click here to see the profile of this user
The administrator has disabled public write access.
 
#14594
Re:PHP-5.3.2 Upgrade RPM's 2 Years, 11 Months ago  
Tim Burgess wrote:
Hi - are there any clues in /var/log/httpd/error_log?

Not all sites are 5.3 comptaible...as of 5.3 they introduced changes that are not backwards compatible with older php versions. Do roundcube and group office state they are compataible with 5.3?

You can indeed roll back to 5.2.9 realtively safely although you may have to reinstall horde if you use it, you can simply remove PHP, then reinstall the old version. See what dependancies this throws up:-
Code:

yum remove php-common



I had a suspicion that something went wrong with how passwords were being read from mysql. I just now created a new GroupOffice account and logged in. Then setup the mail access and had no issues. As of course this new account created new entries into mysql, then I would assume this is an issue with how Groupoffice is reading the mysql database via php.

The annoying thing, and I mean really annoying was that I got no error messages in the logs. The only thing I got was in Groupoffice, and looking up that specific error message at their forum only indicated an issue when using IMAP or LDAP for authentication to the site. I think the problem is solved for me now. I have a suspicion that if I go to the mail server and do a new password, I will be able to log into my old GroupOffice account.
sbn
Senior Boarder
Posts: 49
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#14664
Re:PHP-5.3.2 Upgrade RPM's 2 Years, 11 Months ago  
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
Cevin
Expert Boarder
Posts: 104
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12345
  get the latest posts directly to your desktop