-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Labels
Description
Hi,
Ever since I upgraded to macOS Sierra, I am having a problem with brew-php-switcher.
When I issue the command bps (I set an alias for brew-php-switcher) I get the following error:
alisamii@alisamii /usr/local/etc/apache2/2.4 bps 70
Switching to php70
Switching your shell
Unlinking /usr/local/Cellar/php56/5.6.27_4... 0 symlinks removed
Unlinking /usr/local/Cellar/php70/7.0.12_5... 17 symlinks removed
Linking /usr/local/Cellar/php70/7.0.12_5... 17 symlinks created
You will need sudo power from now on
Switching your apache conf
Restarting apache
httpd: Syntax error on line 172 of /usr/local/etc/apache2/2.4/httpd.conf: Cannot load /usr/local/Cellar/php56/5.6.26_2/libexec/apache2/libphp5.so into server: dlopen(/usr/local/Cellar/php56/5.6.26_2/libexec/apache2/libphp5.so, 10): image not found
All done!
When I check line 172 of my https.conf file I see the following (lines 168-175):
LoadModule rewrite_module libexec/apache2/mod_rewrite.so
#LoadModule php5_module libexec/apache2/libphp5.so
LoadModule php7_module /usr/local/opt/php70/libexec/apache2/libphp7.so
#LoadModule php5_module /usr/local/opt/php56/libexec/apache2/libphp5.so
LoadModule hfs_apple_module libexec/apache2/mod_hfs_apple.so
When I check the location of libphp7.so I see it is there:
alisamii@alisamii /usr/local/etc/apache2/2.4 ls -l /usr/local/opt/php70/libexec/apache2/
total 11268
-rwxr-xr-x 1 alisamii admin 11537132 Oct 25 17:39 libphp7.so
and same thing for libphp5.so
alisamii@alisamii /usr/local/etc/apache2/2.4 ls -l /usr/local/opt/php56/libexec/apache2/
total 11100
-rwxr-xr-x 1 alisamii admin 11362692 Oct 25 17:24 libphp5.so
How do I solve this issue?
Reactions are currently unavailable