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 need to upgrade my PHP installation on CentOS 6 from 5.3 to 5.5. While I have a couple of webprojects running I like first to install the new PHP in parallel and switch back to the old one if problems are occurring.

  • How do I install PHP 5.5 on CentOS in parallel and keep the old one?
  • How do I configure Apache to take the new PHP instance?
  • Is there a possibility on Apache to specify for each virtual host which PHP instance has to be taken?
  • How do I uninstall the old version?
share|improve this question
up vote 1 down vote accepted

I found a couple of tutorials which shows how this can be achieved:

solution 1 - using fast cgi instead of mod_php

solution 2 - runn a single instance of Apache, and run one instance of PHP as a module, and other installs as CGI.

Hope it helps others.

share|improve this answer
    
Can you please incorporate some of the details from those links in your A? Link only A's is discouraged since links often become stale and/or broken over time, in which case your A becomes useless to future passer-bys. – slm Sep 18 '14 at 15:26

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.