You will again need to edit the /usr/local/etc/httpd/nf. You have successfully installed your PHP versions, but we need to tell Apache to use them. PHP Installation $ brew install brew unlink brew install php.ini file can be found in: /usr/local/etc/php/7.2/php.ini. You can watch the Apache error log in a new Terminal tab/window during a restart to see if anything is invalid or causing a problem: $ tail -f /usr/local/var/log/httpd/error_log Start Apache, open browser with and you should see a message saying “It works!” $ sudo apachectl -k start Instead we'll brew and configure it to run on standard ports (80/443). We don't want to use the pre-installed Apache. ![]() $ sudo launchctl unload /System/Library/LaunchDaemons/ 2>/dev/null ![]() MacOS comes with Apache pre-installed, stop it and prevent it from starting on boot. $ brew doctorĪdd the Homebrew taps we need. Let's see if everything works the way it should. MacOS High Sierra Setup: Homebrew + Apache + PHP + MariaDB + SSL Homebrew Installationįirst let's install Homebrew.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |