Some things require different versions of PHP. Thats why I have to run a number of different versions.
Install PHP 5.5 with this command:
curl -s http://php-osx.liip.ch/install.sh | bash -s 5.5
From the site: http://php-osx.liip.ch/
Then you have to change some settings in the httpd file. (/private/etc/apache2/httpd.conf). You might need to enable the php5 module.
Start your apache server with the command: sudo apachectl start
... and stop it again with sudp apachectl stop.
Local mysql (not the MAMP one) can be started and stopped with:
/usr/local/mysql/support-files/mysql.server start (and stop for stopping)
If MAMP services wont start you can try to run the sh scripts in /Applications/MAMP/bin/
Run sh with the command:
> sh stopMysql.sh
This will tell if it worked and also the location of the log file to look for any errors.