-2

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.

5
  • Why do you wish to so upgrade PHP?
    – MadHatter
    Mar 20, 2014 at 15:18
  • @MadHatter The system admin tells me to fix security holes by upgrading the PHP version.
    – Yang
    Mar 20, 2014 at 15:19
  • 2
    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, 2014 at 15:26
  • @MadHatter Are there any other ways to upgrade PHP?
    – Yang
    Mar 20, 2014 at 15:30
  • 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, 2014 at 15:33

2 Answers 2

4

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.

0

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

3
  • 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, 2014 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, 2014 at 16:02
  • @EricDANNIELOU What I provide, is an actual end solution and NO critiques! Thank you for your comment though.
    – alexus
    Mar 21, 2014 at 14:26

Not the answer you're looking for? Browse other questions tagged .