Installation configuration in MAC MAMP using thinkphp

Source: Internet
Author: User
Tags install wordpress phpmyadmin

MAMP Pro is the professional version of the classic on-premises environment app MAMP on Mac OS X platform. Easily install and manage your own development environment for professional web developers and programmers.mamp these initials represent Macintosh, Apache, MySQL, and PHP on Mac OS x systems. Software features
    1. Support PHP multi-version switching
    2. ImageMagick Graphics processing Tools
    3. Dynamic DNS
    4. Virtual Server
    5. phpMyAdmin and other tools
    6. Support one-click Install wordpress, Joomla, Drupal and other open source applications

First of all, first say mamp download path, because there are many download methods, but can not use much. The following address pro-test is available:

http://xclient.info/s/mamp-pro.html

When installing a new version, stop all services from the old version before installing

Direct installation:
    1. Installing the pkg file in DMG
    2. Open the SN.txt (or serial.rtf) file in the DMG and add the serial number to the software activation screen
Sn:ded4-0a88-3a11-f9fdesn:cb7e-f665-a199-e2e68 After installing OK, you can test:
    1. http://localhost:8888/MAMP/index.php
    2. http://localhost:8888/
    3. http://localhost:8888/phpMyAdmin/index.php
Mamp installed after two software, one is Mamp, one is Mamp Pro, it is best to use Mamp Pro, because I found that using Mamp no matter how to switch the Htdocs directory will not succeed. Home Access Central: Because I have thinkphp installed in MAMP, the location of the default site must be: /applications/mamp/htdocs/tp5/public/static/Customizing the Site DirectoryUnder Document root, select the installation directory for the/applications/mamp/htdocs/tp5/public/static Web site Directory:
    1. MAMP installation Location: Go to Folder->/applications/mamp
    2. Site Directory: Go to Folder->/applications/mamp/htdocs
    3. thinkphp installation Location: Go to Folder->/applications/mamp/htdocs/tp5/
Setting up PortsThe default port is 8888, about the port can be seen in the Mamp Ports tab can be viewed in the case of the port is the default 8888, each visit to the site we need to add 8888 ports, such as the above see http://localhost:8888/ We can change the port to 80, and when we visit the site, we don't have to enter a port number. Modify port, need to restart service, direct access, no port numberafter testing can not directly click on the set ports to 80,81 ... this btn, just set the Apache port to 8000, the other ports remain the same, if you set the Gen-Y restart server found that Apache could not be enabled, indicating that the port is occupied.  PS: It is important to note that the port you are setting is not occupied and you manually set the other port if it is occupied. Configure Mamp
    1. Tick Indexs
    2. Set the value of directory index to *

Modifying the configuration directory/applications/mamp/conf, this path is the configuration folderApache configuration file Location /applications/mamp/conf/apacheconsider Apache's httpd.conf as an example /applications/mamp/conf/apache/httpd.confhttpd.conf can configure a lot of things, we will be involved in the next part, just start the page. the start page of the sitein the above section, we say that the boot must be index.html or index.php

Install configuration in MAC MAMP using thinkphp

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.