CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 4 - Application & Software Support
  PHP5 and MySQL5

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread Rated:  6 Votes
  •  britishassassin
      britishassassin
PHP5 and MySQL5
#1
Newbie
Joined: 2006/6/17
From
Posts: 1
Hi

I am using CentOS 4.3 and wanted to upgrade to PHP5 and MySQL5. After searching the forums, I have found the following:

To upgrade to PHP5
edit /etc/yum.repos.d/CentOS-Base.repo
Enable CentOSPlus
Then do yum update php

This worked fine for me.

To upgrade to MySQL5
create /etc/yum.repos.d/CentOS-Testing.repo
Then put the following into it:
[c4-testing]
name=CentOS-4 Testing 
baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing

Then do yum update mysql

This seemed to work fine for me until I got the following error:

Quote:
Downloading Packages:
warning: rpmts_HdrFromFdno: V3 DSA signature: NOKEY, key ID 7203f491
Public key for mysql-5.0.18-2.1.c4.x86_64.rpm is not installed
Retrieving GPG key from http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testingaa

GPG key retrieval failed: [Errno 4] IOError: HTTP Error 404: Not Found


I have looked at the mirror and can not find a file called RPM-GPG-KEY-CentOS-testingaa at that location, but I can see a file called RPM-GPG-KEY-CentOS-testing. Is this the file it is supposed to get and if it is, how do I make it find this one instead of the one its looking for.

Thanks

british.assassin
Posted on: 2006/6/17 20:45
Create PDF from Post Print
Top
  •  dnuttall
      dnuttall
Re: PHP5 and MySQL5
#2
Peeking in the Member Window
Joined: 2005/3/16
From San Antonio, Texas
Posts: 22
Quote:

britishassassin wrote:
..SNIP...
baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/
...UNSNIP...
british.assassin


It failed for me also until I hard-coded the values instead of the variables.

For example:

baseurl=http://dev.centos.org/centos/4.3/testing/i386/

Of course if you're NOT using the i386 distro, change the end directory reference.

HTH.

Dave Nuttall
San Antonio, TX

PS...I have no idea WHY it doesn't work with the variables!
Posted on: 2006/6/25 20:31
Create PDF from Post Print
Top
  •  Esuk
      Esuk
Re: PHP5 and MySQL5
#3
Newbie
Joined: 2006/6/26
From
Posts: 2
I've followed your neat little guide but my update fails on both mysql and PHP with the following error:

Error: Missing Dependency: php = 5.0.4-3.centos4 is needed by package php-xml

Got any idea of what might be wrong?
Posted on: 2006/6/30 12:05
Create PDF from Post Print
Top
  •  dnuttall
      dnuttall
Re: PHP5 and MySQL5
#4
Peeking in the Member Window
Joined: 2005/3/16
From San Antonio, Texas
Posts: 22
[quote]
Esuk wrote:
I've followed your neat little guide but my update fails on both mysql and PHP with the following error:

Error: Missing Dependency: php = 5.0.4-3.centos4 is needed by package php-xml

Got any idea of what might be wrong?[/quote]

I've seen the testing repo fail until yum has passed thru CentosPlus or the other default repos.

Try this:

In /etc/yum.repos.d/C*
change "enabled=0" to "enabled=1"

and then rerun yum update

If that doesn't work, perhaps you could post any other error messages you get.

Good luck.

Dave
Posted on: 2006/7/1 13:14
Create PDF from Post Print
Top
  •  hmartin216
      hmartin216
Re: PHP5 and MySQL5
#5
Newbie
Joined: 2006/7/2
From
Posts: 1
Just a quick thank-you for this post. I have been beating my head against the wall (figuratively speaking) trying to get PHP 5 and MySQL 5 installed on CentOS 4.3. This thread not only fixed my problem, but I learned something in the process. Thanks!
Posted on: 2006/7/2 20:18
Create PDF from Post Print
Top
  •  Esuk
      Esuk
Re: PHP5 and MySQL5
#6
Newbie
Joined: 2006/6/26
From
Posts: 2
Quote:

I've seen the testing repo fail until yum has passed thru CentosPlus or the other default repos.

Try this:

In /etc/yum.repos.d/C*
change "enabled=0" to "enabled=1"

and then rerun yum update

If that doesn't work, perhaps you could post any other error messages you get.

Good luck.

Dave


Thx for your answer and your help Dave,
I tried to do it that way but I got the same errormessage as I got before, however I tried to update php-xml but it turned out that it wasn't installed.
A yum install php-xml did the trick, it didn't just install phpxml but also upgraded to PHP 5.0.4 without any errors.
Posted on: 2006/7/3 9:50
Create PDF from Post Print
Top
  •  agasea
      agasea
Re: PHP5 and MySQL5
#7
Newbie
Joined: 2006/2/22
From
Posts: 3
I tried this, but when I "yum update mysql" I'm getting the following message:

Could not find update match for mysql

What should I do? mysql 4.1 is installed and I need to update to 5.1

Also when I run yum update
I get the following

Error: Missing Dependency: php = 4.3.9-3.15 is needed by package php-pear


Thanks
Posted on: 2006/8/3 14:49
Create PDF from Post Print
Top
  •  dnuttall
      dnuttall
Re: PHP5 and MySQL5
#8
Peeking in the Member Window
Joined: 2005/3/16
From San Antonio, Texas
Posts: 22
MySQL 5.0.22 is definitely available in CentOSPlus.

Be sure you have "enabled=1" in the subsection of your /etc/yum.repo.d/C* file.

I haven't look for a couple weeks or longer, but the last time I did look, I think MySQL 5.1 was still very much beta, hence you are very unlikely to see it anywhere near any of the usual yum-repos.

Good luck.
Posted on: 2006/8/3 14:56
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