So, I'm currently using the Ubuntu 15.04 operating system to develop my daily activities. I have a web project in PHP where I use the CakePHP 3 Framework and version my project on BitBucket.
My problem is this, when I clone my project directly from BitBucket so that it gets accessible locally and I squeeze the$ sudo composer install
command into the directory where my project is located to install the environment variables, my project is inaccessible in [CakePHP error reported that some files can not be accessed because of lack of permission]. When granting the read and write permissions to the folder of my project and access it again via web, some pages are not redirected correctly [Error presented by CakePHP informing that Controller "X" was not found], but did not change anything besides permissions.
When I run the command $ git status
in the directory of my project I realize that there are many changes in classes and configuration files of the same, and I have not changed anything.
TESTED:
- Clone project, execute command
$ git status
= > no changes are made. - Clone the project, execute the command
$ sudo composer install
and soon after executing the command$ git status
= > no changes are made. - Clone project, run the
$ sudo composer install
command, and right after executing the$ git status
command, grant permissions to the project directory = > has many changes. - Clone project, grant permissions to the project directory, and execute the command
$ git status
= > has many changes.
How to proceed with this situation?