Permissions for lnmp development in ubuntu

Source: Internet
Author: User
Go to php development under ubuntu. previously developed under windowns, set the project directory to d: pathtonginxhtdocwww and edit it in the editor. Perform the same operation in ubuntu. set usrlocalnginxhtdocwww to the project directory and edit it in phpstorm, but the prompt is displayed... go to php development under ubuntu. previously developed under windowns, set the project directory to d: \ pathto \ nginx \ htdoc \ www and edit it in the editor.
Perform the same operation in ubuntu. set/usr/local/nginx/htdoc/www to the project directory and edit it in phpstorm. However, the system prompts that you do not have the permission, I know that the current user is not authorized to modify the files in the root folder.
How do you set up development in ubuntu? Is chmod or chown required for each project for the current user?

Reply content:

Go to php development under ubuntu. previously developed under windowns, set the project directory to d: \ pathto \ nginx \ htdoc \ www and edit it in the editor.
Perform the same operation in ubuntu. set/usr/local/nginx/htdoc/www to the project directory and edit it in phpstorm. However, the system prompts that you do not have the permission, I know that the current user is not authorized to modify the files in the root folder.
How do you set up development in ubuntu? Is chmod or chown required for each project for the current user?

I have encountered your problem in the same development environment as you. if the root identity is used to install php, the solution is to delete the original installation, use the user identity to reinstall.
By the way, almost all things can be done by using the user identity. if you need the root permission, add sudo to the front and try not to log on to the root identity, otherwise, it will be difficult to change the permissions involved later.

Required by the Ubuntu ServerDefaultYeswww-data:www-data
PHPStorm is your current user by default, suchbruce:bruce(Bruce is my name)
You can modify the execution permissions of Nginx and PHP-fpm to your current user.
Of course, I do not recommend that you do this. I hope that you will keep your permissions unchanged.ln -sCreate a directory to connect to your server.

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.