Configuration scheme of xampp+thinkphp under Mac

Source: Internet
Author: User

MAC installation configuration Xmapp steps:

1. Download Xmapp to the website and install it.

2. Install the integrated development environment Phpstorm.

3. next to the website download thinkphp3.2, then Cd/applications/xampp/xamppfiles/htdocs

Into the Htdocs folder, create an app folder, then unzip the thinkphp into the app folder

As shown in the following:

650) this.width=650; "Src=" http://img.blog.csdn.net/20150416202908242?watermark/2/text/ ahr0cdovl2jsb2cuy3nkbi5uzxqvbhvvc2hlbmdraw0=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity/ Center "style=" border:0px;margin:0px;padding:10px 0px;vertical-align:middle; "/>

Then open the browser input Http://localhost/app

Results found no permission!!! As shown in the following:

650) this.width=650; "Src=" http://img.blog.csdn.net/20150416203257362?watermark/2/text/ ahr0cdovl2jsb2cuy3nkbi5uzxqvbhvvc2hlbmdraw0=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity/ Center "style=" border:0px;margin:0px;padding:10px 0px;vertical-align:middle; "/>

But don't panic! This means that the PHP file under the folder does not have permissions, then open the command line, go to the Htdocs folder under the Xampp folder, tap chmod 777 app, then the CD app, then tap chmod-r 777 *

You can recursively give permissions to all subdirectories and self-files under the App folder, then open the browser input Localhost:app see the following interface

650) this.width=650; "Src=" http://img.blog.csdn.net/20150416203724950?watermark/2/text/ ahr0cdovl2jsb2cuy3nkbi5uzxqvbhvvc2hlbmdraw0=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity/ Center "style=" border:0px;margin:0px;padding:10px 0px;vertical-align:middle; "/>

At this time the thinkphp environment has been built, but. /app/application directory permissions are still read-only, so modify the permissions of the directory:

sudo chmod-r 0777 /applications/xampp/xamppfiles/htdocs/app/application


Configuration scheme of xampp+thinkphp under Mac

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.