Trying to run php files which have been created by svn hook with owner nobody, suphp enabled

StackOverflow https://stackoverflow.com/questions/4518653

  •  12-10-2019
  •  | 
  •  

Pergunta

I have created a svn repository hook which will update a working copy on the server (main dev version) depending on directory. This is now working properly, but only if the working copy is owned by nobody. Problem with this is that with suphp enabled php files owned by nobody cant be executed.

I dont know how to get round this issue as the subversion hook will always run under the same user - nobody, but I need the hook to work as well as the files to be executable.

Foi útil?

Solução

It's hard to tell what the best solution is, because we do not know your security needs. In my opinion, suPHP is not necessary in a development environment. So switching off suPHP might be acceptable.

You could tell suPHP to execute PHP scripts under a different user using the suPHP_UserGroup directive (see suPHP Apache module configuration for details).

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top