How to install MySQL / Apache / PHP on Mac OS X?

Do you guys recommend using MAMP, or do I need to do a manual installation? I'm smart enough to do the installation manually (in the past I did a lot of manual Apache installations with Ruby on Rails), but I'm not sure if MAMP is worth it.

Any guides, tips or opinions are also welcome!

UPDATE

This will be used for development purposes. Speed ​​/ efficiency is not the most important thing. As long as php / apache / mysql are available, I should be fine.

Keep in mind that MySQL is already installed (using Homebrew), and I prefer to install mysql / postgresql this way.

Thanks!

+4
source share
2 answers

Follow the instructions on this page , works great.

MAMP is good, but it is going to install everything from scratch. The same goes for PHP through homebrew. I have tried all this. But you must remember that your Mac comes bundled with Apache and PHP out of the box. You just need to add MySQL to the mix and ride.

+5
source

Mumps are easiest, but without pro fees, virtual hosts are hard to handle.

I found the default version already on the system, a pain for management due to some specific osx configuration in apache httpd.conf. But you can use mac ports or homebrew (my preferred) for custom php / apache installation.

My preferred and, in my opinion, the cleanest way is to install a virtual box and run the full LAMP stack. It is the most flexible and much closer to anything you can place on. If you have not done any system administrator before, this will be a pretty good way to find out a little more.

0
source

Source: https://habr.com/ru/post/1389836/


All Articles