https://github.com/eugenesia/mamp-config
MAMP configuration that will persist across MAMP upgrades.
https://github.com/eugenesia/mamp-config
Last synced: about 2 months ago
JSON representation
MAMP configuration that will persist across MAMP upgrades.
- Host: GitHub
- URL: https://github.com/eugenesia/mamp-config
- Owner: eugenesia
- Created: 2015-11-20T14:36:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-20T14:57:17.000Z (over 9 years ago)
- Last Synced: 2025-02-12T02:47:53.885Z (4 months ago)
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MAMP Config
A way to configure MAMP and keep the settings across MAMP upgrades.
## Prerequisites
Download and install MAMP - you don't need MAMP Pro, just regular MAMP.
## Installation
Clone this repo into `~/mamp` .
### Htdocs
```bash
cd /Applications/MAMP
mv /Applications/MAMP/htdocs htdocs.orig
ln -s ~/mamp/htdocs htdocs
```### MySQL conf
```bash
cd /Applications/MAMP/conf
ln -s ~/mamp/mysql_conf/my.cnf my.cnf
```### Apache conf
```bash
cd /Applications/MAMP/conf
mv apache apache.orig
ln -s ~/mamp/apache_conf apache
```MAMP overwrites httpd.conf each restart so we need to symlink the whole folder rather than the httpd.conf file, which will be overwritten.
### Apache httpd.conf vhosts
Inside httpd.conf, make sure:
```apache
# Virtual hosts.
# You may need to replace ~/mamp with the absolute dir name.
Include ~/mamp/apache_conf/vhosts/*.conf
```### PHP conf
```bash
cd /Applications/MAMP/bin/php
cd php5.6.7
mv conf conf.orig
# Do this for all versions of PHP you are using.
ln -s ~/mamp/php_conf/php5.6.7_conf conf
```MAMP overwrites php.ini each restart / reconfig, so we need to symlink the whole conf folder rather than the php.ini file, which will be overwritten.