G
G
German Zvonchuk2014-11-19 14:03:22
PHP
German Zvonchuk, 2014-11-19 14:03:22

Why "Internal Server Error 500" when executing a file downloaded from Github?

Good day.
Today I ran into a very interesting problem.
I went to the server as the user inside, performed git pull origin master
after that I had problems with one script.
The owner and rights of the file are as follows: inside:inside rw-rw-r--
By typing, I found out that the problem is in chmod, if you remove GROUP: WRITE, that is, from 0664 to 0644, then the script works fine.
Could you explain the problem to me?
Is it normal that the script does not want to run under the rights of 0664?
And is it normal that the scripts downloaded from github

[Wed Nov 19 11:51:44 2014] [error] [client 69.185.65.78] SoftException in Application.cpp:256: File "/home/inside/public_html/modules/contact/client.php" is writeable by group
[Wed Nov 19 11:51:44 2014] [error] [client 69.185.65.78] Premature end of script headers: client.php
[Wed Nov 19 11:51:44 2014] [error] [client 69.185.65.78] File does not exist: /home/inside/public_html/500.shtml

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2014-11-19
@butteff

If it works in 644 but doesn't work with 664, then the user running the file is not in a group that has been granted access. Are you sure that the web server (it's the one accessing the file, right?) belongs to the correct group? On whose behalf is the web server running? www-data?

_
_ _, 2014-11-19
@AMar4enko

Check for suphp extension for php. It looks like it controls the permissions that are given to the php files so they don't get too open.

A
Andrey B., 2017-02-16
@evgenybuckharev

Top through shadows, right through pseudo-elements https://jsfiddle.net/efmj07bq/
Through shadows only if the background is uniform.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question