[work in progress] Compile and install php 7.X on Debian
Error
update-alternatives: error: alternative /usr/local/php-7.1.26/bin/php for php not registered; not setting
echo "Will set php version to $PHP_VERSION"
sudo update-alternatives --set php /usr/local/php-$PHP_VERSION/bin/php
update-alternatives: error: alternative /usr/local/php-7.1.26/bin/php for php not registered; not setting
Solution
sudo update-alternatives --install /usr/bin/php php /usr/local/php-$PHP_VERSION/bin/php 1
sudo update-alternatives --set php /usr/local/php-$PHP_VERSION/bin/php
php --version
Error
$ phpize
Cannot find config.m4.
Make sure that you run '/usr/local/php-7.1.26/bin/phpize' in the top level source directory of the module
Solution
https://stackoverflow.com/questions/17834363/phpize-cannot-find-config-m4
Problem
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php-7.1.26/lib/php/extensions/no-debug-non-zts-20160303/php_curl.dll'
You can also install pre-built
https://www.cyberciti.biz/faq/installing-php-7-on-debian-linux-8-jessie-wheezy-using-apt-get/
Recent Comments