Macos sierra apache not working
Reactivating the : sudo cp /private/etc/apache2/ /private/etc/apache2/nf While updating to macOS to High Sierra, the Sierra nf was backed up to, a new High Sierra nf was installed and gained control, but won't work with the custom PHP5.Īfter backing up the High Sierra nf to _sierra: sudo mv /private/etc/apache2/nf /private/etc/apache2/_sierra The Sierra nf was modified to work with the different PHP (and virtual hosts). Here an (old) 3rd party PHP probably from entropy.ch was installed to /local/usr/bin/.
#Macos sierra apache not working mac#
Someone posted a similar question here a couple of years ago regarding the same syntax error, however, he didn't provide enough details or any follow-up regarding his setup, and no solution could be offered: Mac apache not working - apachectl configtest errors I have searched online for any solution this issue, but to no avail. I am using Apache/2.4.28 (Unix) and PHP 5.6.30.Įverything was working fine until the update. LoadModule php5_module /usr/local/php5/libphp5.so ĪddType application/x-httpd-php-source. LoadModule php5_module /usr/local/php5/libphp5.so
![macos sierra apache not working macos sierra apache not working](https://i.stack.imgur.com/EisBR.png)
The +nf is an alias to nf, and line 8 of that file is Include /private/etc/apache2/other/*.conf Referenced from: /usr/local/php5/libphp5.so\n Expected in: Syntax error on line 8 of /private/etc/apache2/other/+nf:Ĭannot load /usr/local/php5/libphp5.so into server:ĭlopen(/usr/local/php5/libphp5.so, 10): Symbol not found: _environ\n Httpd: Syntax error on line 544 of /private/etc/apache2/nf:
![macos sierra apache not working macos sierra apache not working](https://www.maketecheasier.com/assets/uploads/2016/10/disk-utility-raid-hero.jpg)
So I did apachectl configtest and got this error message: I tried restarting Apache, but it still didn't work. After upgrading to MacOS High Sierra, I haven't been able to access my localhost.