MAMP: Build Apache, MySQL, PHP Environment in OSX and install and debug WordPress locally

Source: Internet
Author: User
Tags install wordpress
MAMP's name comes from the Macintosh Apache MySQL PHP, which is clearly designed to build Apache, MySQL, and PHP platforms in a MAC environment.

Although the Apache 1.3.x and PHP 4.3.2 environments are already preinstalled in OSX, enabling, configuring, and installing MySQL integration is still a very complex task. MAMP is characterized by its simplicity (as seen in the following installation steps), and it does not destroy the files of the system itself, and the scope of the modified and created files is limited to the program itself.

System requirements: Mac OS X 10.4 (Tiger) and above (for 10.3 Panther users can install MAMP 1.4.1)

Installation steps:

  • Go to the official website to download the latest version. Baidu Cloud: Http://pan.baidu.com/s/1hqs1dGC
  • Open the DMG file and drag MAMP into the Applications folder (Note: MAMP must be in the Applications folder to work properly).
  • Set Mamp

  • Open MAMP (instead of MAMP Pro), select the Preferences tab and see the Settings for the port (Ports). The default Apache port is 8888, and if not modified, it means that it needs to be accessed via http://localhost:8888/. You can also change to other (for example, change to 80, you do not have to enter: The following part), but the disadvantage is that you need to enter the password every time.
  • Choose PHP 5.2.4 or above in PHP tags (minimum requirements for WordPress 3.2).
  • In the Apache tab, select the location of the file, this can be arbitrarily modified. For example, my settings are:
    /users/renfei/documents/localhost
  • Click OK to complete the setup.
  • Open the MAMP service and create a database

  • Click Start Servers, and wait a moment to find that the red light turns green, indicating that the service is open successfully.
  • When on, the MAMP start page should appear automatically (if not, click the Open Start Page button.
  • Select PhpMyAdmin in the Web page that opens, and then select the Database tab. In the new database, give your database a name (for example, I use WordPress), fill it out and then click "New".
  • Install WordPress

  • Download WordPress.
  • After downloading, unzip, put the WordPress folder to the previously set file storage location. According to my settings, the files are all in /users/renfei/documents/localhost/wordpress .
  • Visit localhost (Follow my settings, address is localhost:8888/wordpress) and start to familiarize yourself with the WordPress installation process.
  • The relevant content is filled in this way:
    Database Name:wordpressdatabase host/server:localhostdatabase user:rootdatabase password:root
  • Now, all the installation process is complete, you can use WordPress in this machine.

    Above introduces the Mamp: Build Apache in OSX, MySQL, PHP environment and local installation, debugging WordPress, including aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.