Initial Situation:
I have an Ubuntu 12.04 Server hosting 3 Websites (with Apache 2.2.22)
How can I install a different PHP version for only one of the Websites? (The other 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 until now:
I have already tried out PHPBrew: http://phpbrew.github.io/phpbrew/
I managed to install PHP 5.6.16 for the command line (with PHPBrew) but the Apache still uses PHP 5.3.10.
I understood that i should end up with an *.so file which i need to place in /etc/apache2/httpd.conf file. (this file is empty at the moment) (via LoadModule...)
But: I don't have any *.so files. I installed PHPBrew like this:
phpbrew install 5.6.16 +default +mysql +mcrypt
I think I should have added +apxs2=/usr/bin/apxs2 but if I do this i get the error "Exception: apxs binary is not executable: /usr/bin/apxs2".
How can i fix this?
Or is there a better way to run different PHP versions on one Server? What is the best way?