These are chat archives for phpbrew/phpbrew

26th
Aug 2018
Sergei Morozov
@morozov
Aug 26 2018 05:40
@FrancoFasano you need to specify the build name completely, not just the version. E.g. phpbrew use 7.2.9-dev. The reason is that there may be multiple builds of the same version.
Make sure you use shell completion (see phpbrew bash or phpbrew zsh). This way, you won't have to keep all build names in mind.
FrancoFasano
@FrancoFasano
Aug 26 2018 07:17
OK I run the <code>phpbrew use 7.2.9-dev</code> and all seems to be OK
<code> php -v
PHP 7.2.9 (cli) (built: Aug 25 2018 21:27:11) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies </code>
Now I check with phpinfo.php the server version and the result is:
PHP 5.6.21
FrancoFasano
@FrancoFasano
Aug 26 2018 07:24
The version running on server is 7.2.9 and the version checked on web site with phpinfo is 5.6.21 the initial version installed on my server.
An idea ?
FrancoFasano
@FrancoFasano
Aug 26 2018 11:16
So I find that I dont build php version with +apxs2 variant.
now I rebuild 7.2.9-dev with +apxs2 and I found new .so file here:
/usr/lib64/httpd/modules/libphp7.2.9.so
Sergei Morozov
@morozov
Aug 26 2018 16:51
@FrancoFasano correct, you'd have to compile the Apache module as well. Personally, I find it much more convenient to use php-fpm instead of a module. This way, your single Apache instance can use multiple PHP backends for different URLs (e.g. you can test the same website with multiple PHP versions depending on the hostname).