Yum error on PHP update - Error: Cannot find a valid baseurl

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
User avatar
mikemike
Forum Contributor
Posts: 355
Joined: Sun May 24, 2009 5:37 pm
Location: Chester, UK

Yum error on PHP update - Error: Cannot find a valid baseurl

Post by mikemike »

This isn't strictly PHP, but it is indirectly.

I am trying to update my version of PHP from 5.1 to 5.2 - my box is the following:
Fedora Core 6
Apache 2
Currently PHP 5.1
Runs PLESK 8.2.1

The plesk manual tells me to use their packages to update components, but I can't find one for PHP - the manual then tells me to just update it how I normally would, this is using yum.

Code: Select all

[root@s15288948 ~]# yum update php
Setting up Update Process
Setting up repositories
Error: Cannot find a valid baseurl for repo: extras
 
My repo files have been the same since I got the box last year and Yum has worked perfectly since then. Am I doing something stupid, or missing something obvious?
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Yum error on PHP update - Error: Cannot find a valid baseurl

Post by jaoudestudios »

I am on CentOS 5.3 and yums repo latest release of php was 5.1.6. So to get round this I just compiled the latest release of php 5.2.9 from source. So you could always do the same. Make sure you take a backup of your libphp5.so first - just in case!

However, I also have a Fedora 8 & Fedora 10 server and from yum they do have php 5.2.6.
Post Reply