Can’t get Apache to run PHP 7.1 on MacOS Server X.10.5 rdstokes, April 22, 2018April 22, 2018 I can’t get Apache to run PHP 7.1; it seems to be stuck on 5.5.3. From the command line, php -v reports the correct PHP version. This is a MacOS Server X.10.5. And here is the Apache PHP info page: http://mint322.com/GD.php The install of “curl -s http://php-osx.liip.ch/install.sh | bash -s 7.1” looks like it ran just fine. /usr/local got the directory “php5-7.1.13-20180201-134129” and the /usr/local/php5 link points to “php5-7.1.13-20180201-134129”. There is a /etc/apache2/other/+php-osx.conf link going to /usr/local/php5-7.1.13-20180201-134129/entropy-php.conf file. Inside entropy-php.conf is “LoadModule php7_module /usr/local/php5/libphp7.so”. /private/etc/apache2/httpd.conf has “LoadModule php5_module libexec/apache2/libphp5.so” properly commented out with a #. Everything makes sense and looks right but my Apache still serves up php v5.5.3! I tried putting “LoadModule php7_module /usr/local/php5/libphp7.so” in /private/etc/apache2/httpd.conf but that didn’t make a difference. I tried putting “LoadModule php7_module libexec/apache2/libphp7.so” in /private/etc/apache2/httpd.conf, copying libphp7.so into libexec/apache2, setting the correct privileges on libphp7.so, but that didn’t make a difference either. Anyone have a suggestion about how I can get version 7.1 to activate in Apache? Rob MacOS / iOS Technical
I’ve pretty much decided that there is no solution to this problem. I found other people on the web with the same MacOS Server X.10.5 who have the same problem updating PHP from 5.5.3 to 7.x. Their solution was to rebuild the MacOS Server in X.12.x, which comes with PHP 7.1. Sigh… Rob Reply