Wednesday, 27 August 2008
HughesJR.com
 
Powered by CentOS
 
Main Menu
Home
Forum
Articles
Guides
News Feeds
Links
Search
Contact Us
Login Form





Lost Password?
No account yet? Register
Latest News
Popular
DS-Syndicate
feed image
FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottom Post Reply Favoured: 0
TOPIC: centos 4.5 php 5.2.2
#18
cape (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
centos 4.5 php 5.2.2 1 Year, 2 Months ago Karma: 0  
Hi folks,

Anybody could give me step by step info how to upgrade my existing php 5.1.6 to 5.2.2

or how to compile existing php

--with-pcre-regex
rather than
'--with-pcre-regex=/usr' '--with-zlib'

thx
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#19
hughesjr (Admin)
Admin
Posts: 5
graph
User Online Now Click here to see the profile of this user
Re: centos 4.5 php 5.2.2 1 Year, 2 Months ago Karma: 0  
First, I would explain that the php in centosplus for CentOS 4 is version 5.1.6 because it is the Source Code from the Red Hat Web Application Stack.

That code is a stable and new version that releases updates and it pretty much cutting edge for "Enterprise Users".

That being said, the easiest way to get php 5.2.2 would be to rebuild the Fedora 7 SRPM on CentOS-4.5.

(there is also currently a version 5.2.3 of php in the Fedora Development branch)

You can find a close fedora mirror here:

http://mirrors.fedoraproject.org/publiclist/Fedora/7/

I tried to compile the fc7 code and it did not compile on CentOS-4.5 ... there are many things that are too old (PCRE, and it would not even start compiling without using CC=gcc4).

You could figure out how to work around these problems.

or how to compile existing php
--with-pcre-regex
rather than
'--with-pcre-regex=/usr' '--with-zlib'


That might be easier to do ... just download the latest centos SRPM from here:

http://mirror.centos.org/centos/4/centosplus/SRPMS/

Install the SRPM and edit the spec file in your SPECS directory ... and change the configure requirements to what you want then to be and rebuild the SRPM.

Regardless of how you build it, you then become responsible for getting the SRPM and rebuilding it whenever there are updates.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#20
cape (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re: centos 4.5 php 5.2.2 1 Year, 2 Months ago Karma: 0  
i did try rpm according to this instructions https://support.steadfast.net/index.php?_m=knowledge_base_&_a=viewarticle&kbarticleid=45&nav=0,9

i forgot to mention i am on vps self managed hosting i have interworx as cp

i think it went ok

Wrote: /usr/src/redhat/RPMS/i386/php-ncurses-5.2.0-100.rhe4x.iworx.i386.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.61010
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd php-5.2.0
+ '[' -n /var/tmp/php-5.2.0-root -a /var/tmp/php-5.2.0-root '!=' / ']'
+ rm -rf /var/tmp/php-5.2.0-root
+ '[' -d /usr/src/redhat/BUILD/php-5.2.0 ']'
+ rm -rf /usr/src/redhat/BUILD/php-5.2.0
+ exit 0
Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.19120
+ umask 022
+ cd /usr/src/redhat/BUILD
+ rm -rf php-5.2.0
+ exit 0

[root@####### ~]#



Ok got to;

stuck on step 5 https://support.steadfast.net/index....eid=45&nav=0,9

rpm -Uhv --nodeps --force /usr/src/redhat/RPMS/`uname -i`/php 5.2.0-100
error: open of /usr/src/redhat/RPMS/i386/php failed: No such file or directory
error: open of 5.2.0-100 failed: No such file or directory

i did try to skip this step and restart
service mysqld restart
service imap4 restart
service imap4-ssl restart
service pop3 restart
service pop3-ssl restart
service httpd restart
service iworx restart

checking ver of my php still shows me 5.1.6 ???
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

© 2008 HughesJR.com
Powered by CentOS