Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 xxx.com 2.6.40.6-0.fc15.x86_64 #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 at 9:41

  • This question does not appear to be about professional 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 at 15:18
    
@MadHatter The system admin tells me to fix security holes by upgrading the PHP version. –  Yang Mar 20 at 15:19
    
Which version of fedora is this? –  MadHatter Mar 20 at 15:22
1  
You asked this question six months ago, at serverfault.com/questions/541019/upgrading-php-on-redhat, 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 at 15:26
2  
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 at 15:33
show 4 more comments

2 Answers 2

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
add comment

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 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 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. –  Eric DANNIELOU Mar 20 at 18:03
    
@EricDANNIELOU What I provide, is an actual end solution and NO critiques! Thank you for your comment though. –  alexus Mar 21 at 14:26
add comment

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