简体   繁体   English

在Ubuntu上的Eclipse中进行PHP开发

[英]php development in eclipse on ubuntu

I have created a PHP project through eclipse. 我已经通过eclipse创建了一个PHP项目。 I put the project into /var/www/ directory. 我将项目放入/var/www/目录。 I couldn't open the project through Eclipse. 我无法通过Eclipse打开该项目。 It says : 它说 :

couldn't read the contents of the file. Permission denied.

Check the permissions/owner of the project folder. 检查项目文件夹的权限/所有者。 You can do this: 你可以这样做:

  1. Change the permission by CHMOD 通过CHMOD更改权限
  2. Change the owner to the user of your system by CHOWN 通过CHOWN将所有者更改为系统的用户

If you are in the development mode and the project is not public you can give all the permissions to all the users, so that your IDE can read and write your source codes: 如果您处于开发模式并且该项目不是公共项目,则可以将所有权限授予所有用户,以便您的IDE可以读写您的源代码:

chmod 777 -R /var/www/project_folder

or you can run eclipse as super user: 或者您可以以超级用户身份运行eclipse:

sudo ./eclipse

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM