Build thinkphp development environment in apache-ubuntu

Source: Internet
Author: User
I am preparing to build the thinkphp development environment in ubuntu. Now LAMP is installed normally, and thinkphp and index are also downloaded. php is also placed under the website file. After accessing localhost, index. php generates framework files, but all these files belong to & quot; www-data & quot ,...

I am preparing to build the thinkphp development environment in ubuntu. Now LAMP is installed normally, and thinkphp and index are also downloaded. php is also placed under the website file. After accessing localhost, index. php generates framework files, but these files belong to "www-data" and do not have the edit permission. Please kindly advise.

Reply content:

I am preparing to build the thinkphp development environment in ubuntu. Now LAMP is installed normally, and thinkphp and index are also downloaded. php is also placed under the website file. After accessing localhost, index. php generates framework files, but these files belong to "www-data" and do not have the edit permission. Please kindly advise.

I used the chown-R username. root/webdir command to solve the problem temporarily.

Try switching the root user?

You shouldn't directly edit the code on the server. If you really need it, run sudo.

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.