MAMP: Set up Apache, MySQL, PHP environments in OSX and install and debug WordPress locally
Release: 2016-08-08 09:25:40
Original
945 people have browsed it
The name MAMP comes from Macintosh Apache MySQL PHP, which is obviously specially used to build Apache, MySQL, and PHP platforms in the Mac environment. Although OSX has pre-installed Apache 1.3.x and PHP 4.3.2 environments, enabling, configuring, and installing and integrating MySQL is still an extremely complicated task. The characteristic of MAMP is that it is simple (as you can see from the following installation steps), and it does not destroy the files of the system itself. The scope of modifying and creating files is limited to the program itself. System requirements: Mac OS Baidu Cloud: http://pan.baidu.com/s/1hqs1dGCOpen the dmg file and drag MAMP to the Applications folder (note: MAMP must be in the Applications folder to work properly). Set up MAMP
Open MAMP (not MAMP Pro), select the Preferences tab, and you will see the settings for Ports. The default Apache port is 8888. If not modified, it means that it needs to be accessed through http://localhost:8888/. You can also change it to something else (for example, change it to 80, so you don’t need to enter the part after :), but the disadvantage is that you need to enter the password every time. Select PHP 5.2.4 or above in the PHP tab (minimum requirement for WordPress 3.2). In the Apache tab, select the storage location of the file. This can be modified at will. For example, my setting is: /Users/renfei/Documents/localhost
Click OK to complete the setting.
Open the MAMP service and create a database
Click Start Servers, wait a moment, and find that the red light turns to green, indicating that the service is started successfully. After opening, the start page of MAMP should automatically appear (if it does not appear, click the Open Start Page button. Select phpMyAdmin in the opened web page, and then select the "Database" tab. In the "New Database" given to you Give the database a name (for example, I use wordpress), fill it in and click "New".
Install WordPress
Download WordPress. Unzip it and put the wordpress folder into the previous settings. The file storage location. According to my settings, all files are in /Users/renfei/Documents/localhost/wordpressAccess to localhost (according to my settings, the address is localhost:8888/wordpress) and start Familiar WordPress installation process. Fill in the relevant content as follows: database name: wordpress
database host/server: localhost
database user: root
database password: root
Copy after login
At this point, the entire installation process is completed and you can use WordPress on your local machine .
The above has introduced MAMP: setting up an Apache, MySQL, PHP environment in OSX and installing and debugging WordPress locally, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
-
2024-10-22 09:46:29
-
2024-10-13 13:53:41
-
2024-10-12 12:15:51
-
2024-10-11 22:47:31
-
2024-10-11 19:36:51
-
2024-10-11 15:50:41
-
2024-10-11 15:07:41
-
2024-10-11 14:21:21
-
2024-10-11 12:59:11
-
2024-10-11 12:17:31