The php
version is changed only in the terminal, the server is still old.
Installed via phpbrew php-7.0.3
$phpbrew instal php-7.0.3
$phpbrew use php-7.0.3
$php -v
issues PHP-7.0.3
Reloaded apache
. In the browser phpinfo()
gives the old version of php-5.6
1 answer
Unfortunately with the proliferation of ubunt et al. Vanilla distributions. Such castes as phpBrew and others have become common. Why is gentoo better than ubuntu because it is ideal for a server, since calmly put together php7 installed introduced one simple command eselect php-fpm
, etc. and got a new version of php gone INTO something wrong entered eselect php-fpm
and everything is fine. so like this .... and for your task put lxc create a container in it put php7 and nginx mount the folder with the project and configure nginx on it after port 80 of the container can be hung on any of the server ports 8088 and proxied it with the same nginx or just use it as localhost:8088
LoadModule php5_module путь/до/5/версии
instead ofLoadModule php7_module путь/до/7/версии
andPHPIniDir
too chenit - Alexey Shimansky