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
http://www.robpeck.com/2010/02/mysql-based-apache-http-authentication-for-trac-and-subversion
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
</Filesmatch>
[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
SSLRequireSSL
SSLOptions +StrictRequire
</Location>
My external PHP Auth script is reduced to the min:
- Code: Select all
#!/app/php5
<?php
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?