Apache is running on localhost port 8080 btw. You mention a previous apache setup, was this installed via rosetta? Remove this first to be sure. It's a bit strange that mysql is reported as intel. I did manage to do all the installs with the python fix. Sorry, something went couldn't set it up. I might uninstall everything and start from - I will. The guide doesn't seem to work fully as it is now. Would really enjoy having a native setup. But the performance is very bad (Pageload takes around 3s instead of 1, it does show as "Apple" architecture though in the activity monitor, but mysql is "intel". I managed to get my previous apache setup running sudo apachectl start. Service `httpd` already started, use `brew services restart httpd` to restart. => Successfully started `httpd` (label: ) => Successfully started `mysql` (label: ) => Successfully stopped `httpd` (label: ) => Successfully stopped `mysql` (label: )
brew install php goes with php 8.0, so need to change it to brew install is what I get: Stopping `mysql`. If you have see a message saying something like Address already in use: AH00072: make_sock: could not bind to address, try changing the Listen config in nf to: Listen 0.0.0.0:8080Ĭheck if your config is valid: apachectl configtest Uncomment: # LoadModule rewrite_module lib/httpd/modules/mod_rewrite.soĬhange the DocumentRoot: DocumentRoot "/Users//MAMP/commonĪdd to your hosts file echo '127.0.0.1 ' | sudo tee -a /etc/hostsĬheck the output of the following commands: sudo apachectl start Oke, lets configure apache/httpd for usage with php and enable mod_rewrite along the way: nano ~/MAMP/httpd/nf Make 'em writable: chmod +x ~/MAMP/start.sh Now, let's add some scripts to this directory nano ~/MAMP/start.shīrew services start services start httpdīrew services restart services restart httpd Ln -s /opt/homebrew/etc/php/7.4 ~/MAMP/php Ln -s /opt/homebrew/etc/httpd ~/MAMP/httpd Make life a bit easier by symlinking the config directories to a rememberable path: mkdir ~/MAMP When everything is done it will list some next steps like adding the php module to apache. This might take some time (30mins) or so. Update: Building is probably not necessary anymore, you can omit the -s flag. Note: checkout this comment if you have problems building python. Now add the homebrew/bin directory to your path by editing/creating a. If not installed already, the system will ask to install the command-line tools for developers for you. We can then initiate homebrew by cd to that directory and run brew in the bin folder. This way homebrew will be installed to the /opt/homebrew folder.
Mkdir homebrew & curl -L | tar xz -strip 1 -C homebrew The native php is ofcourse way faster, see the results of this benchmark below. After that we'll configure apache2 for using virtual hosts. In this tutorial, we'll build the the nescessary packages for ARM via homebrew. Building the MAMP stack (php, apache & mysql) on Apple Silicon ARM (native)