WordPress knowledge sharing

How to use MAMP to quickly build a php environment

Sometimes websites and projects need to set up a local php environment. It is too complicated to manually configure one environment after another as before, and not everyone can master this skill. Later, many local php environment packages appeared, which can be built with one click. It was introduced by Weieis blog earlier Php studio builds a local php environment and installs wordpress Recently, netizens introduced the use of foreign MAMP Quickly build a php environment , so Lao Wei came to experience it. This article is only limited to the tutorial for experience testing.

1. MAMP download address

The official website of MAMP may have limited the download speed. The download speed is usually 3M/s, but now it is only more than 100 K/s. It took half an hour to complete the download.

2. The MAMP installation process will continue according to the default settings. When I installed the program, I also upgraded the net framework.

3. Configure the MAMP process. After opening the software (don't use PRO), select Preferences, and the following dialog box pops up. Select two items as shown in the figure: start the service when the MAMP is opened, and stop the service when the MAMP is closed.

The port is generally 3306 for MySql and 80 for Apache. The premise is that port 80 is not occupied; If it is occupied, change it to an unused port.

Select Apache or Nginx service, and click select to select the root directory of the website file.

After clicking OK, we can see that there will be a setting process on the following setting page. We just wait. At last, stop servers are green. Apache Server and MySQL Server are both in green box status, so there is no problem.

Click the Open start page in the middle to open the default localhost page, and test whether Apache is successfully built. The following page indicates that the local php environment has been successfully set up.

This article is only for the purpose of experience testing, because some novices in China are using this "huge" one click php environment package, so this article is here. Finally, let's summarize the MAMP one click php environment package, which has a full English operating interface. The installation package is 10 times the size of phpstudy, and the installation process is slightly complicated. It is not troublesome to use the operation settings. Generally speaking, it is not suitable for novices, especially Chinese. If you want to set up a local php environment, it is recommended to use the one button package of phpstudy.

Like( zero )
Article name: How to use MAMP to quickly build a php environment
Article link: https://www.vpsss.net/2751.html
Copyright notice: The resources of this website are only for personal learning and exchange, and are not allowed to be reproduced and used for commercial purposes, otherwise, legal issues will be borne by yourself.
The copyright of the pictures belongs to their respective creators, and the picture watermark is for the purpose of preventing unscrupulous people from stealing the fruits of labor.