How to resolve suexec rule violation causing 500 error using git -http-backend?

I am trying to get git-http-backend working on remote vps with no luck. I adjusted httpd.conf in a manner similar to this question , but as soon as I add the ScriptAlias ​​directive, an error will occur.

Apache Error Log:

 suexec policy violation: see suexec log for more details
 Premature end of script headers: git-http-backend

Suexec Magazine

 error: target uid/gid (503/500) mismatch with directory (0/0) or program (0/0) or trusted user (0/10)

Can someone comment on how suexec usually solves problems?

EDIT

The main problem was that the web server was not allowed to run cgi scripts.

The suexec configuration documentation is currently outside of me. At the moment, I decided to disable it, which allows the web server to run these scripts. Now I can successfully click on the repo. I found this article helpful.

+5
3

moinmoin. , ( ):

[2014-09-18 17:17:18]: uid: (1009/testsite) gid: (1006/testsite) cmd: moin.cgi
[2014-09-18 17:17:18]: target uid/gid (1009/1006) mismatch with directory (0/0) or program (0/0)

, - testsite: testsite - (moin.cgi).

/ , , , , , (0/0 root/root).

chown :

chown -R testsite:testsite </path/to/directory-or-binary>
+4

, , ...

7 , , 3 (godaddy). ...

SUEXEC, Apache ( ) . , , , , ...

+1

I use the directory / var / www / for my user in the suexec directive and it works ..!

-1
source

All Articles