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

I have php55 actually and httpd. I would like to install also php7 (with php 55) or only php 5.6 - I mean php version 5.6, not php56.

How can I do that?

share|improve this question

migrated from meta.unix.stackexchange.com Aug 15 at 15:46

This question came from our discussion, support, and feature requests site for users of Linux, FreeBSD and other Un*x-like operating systems.

1  
Please edit your question and give us more detail. What operating system are you using? What exactly do you want to install (you mention 5 different php versions). Why is httpd relevant? Do you need to both install it and have your webserver use it? You need to explain what you are trying to do in order for us to be able t help you. – terdon Aug 15 at 15:47
1  
What is the difference between "php version 5.6" and "php56" ? – Stephen Harris Aug 16 at 22:18

You will have to compile and package additional versions of PHP yourself using different compile time option to make them work from different path.

To do that, please read your distro specific documentation.

You could also try to use a PHP slotting system if you don't need them to run concurrently. For example, Gentoo uses the "eselect" tool for that purpose, your distro may have a similar tool.

share|improve this answer

Your Answer

 
discard

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.