Git pull from github only php files giving 500 internal server error -


I have installed GIT on my VPS and I am able to clone a github repo in my web directory (I did it as a user).

, but not as root but I tried with root and with the same problem before). But when I go to the url, I give 500 internal server errors, but only in php files, if I manually upload files, then it works fine. I have read that this may be a permissible issue, but I do not understand how to solve it. Clone folders and files are visible as 775 and 664. I am playing Santos on my VPS.

This is the problem for anyone

Once I did this, So the permission issue is raised and I do not get 500 errors.

Set up a default UIS for the process

You can set up UMAS in the / etc / bashrc or / etc / profile file for all users. . By default, most Linux disks set it at 0022 (022) or 0002 (002). Enter the open / etc / profile or ~ / .bashrc file:

  # vi / etc / profile  

or

 < Code> $ vi ~ / .bashrc  

To add a new Umask / add the following line: umask 022

Save the file and close the next login The changes will be effective after all Unix users will have ~ / .profile (corn / bell shell) ~ / .cshrc file (C shells), ~ / .bash_profile (Bash shell) or ~ / .login in their / etc / profile file. The system overrides the umask default And can also define the user environment file (login).


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -