HughesJR.com
Home Forum Help Search Login Register Welcome, Guest. Please login or register.
Did you miss your activation email?
January 09, 2009, 07:14:32 PM
News:

+  HughesJR.com Forums
|-+  Guides
| |-+  Minimal CentOS, Scientific Linux, or White Box Enterprise Linux (WBEL) install
| | |-+  centos 4.5 php 5.2.2
« previous next »
Pages: [1] Print
Author Topic: centos 4.5 php 5.2.2  (Read 1017 times)
cape
Newbie
*

Karma: +0/-0
Posts: 2


View Profile
« on: June 18, 2007, 04:32:24 PM »

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
Logged
hughesjr
Administrator
Newbie
*****

Karma: +0/-0
Posts: 4


View Profile Email
« Reply #1 on: June 19, 2007, 11:20:10 PM »

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.

Quote
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.
Logged
cape
Newbie
*

Karma: +0/-0
Posts: 2


View Profile
« Reply #2 on: June 20, 2007, 09:38:02 AM »

i did try rpm according to this instructions https://support.steadfast.net/index.php?_m=knowledgebase&_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 Huh
« Last Edit: June 20, 2007, 09:41:07 AM by cape » Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!