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 ServerDefault
Yeswww-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 -s
Create a directory to connect to your server.