Install XAMPP on Mac
Luo chaohui (http://blog.csdn.net/kesalin)
CC license. For more information, see Source
What is XAMPP?
Official introduction:
XAMPP for Mac OS x is the simplest, most practical, and most complete network server solution on Mac OS X. This release includes Apache 2 servers integrated with the latest MySQL, PHP, and Perl. It is released in the form of Mac OS X installation package, including all necessary files, without the need to download anything else. If you are an experienced network developer or a Mac enthusiast who needs to run servers, create dynamic webpages, or use databases, this is what you are looking! This version requires Mac OS X 10.4 (Intel & PPC) or higher.
Download and install
Refer to here. If you only want to install it, follow me:
1. download the file: XAMPP Mac OS X 1.7.3, and double-click to install it.
2. Run the following command to run XAMPP. Log on to the terminal as the system administrator root:
Sudo Su
Run the following command to start XAMPP:
/Applications/XAMPP/xamppfiles/XAMPP start
If you can see a message similar to the following on the screen:
Starting XAMPP for MacOS X 1.7.3...
XAMPP: Starting Apache with SSL (and PhP5 )...
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for MacOS X started.
Congratulations! The installation is successful!
3. if you encounter the following error in XAMPP: Starting ProFTPD:
XAMPP: Starting ProFTPD.../Applications/XAMPP/xamppfiles/xampp: line 184: /Applications/XAMPP/xamppfiles//var/proftpd/start.err: No such file or directoryfail.Contents of "/Applications/XAMPP/xamppfiles//var/proftpd/start.err":cat: /Applications/XAMPP/xamppfiles//var/proftpd/start.err: No such file or directory
Run the following command:
sudo mkdir /Applications/XAMPP/xamppfiles/var/proftpd/touch /Applications/XAMPP/xamppfiles/var/proftpd/start.errsudo /Applications/XAMPP/xamppfiles/xampp fix_rights
Then perform the operation in step 2 again.
4. After the installation is successful, enter http: // localhost in the browser. You can see the following page!