Aprium Software

Finishing a MAMP install

Paths to MAMP programs After you installed MAMP you will find that none of the programs like mysql or apachectl will run without its full path. The easiest way i have found too add all the MAMP programs into terminal is to add a path variable into your terminal profile. First lets open the terminal profile

sudo nano /etc/profile

Now add the line.

PATH="/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:/bin:
/sbin:/usr/bin:/usr/sbin:/Applications/MAMP/bin/apache2/bin/"

This will add any programs the bash terminal finds in any of the directories listed. You can add more by adding a colon then the path of the directory you are adding. Handy aliases You can also alias long or complicated unix commands in the profile. For instance you can change 'ls -la' to just 'l' which is great seeing as the amount of times you type it. Here are a some of the aliases i use, if you have textmate installed you can change the nano to mate.

# Aliases alias l='ls -la' alias ea='sudo nano /Applications/MAMP/conf/apache/httpd.conf' alias ev='sudo nano /Applications/MAMP/conf/apache/httpd-vhosts.conf' alias sites='cd /users/[username]/Sites' alias eh='sudo nano /etc/hosts'

Hire

If you need a London based Drupal developer you can hire me. Check the availability page and contact me on info@aprium.net.

 

Powered by Drupal, an open source content management system

Copyright Aprium 2010