Nevertheless, you should be familiar with using the command line in order to easily get thing done. Installing Homebrew is rather straightforward. Homebrew is currently a prominent and well-supported package managing solution for macOS. Installing Homebrew (a sane package manager for macOS).This method also brings several advantages including good support for nginx integration and performance.īased on the aforementioned analysis of strategies, I consider the following installation activities to fulfill that goal. One of the recent favorite strategies is to set up PHP as Fast-CGI using PHP-FPM (FastCGI Process Manager). However, this is now gradually out of favor of Web developers and hosting providers because the tight combination of PHP and Apache makes things difficult for monitoring, debugging, and scaling.
![apache php for mac apache php for mac](https://xuri.me/wp-content/uploads/2013/10/wamp-1.png)
StrategiesĪ typical and well-documented approach is to load PHP processor as a module under Apache httpd using the directive LoadModule. Let’s assume that we want to set up an exemplary Web development environment including Apache HTTP 2.4 server and PHP 7. In this note, I write down what I learn from many sources on the Internet tweaked to suit my needs. As a result, I first looked for a simple setup of Apache and PHP that best suits the beginning of my initial learning path. As usual, I would start with pure PHP aspects that really help me to understand the fundamental concepts and techniques instead of being drown with everyone-known frameworks and their complexity and hard-to-understand magics. WAMP for Windows, LAMP for Linux, MAMP for Mac) are commonly used but also considered a tad bloated for the beginners like me ).Īfter few years of Java development, I turned myself into Web development, and in particular, PHP programming. MacOS are often shipped with pre-installed versions of Apache HTTP server and PHP but these are often outdated and merely customised for macOS. Together, Apache HTTP server, PHP, and MySQL form a powerful and popular combination for Web development.