Saturday, March 9, 2013

Configure your development environment on Mac

Apache + PHP
They are embedded in Mac OS X.

MySQL
1. download for mac [ choose DMG Archive ]
2. install mysql-5.6.10-osx10.7-x86_64.pkg, MySQLStartupItem.pkg, and MySQL.prefPane


phpMyAdmin
1. fix 2002 socket error [ open terminal then (i) sudo mkdir /var/mysql  (ii) sudo ln -s /tmp/mysql /var/mysql/mysql.sock ]
2. download phpMyAdmin [ choose english.tar.gz ]


hint: if you HATE the guide above, just ignore it and do the following.


The better and easier way is to install XAMPP on Mac:



1. Go to Apache Friends website.
2. Select XAMPP for Mac OS X.
3. Select the Universal Binary.
4. Download and install.

Note: 
before you can start the Apache from the XAMPP control panel, you need to disable OSX's built-in Apache server by(on terminal): sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist



Install your editor:

1. download All-in-one package.

OR

2. install new software in eclipse for mac:

  1. go to menu bar, and select Help
  2. in the box of "Work with", type: Juno - http://download.eclipse.org/releases/juno [ go to here to check what you should type into the "Work with" box ]
  3. in the box of "type filter text", type: php
  4. select the php software to install

No comments:

Post a Comment