2
So, I am currently using the Ubuntu 15.04 operating system to develop my daily activities. I have a PHP web project where I use the Cakephp 3 Framework and version my project in Bitbucket.
My problem is this, when I clone my project directly from Bitbucket to make it accessible locally and run the command $ sudo composer install
in the directory where my project is located for it to install environment variables, my project is inaccessible on the web due to lack of permissions in some directories located inside its folder [Error presented by Cakephp stating that it is not possible to access some files due to lack of permission]. By granting read and write permissions to my project folder and accessing it again via the web, some pages are not redirected correctly [Cakephp error reporting that Controller "X" was not found], however I have not changed anything but permissions.
When executing the command $ git status
in the directory of my project I realize that there are numerous modifications in classes and configuration files of the same, and I didn’t change anything.
TESTS CARRIED OUT:
- Clone project, execute command
$ git status
=> is not modified. - Clone project, execute command
$ sudo composer install
and then after executing the command$ git status
=> is not modified. - Clone project, execute command
$ sudo composer install
and then after executing the command$ git status
, grant permissions to the project directory => displays numerous modifications. - Clone project, grant permissions to the project directory and run the command
$ git status
=> has numerous modifications.
How to proceed with this situation?
Managed to solve your problem?
– durtto
Do not clone or run Poser install using sudo. The chance of permission problems is quite large.
– gmsantos