Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

How can I install another PHP version?

I have php 5.4.5 for now, but I need the version 5.3.15 running too.

How can I perform this on Fedora 17? Without using a Virtual Machine?

share|improve this question
up vote 3 down vote accepted

One of the standard ways of doing this is to download the php source code from http://php.net/downloads.php and compile it with ./configure --prefix=/opt/php/5.3.15 or something to that effect. Then, your new php will not conflict with any system packages. Note that on Fedora, you will need to install a bunch of -devel packages to build php with the functionality you most likely want.

share|improve this answer
I've done this. But, where is the final php executable? Looks hidden o.O – GarouDan Aug 27 '12 at 20:33
@GarouDan I would guess /opt/php/5.3.15/bin – jordanm Aug 28 '12 at 0:38
You will also need to run make and make install (not sure if you did that already). But jordanm's answer is where it should be. – zje Aug 28 '12 at 0:55
I'had seen on another question that I couldn't do the make install, but this is wrong. It works. Thanks. – GarouDan Aug 28 '12 at 12:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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