

- Mamp pro change document root multi projects mac os x#
- Mamp pro change document root multi projects install#
Create a directory /Applications/MAMP/conf/apache/vhosts.Assuming you’ve installed MAMP at the default location of /Applications/MAMP: Getting more than one site working is pretty simple. Keep that in mind for later when we automate the startup. Moving Apache to port 80 will require that you run it as root or via sudo. What it does is change the port numbers in the Listen directive in nf and the invocation of mysqld_safe in /Applications/MAMP/bin/startMysql.sh. The easiest way to accomplish this is to simply use the MAMP GUI program provided in /Applications/MAMP/MAMP.app, click the Preferences button, and visit the Ports tab.
Mamp pro change document root multi projects install#
Lots of packages that you might install in your PHP environment default to talking to MySQL on port 3306, so doing this once keeps you from having to specifically configure everything else. This isn’t absolutely required, of course, but it can make housekeeping simpler-and at the very least, your URLs prettier-if you configure Apache and MySQL to use the standard ports (, respectively) rather than the MAMP defaults of 88. I’d recommend installing that even if you don’t plan on needing the source right away it’s a lot easier to ignore the extra files than it is to try to add them in later. For tasks that are more involved than changing confuration files or creating symbolic links, you’ll find it handy to have the source available source+binary packages are at the bottom of the download page. dmg on the MAMP download site is a binary-only setup.

We can set it up to be a little more powerful, yet retain its friendliness.īefore you install: The normal. However, the default configuration can be a touch limiting, so a little surgery is in order. by dragging it around between networked machines to replicate it) rather than having to coordinate the components yourself.
Mamp pro change document root multi projects mac os x#
Much of this simplicity is baked in at compile time so you can deal with the entire stack as you would a regular Mac OS X app bundle (e.g. Each package in the stack is configured such that it’s easy to drop the MAMP directory into /Applications and serve up a database-backed PHP site. MAMP is an easy way to get a basic MAMP (Mac, Apache, MySQL, PHP) environment running.
