I've got a problem to use phpbrew with my Xubuntu 16.04 x64 and apache2. I used it on xubuntu 14.04 without problem but now i'm really stuck :/ I will try to explain it with all informations needed.
All went fluently during installation of each version with that command line
phpbrew install 7.0.16 +default +mysql +pdo +apxs2=/usr/bin/apxs2 +mb
When i switch php version it's ok and i see the right version when i do
php -v
but i can see it's changing only CLI version of php
PHP 7.0.16 (cli) (built: Feb 28 2017 17:25:51) ( NTS )
If i take a look in .phpbrew/php i can see a folder for each versions of php i've installed and when i look in /etc/apache2/mods-available/ i've got phpX.X.load pointing the corresponding libphpX.X.XX.so in the folder /usr/lib/apache2/modules/ . All libphpX.X.XX.so are present in the folder. When i restart apache, i've got no errors.
I precise that i've installed phpbrew with that requirements (https://coderwall.com/p/hguzxa/phpbrew-on-ubuntu-16-04-php7)
So now i'm just trying that simple php line in a index.html file
<?php echo '<h1>Hello, world!</h1>';?>
But it seems apache can't interpret php because it appears like that
Hello, world!';?>
Finally, when i look the file /var/log/apache2/error.log, there is no error info inside.
Thank you in advance if you can help me for that!