CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 5 - Application & Software Support
  would these instructions work to install PHP 5.2?

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread Rated:  3 Votes
  •  webdev2
      webdev2
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
Create PDF from Post Print
Top
  •  AlanBartlett
      AlanBartlett
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

# yum --disablerepo=\* --enablerepo=c5-testing list available \*php\*
<snip>
Available Packages
php.i386                                 5.2.6-2.el5s2          c5-testing      
php-bcmath.i386                          5.2.6-2.el5s2          c5-testing      
php-cli.i386                             5.2.6-2.el5s2          c5-testing      
php-common.i386                          5.2.6-2.el5s2          c5-testing      
php-dba.i386                             5.2.6-2.el5s2          c5-testing      
php-debuginfo.i386                       5.2.6-2.el5s2          c5-testing      
php-devel.i386                           5.2.6-2.el5s2          c5-testing      
php-gd.i386                              5.2.6-2.el5s2          c5-testing      
php-imap.i386                            5.2.6-2.el5s2          c5-testing      
php-ldap.i386                            5.2.6-2.el5s2          c5-testing      
php-mbstring.i386                        5.2.6-2.el5s2          c5-testing      
php-mysql.i386                           5.2.6-2.el5s2          c5-testing      
php-ncurses.i386                         5.2.6-2.el5s2          c5-testing      
php-odbc.i386                            5.2.6-2.el5s2          c5-testing      
php-pdo.i386                             5.2.6-2.el5s2          c5-testing      
php-pear.noarch                          1:1.5.1-2.el5s2        c5-testing      
php-pgsql.i386                           5.2.6-2.el5s2          c5-testing      
php-snmp.i386                            5.2.6-2.el5s2          c5-testing      
php-soap.i386                            5.2.6-2.el5s2          c5-testing      
php-suhosin.i386                         0.9.25-1.el5.centos    c5-testing      
php-suhosin-debuginfo.i386               0.9.25-1.el5.centos    c5-testing      
php-xml.i386                             5.2.6-2.el5s2          c5-testing      
php-xmlrpc.i386                          5.2.6-2.el5s2          c5-testing
_________________
Alan.

100% CentOS, Linux & Unix. Co-founder of ELRepo.
Posted on: 2009/3/27 17:25
Create PDF from Post Print
Top
  •  pschaff
      pschaff
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
Create PDF from Post Print
Top
  •  webdev2
      webdev2
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
Create PDF from Post Print
Top
  •  toracat
      toracat
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'
_________________
Useful links: Search Forums; Forum FAQ;CentOS Wiki
Posted on: 2009/3/27 17:55
Create PDF from Post Print
Top
  •  pjwelsh
      pjwelsh
Re: would these instructions work to install PHP 5.2?
#6
Professional Board Member
Joined: 2007/1/7
From Central IL USA
Posts: 1967
Just as a note, you will likely need to mix "yum install ..." and "yum update ...". Basically you need to update/upgrade an already installed package and install a not-installed package.
Posted on: 2009/3/27 18:24
Create PDF from Post Print
Top
  •  webdev2
      webdev2
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
Create PDF from Post Print
Top
  •  webdev2
      webdev2
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
Create PDF from Post Print
Top
  •  AlanBartlett
      AlanBartlett
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 --

# CentOS-Testing.repo
#
# !!!! 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. 

[c5-testing]
name = CentOS-$releasever - Testing 
baseurl = http://dev.centos.org/centos/$releasever/testing/$basearch/
gpgcheck = 1
gpgkey = http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
priority = 50
enabled = 0

-- 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.
_________________
Alan.

100% CentOS, Linux & Unix. Co-founder of ELRepo.
Posted on: 2009/3/28 15:22
Create PDF from Post Print
Top
  •  duli
      duli
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
Create PDF from Post Print
Top
  •  donpeek
      donpeek
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
Create PDF from Post Print
Top
  •  donpeek
      donpeek
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
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com