Answer the question
In order to leave comments, you need to log in
Ubuntu custom build php 7.3 not showing up in list of available versions?
Hello! There is a VPS with LAMP, ubuntu 16.04, php version 7.0. Everything works correctly, but pcntl support is required, the manual says that you need to compile the php version yourself with the " --enable-pcntl" flag. There are not many manuals on how to build php, I used this one . Specified folders /etc/php/php7custom and /usr/local/php7custom. Build compiled, /usr/local/php7custom/bin/php -v shows php 7.3 (cli) version. BUT phpinfo still outputs php 7.0 of course. The sudo update-alternatives --config php command does not display my php version in the list and I cannot switch to it accordingly. What needs to be done to get apache to use my version of php?
Answer the question
In order to leave comments, you need to log in
In order for apache to use your php, you need to specify the path to the module in its settings. As a sample, you can take a file from mod_available, which comes for the php module out of the box.
But generally speaking, it would be wiser to build pcntl as a module for the current version of php, and connect ...
And why build 7.3 that hasn't been released yet? It is unlikely that you need it at all if you have questions about connecting mod_php and need some manuals...
And if you need the latest up-to-date one, you can look at https://launchpad.net/~ondrej/+archive/ ubuntu/php php 7.2, and at the same time check if pcntl is already there.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question