On MacOSX when using MAMP GUI to start, MySQL starts but Apache doesn't start and gives the following error
Apache couldn't be started. Please check your MAMP installation and configuration
running sudo /Applications/MAMP/Library/bin/apachectl start
gives
httpd: Syntax error on line 135 of /Applications/MAMP/conf/apache/httpd.conf: Cannot load /Applications/MAMP/bin/php/php7.0.10/modules/libphp7.so into server: dlopen(/Applications/MAMP/bin/php/php7.0.10/modules/libphp7.so, 10): Library not loaded: /Applications/MAMP/Library/lib/libcrypto.1.0.0.dylib\n Referenced from: /Applications/MAMP/bin/php/php7.0.10/modules/libphp7.so\n Reason: image not found
Additional info
- I've downloaded PHP 7.0.10 from https://www.mamp.info/en/downloads/
- I'm using MAMP not MAMP Pro
EDIT:
I've tried
- Renaming the file “envvars” located in /Applications/MAMP/Library/bin into “_envvars”
- Changing ports