mod auth external with PHP

Alles, was PHP betrifft, kann hier besprochen werden.

mod auth external with PHP

Postby kptn3m0 » 06. April 2011 16:01


i am trying to use mod_authnz_external for my subversion on apache 2.2.11 with an php authentication script.

Iam trying to build nearly the same as the one here

But i dont get this far:

The logfiles say:

[Wed Apr 06 16:19:46 2011] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8k DAV/2 PHP/5.3.6 SVN/1.6.2 configured -- resuming normal operations
exec of '/app/apache2/htdocs/phptest.php' failed: (13) Permission denied

(tryed to locate the phptest.php in other directories like /sbin didnt help, too.

My httpd.conf is like

Code: Select all

<Filesmatch  \.php$>
        SetHandler application/x-httpd-php

[I]// also tried with[/I] AddType application/x-httpd-php .php .php3 .htm .html


AddExternalAuth auth /app/apache2/htdocs/phptest.php
SetExternalAuthMethod auth pipe

<Location /svn/TEST>
          DAV svn
          SVNPath /var/app/subversion/TEST
        AuthType Basic
        AuthName "Subversion Auth"
        AuthBasicProvider external
        AuthExternal auth
        require valid-user
       SSLOptions +StrictRequire

My external PHP Auth script is reduced to the min:

Code: Select all


exit (0);


If i try to implement a perl script as external auth giving an exit 0 this works.
Script is executeable 777.

Can somebody help?
Posts: 2
Joined: 06. April 2011 15:56

Re: mod auth external with PHP

Postby kptn3m0 » 08. April 2011 08:29

Got it shebang path was false set... omg
Posts: 2
Joined: 06. April 2011 15:56

Return to PHP

Who is online

Users browsing this forum: No registered users and 2 guests