PHP 5.2
PHP 5.2
Greetings,
I just moved my Drupal sites over to a new server running CentOS 5.x/Redhat 5.x. Unfortunately, a number of my most important modules (RDF for semantic web etc) do not work because they require php 5.2 or newer. I have done some reading on this forum and see that 5.2 is not support yet by CentOS 5. Therefore, I have two questions:
1. What type of a timeframe am I looking at till 5.2 is supported? Are we talking weeks, months or years?
2. In the event I simply have no choice and must use a 3rd party package to upgrade my php, which one do you recommend and what kind of risks will i be taking by doing so? Will that destroy the integrity of my OS?
It looks like I'm in a tight spot and that is I don't want to mess with my OS that I simply have to stop all development work on my semantic web projects and wait around till php 5.2 is supported :o(
Many thanks,
Kevin
I just moved my Drupal sites over to a new server running CentOS 5.x/Redhat 5.x. Unfortunately, a number of my most important modules (RDF for semantic web etc) do not work because they require php 5.2 or newer. I have done some reading on this forum and see that 5.2 is not support yet by CentOS 5. Therefore, I have two questions:
1. What type of a timeframe am I looking at till 5.2 is supported? Are we talking weeks, months or years?
2. In the event I simply have no choice and must use a 3rd party package to upgrade my php, which one do you recommend and what kind of risks will i be taking by doing so? Will that destroy the integrity of my OS?
It looks like I'm in a tight spot and that is I don't want to mess with my OS that I simply have to stop all development work on my semantic web projects and wait around till php 5.2 is supported :o(
Many thanks,
Kevin
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
PHP 5.2
A forum search reveals that many people are quite happy with php 5.2 on CentOS from c5-testing or remi repos:
https://www.centos.org/modules/newbb/viewtopic.php?topic_id=22261&forum=38&post_id=85747#forumpost85747
https://www.centos.org/modules/newbb/viewtopic.php?viewmode=flat&topic_id=21954&forum=28
Please read
http://wiki.centos.org/Repositories
and note the warnings and advice about installing and configuring yum-priorities
http://wiki.centos.org/PackageManagement/Yum/Priorities
Non-core repos should have a higher numeric value, which is a lower priority. Lower is "better" as in golf scores.
https://www.centos.org/modules/newbb/viewtopic.php?topic_id=22261&forum=38&post_id=85747#forumpost85747
https://www.centos.org/modules/newbb/viewtopic.php?viewmode=flat&topic_id=21954&forum=28
Please read
http://wiki.centos.org/Repositories
and note the warnings and advice about installing and configuring yum-priorities
http://wiki.centos.org/PackageManagement/Yum/Priorities
Non-core repos should have a higher numeric value, which is a lower priority. Lower is "better" as in golf scores.
Re: PHP 5.2
you can upgrade to UNSUPPORTED PHP Version 5.2.9 on centos 5 by adding the C5 TESTING repo
[c5-testing]
name=CentOS-5 Testing
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=testing
baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
#enabled=0
priority=2
includepkgs=php*
[c5-testing]
name=CentOS-5 Testing
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=testing
baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
#enabled=0
priority=2
includepkgs=php*
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: PHP 5.2
[quote]
osde8info wrote:
you can upgrade to UNSUPPORTED PHP Version 5.2.9 on centos 5 by adding the C5 TESTING repo
[/quote]
... as explained on http://wiki.centos.org/Repositories :-)
[quote]
[c5-testing]
...
priority=2
includepkgs=php*[/quote]
That means that "php*" will be the only packages seen in [c5-testing] by yum. May or may not be what you want. Also, I believe you will either have to make the priority 1 for c5-testing or add corresponding[code]
exclude=php*[/code]directives for [base] and [updates] for the packages to be used.
osde8info wrote:
you can upgrade to UNSUPPORTED PHP Version 5.2.9 on centos 5 by adding the C5 TESTING repo
[/quote]
... as explained on http://wiki.centos.org/Repositories :-)
[quote]
[c5-testing]
...
priority=2
includepkgs=php*[/quote]
That means that "php*" will be the only packages seen in [c5-testing] by yum. May or may not be what you want. Also, I believe you will either have to make the priority 1 for c5-testing or add corresponding[code]
exclude=php*[/code]directives for [base] and [updates] for the packages to be used.
Re: PHP 5.2
Thanks,
How do I add a repo? Is there some file I should copy that into? Sorry, I'm just learning this stuff. Is there some 101 documentation anywhere I can study to at least grasp the basics? Thanks.
How do I add a repo? Is there some file I should copy that into? Sorry, I'm just learning this stuff. Is there some 101 documentation anywhere I can study to at least grasp the basics? Thanks.
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: PHP 5.2
Once more, all together now, http://wiki.centos.org/Repositories
:-D
Short answer, add a file to /etc/yum.repos.d/
:-D
Short answer, add a file to /etc/yum.repos.d/
Re: PHP 5.2
Yes, I've been looking at this page. All I can get out of it is:
[c5-testing]
name=CentOS-5 Testing
baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/
enabled=0
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
# CentOS-Testing:
# !!!! CAUTION !!!!
# This repository is a proving grounds for packages on their way to CentOSPlus and CentOS Extras.
# They may or may not replace core CentOS packages, and are not guaranteed to function properly.
# These packages build and install, but are waiting for feedback from testers as to
# functionality and stability. Packages in this repository will come and go during the
# development period, so it should not be left enabled or used on production systems without due
# consideration.
But that does not tell me what to do with it. There needs to be some beginner instructions like how to add a file to /etc/yum.repos.d/ . I can't tell whether that is typed into ssh directly meaning i need to learn some command line syntax. Or if this is copied into a txt file and uploaded to the server via ftp. Also, there is no info as far as getting other applications like php-devel etc activated as well. Sorry for my ignorance. This is my first step into the work of server admin. I'm smart in other things... I promise ;o)
[c5-testing]
name=CentOS-5 Testing
baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/
enabled=0
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
# CentOS-Testing:
# !!!! CAUTION !!!!
# This repository is a proving grounds for packages on their way to CentOSPlus and CentOS Extras.
# They may or may not replace core CentOS packages, and are not guaranteed to function properly.
# These packages build and install, but are waiting for feedback from testers as to
# functionality and stability. Packages in this repository will come and go during the
# development period, so it should not be left enabled or used on production systems without due
# consideration.
But that does not tell me what to do with it. There needs to be some beginner instructions like how to add a file to /etc/yum.repos.d/ . I can't tell whether that is typed into ssh directly meaning i need to learn some command line syntax. Or if this is copied into a txt file and uploaded to the server via ftp. Also, there is no info as far as getting other applications like php-devel etc activated as well. Sorry for my ignorance. This is my first step into the work of server admin. I'm smart in other things... I promise ;o)
Re: PHP 5.2
i just edit (with nano or vi) my existing repo file and add the testing lines
these wiki links might also help you further
http://osde.info/Yum
http://fsse.info/CentosLamp
these wiki links might also help you further
http://osde.info/Yum
http://fsse.info/CentosLamp
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: PHP 5.2
[quote]
osde8info wrote:
i just edit (with nano or vi) my existing repo file and add the testing lines
[/quote]
That will work but is not recommended as it may lead to later confusion. Best to put the sample repo definition into a new file in /etc/yum.repos.d/ - the name does not matter as long as it ends in .repo
http://wiki.centos.org/HowTos/PackageManagement/YumOnRHEL
One way would be to [url=http://wiki.centos.org/TipsAndTricks/BecomingRoot]become root[/url] in a terminal window, type "cat - >/etc/yum.repos.d/Centos-Testing.repo", select the text with the mouse, and then paste it into the window and type .
Another is (as root)[code]
cd /etc/yum.repos.d/
wget http://dev.centos.org/centos/5/CentOS-Testing.repo
[/code]
My wife is always telling me that what seems obvious to me is not so obvious to others. Hate to admit she's right.
osde8info wrote:
i just edit (with nano or vi) my existing repo file and add the testing lines
[/quote]
That will work but is not recommended as it may lead to later confusion. Best to put the sample repo definition into a new file in /etc/yum.repos.d/ - the name does not matter as long as it ends in .repo
http://wiki.centos.org/HowTos/PackageManagement/YumOnRHEL
One way would be to [url=http://wiki.centos.org/TipsAndTricks/BecomingRoot]become root[/url] in a terminal window, type "cat - >/etc/yum.repos.d/Centos-Testing.repo", select the text with the mouse, and then paste it into the window and type .
Another is (as root)[code]
cd /etc/yum.repos.d/
wget http://dev.centos.org/centos/5/CentOS-Testing.repo
[/code]
My wife is always telling me that what seems obvious to me is not so obvious to others. Hate to admit she's right.
Re: PHP 5.2
thanks that wasnt what i wanted !
so i've now changed it to
priority=1
includepkgs=http*,mod*,php*
and have now upgraded from apache httpd 2.2.3 to 2.2.8 as well
so i've now changed it to
priority=1
includepkgs=http*,mod*,php*
and have now upgraded from apache httpd 2.2.3 to 2.2.8 as well