www.centos.org Forum Index CentOS 5 - Application & Software Support would these instructions work to install PHP 5.2?
|
Bottom Previous Topic Next Topic |
| |
|
|
|---|
| Poster | Thread | Rated: 3 Votes |
|---|
|
would these instructions work to install PHP 5.2? | #1 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2008/11/28
From
Posts: 22
|
wget http://rpms.famillecollet.com/el5.i386/remi-release-5-4.el5.remi.noarch.rpm
wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm rpm -Uvh epel-release-5*.rpm yum --enablerepo=remi install php-common yum --enablerepo=remi install php yum install gd gd-devel yum --enablerepo=remi install php-mcrypt php-xml php-xml php-devel php-imap php-soap php-mbstring php-mysql yum --enablerepo=remi install php-mhash php-simplexml php-dom Thanks for your input!! |
||
Posted on: 2009/3/27 17:19
|
|||
|
Re: would these instructions work to install PHP 5.2? | #2 |
|
|---|---|---|---|
|
Professional Board Member
![]()
Joined: 2007/10/22
From ~/Earth/UK/England/Suffolk
Posts: 4281
|
PHP 5.2 is available from the CentOS testing repository.
Please see http://wiki.centos.org/AdditionalResources/Repositories |
||
Posted on: 2009/3/27 17:25
|
|||
|
Re: would these instructions work to install PHP 5.2? | #3 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater Virginia, North America
Posts: 3404
|
If you use it, please report results to centos-devel to help get it out of testing.
http://www.centos.org/modules/newbb/viewtopic.php?topic_id=18223&forum=37&post_id=71382#forumpost71382 |
||
|
_________________
Phil Required reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2009/3/27 17:43
|
|||
|
Re: would these instructions work to install PHP 5.2? | #4 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2008/11/28
From
Posts: 22
|
Thanks. I am a newbie so I need instructions to enter.
So I would use: wget http://dev.centos.org/centos/5/CentOS-Testing.repo Then what would I put for the --enablerepo= ? yum --enablerepo=????? install php-common yum --enablerepo=????? install php yum install gd gd-devel yum --enablerepo=????? install php-mcrypt php-xml php-xml php-devel php-imap php-soap php-mbstring php-mysql yum --enablerepo=????? install php-mhash php-simplexml php-dom Thanks for your input!! |
||
Posted on: 2009/3/27 17:49
|
|||
|
Re: would these instructions work to install PHP 5.2? | #5 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/9/3
From California, US
Posts: 4227
|
Try a 'yum repolist all'
|
||
Posted on: 2009/3/27 17:55
|
|||
|
Re: would these instructions work to install PHP 5.2? | #7 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2008/11/28
From
Posts: 22
|
toracat - I just did that - thanks. the testing repo is now part of the system.
pjwelsh - can you let me know which I need to "yum install ..." and "yum update ..."? would it be: yum upgrade php-common yum upgrade php A lot of the following packages are already in place. Do I need to install or upgrade or does it matter? yum install gd gd-devel yum install php-mcrypt php-xml php-xml php-devel php-imap php-soap php-mbstring php-mysql yum install php-mhash php-simplexml php-dom Also, which directories off root do I need to back up in case this screws the system up? Many many thanks!! |
||
Posted on: 2009/3/27 18:30
|
|||
|
Re: would these instructions work to install PHP 5.2? | #8 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2008/11/28
From
Posts: 22
|
Close - I ran:
yum upgrade php and it worked unbelievably smooth - I am LOVING this OS! |
||
Posted on: 2009/3/27 21:18
|
|||
|
Re: would these instructions work to install PHP 5.2? | #9 |
|
|---|---|---|---|
|
Professional Board Member
![]()
Joined: 2007/10/22
From ~/Earth/UK/England/Suffolk
Posts: 4281
|
For the OP, webdev2. This is the contents of my /etc/yum.repos.d/CentOS-Testing.repo file --
-- note my setting of its priority to 50 and that it is routinely disabled. Hence the --enablerepo=c5-testing on my yum command line in post #2. |
||
Posted on: 2009/3/28 15:22
|
|||
|
What about mcrypt and mhash? | #10 |
|
|---|---|---|---|
|
Newbie
![]()
Joined: 2009/3/29
From
Posts: 1
|
Okay, I did the upgrade of php using c5-testing repo. But I canīt find how to upgrade the packages php-mcrypt and php-mhash, which are needed by horde.
Any help is highly appreciated! Thanks |
||
Posted on: 2009/3/29 20:36
|
|||
|
Re: What about mcrypt and mhash? | #11 |
|
|---|---|---|---|
|
Newbie
![]()
Joined: 2006/1/4
From
Posts: 2
|
I did the same thing .. turn on the test repos and did a 'yum update php'
Now this is the out put for php -v php -v PHP Warning: PHP Startup: mcrypt: Unable to initialize module Module compiled with module API=20050922, debug=0, thread-safety=0 PHP compiled with module API=20060613, debug=0, thread-safety=0 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: mcrypt: Unable to initialize module Module compiled with module API=20050922, debug=0, thread-safety=0 PHP compiled with module API=20060613, debug=0, thread-safety=0 These options need to match in Unknown on line 0 PHP 5.2.6 (cli) (built: Sep 15 2008 20:42:05) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies What have we missed ? Thanks Don Peek |
||
Posted on: 2009/4/2 0:18
|
|||
|
Re: What about mcrypt and mhash? | #12 |
|
|---|---|---|---|
|
Newbie
![]()
Joined: 2006/1/4
From
Posts: 2
|
I just found out that even if the command line saids 5.2.6 when I do a phpinfo() from a site
it is still running PHP Version 5.1.6 So some how I need it so httpd also is running this version.. Times like this reminds me how little I know.. Thanks Don |
||
Posted on: 2009/4/2 15:14
|
|||
Top Previous Topic Next Topic |
|



Topic options
Print Topic
Threaded
Newest First
3 Votes
webdev2






You cannot start a new topic.
You can view topic.