Install XAMPP on Mac
Luo chaohui (http://www.cnblogs.com/kesalin) This article follows the "signature-non-commercial use-consistency" creation public agreement
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,After the installation is complete, 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 youXAMPP: Starting ProFTPD... the following error occurs in this step:
XAMPP: Starting ProFTPD.../applications/XAMPP/xamppfiles/XAMPP: Line 184:/applications/XAMPP/xamppfiles/var/ProFTPD/start. Err: no such file or directory
Fail.
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. Err
Sudo/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!