In fact, the title is designed to build a php development environment.
The project needs to temporarily attack php development content and implement project release by deploying servers.
To use XAMPP as an IDE developed by PHP, use XAMPP as a powerful tool.
1. Install XAMPP
Download the file: XAMPP Mac OS X 1.7.3, and double-click to install
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!
2. 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 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.
3. After the installation is successful, enter http: // localhost in the browser. You can see the following page!