Initial situation:
I have a Ubuntu 12.04 server that hosts 3 websites (with Apache 2.2.22)
How can I install a different version of PHP for only one of the sites? (The remaining 2 should remain as they are)
Current PHP Version: PHP 5.3.10; Desired PHP Version: PHP 5.6.16
What I have done / understood so far:
I already tried PHPBrew:
http://phpbrew.imtqy.com/phpbrew/
I managed to install PHP 5.6.16 for the command line (with PHPBrew), but Apache still uses PHP 5.3.10.
I realized that in the end there should be a * .so file that needs to be placed in the / etc / apache 2 / httpd.conf file. (this file is currently empty) (via LoadModule ...)
But: I do not have * .so files. I installed PHPBrew as follows:
phpbrew install 5.6.16 + default + mysql + mcrypt
I think I should have added + apxs2 = / usr / bin / apxs2, but if I do, I get the error "Exception: the apxs binary is not executable: / usr / bin / apxs2".
How can i fix this?
Or is there a better way to run different versions of PHP on the same server? What is the best way?
source
share