Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Fedora server running PHP 5.3.13 and Wordpress. I would like to upgrade the PHP version to 5.3.18 or higher.

This is the system information:

$ uname -a
Linux #1 SMP Tue Oct 4 00:39:50 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/fedora-release 
Fedora release 15 (Lovelock)

$ php --version
PHP 5.3.13 (cli) (built: May  9 2012 14:38:35) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
    with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator

I tried using yum install update php, but it doesn't work:

$ sudo yum update php
password for user:
fedora/metalink                                          | 5.6 kB     00:00     
updates/metalink                                         | 5.2 kB     00:00     
Setting up Update Process
No Packages marked for Update

Any solutions? Please also let me know if upgrading PHP version will invalidate any previous installed softwares (e.g., Wordpress, php-cgi, etc). Thank you.

share|improve this question

closed as off-topic by MadHatter, Ward, mdpc, Tom O'Connor Mar 21 '14 at 9:41

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

Why do you wish to so upgrade PHP? – MadHatter Mar 20 '14 at 15:18
@MadHatter The system admin tells me to fix security holes by upgrading the PHP version. – Yang Mar 20 '14 at 15:19
You asked this question six months ago, at, though I note you have just (four minutes ago) deleted it. The answer remains the same: you're running an old and unsupported version of Fedora. If you bring your Fedora into support, you will automatically have security updates again, which will mean you're secure even if the version number suggests otherwise. If you don't upgrade the OS, no number of PHP upgrades can keep you secure. – MadHatter Mar 20 '14 at 15:26
@MadHatter Are there any other ways to upgrade PHP? – Yang Mar 20 '14 at 15:30
Let me be incredibly clear: noone else is using Fedora 15 any more. It is past end of life, and out of support. You cannot secure an F15 installation at this point in time. You can compile PHP from source if you want, but it will be painful, time-consuming, you will need to keep doing it each time a new PHP comes out, and it still won't secure your system. If your sysadmin thinks it will, (s)he's wrong. – MadHatter Mar 20 '14 at 15:33
up vote 4 down vote accepted

Fedora 15 is not supported anymore, so php will not be updated. Upgrade to the latest version (fedora 20 at this time).

Fedora releases have short life cycles, so you should not use it for a server unless you can afford to upgrade your system at least every year.

share|improve this answer

it looks like php was not installed through rpm, you should try to uninstall it and reinstall it via yum install php

share|improve this answer
Why should I uninstall it? I guess if I run yum install php, it will upgrade to the newest version if it's not. – Yang Mar 20 '14 at 15:26
you'd end up with two (probably at different locations), so uninstalling it would make it less confusing going forward) – alexus Mar 20 '14 at 16:02
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. – user130370 Mar 20 '14 at 18:03
@EricDANNIELOU What I provide, is an actual end solution and NO critiques! Thank you for your comment though. – alexus Mar 21 '14 at 14:26

Not the answer you're looking for? Browse other questions tagged or ask your own question.