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?

1 Answer 1


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.

  • 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, 2014 at 15:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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