logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Fcgid kills authn authz permission for php ?
Author
dreuzel



Joined: 30 Jan 2006
Posts: 16

PostPosted: Tue 09 Apr '13 19:19    Post subject: Fcgid kills authn authz permission for php ? Reply with quote

as i switch beween mod_php5 to fcgid
I completely lose authentication
Code:

Forbidden

You don't have permission to access /secure/php.php on this server.


For speed reasons I prefer fcsid to mod_PHP like all others.


but in this condition I lose all APache authorisation using PHP.
(not even a faulty php in debug mode can pass (not a single instruction PHP executed)
my config is as follows:


authorisation authn/authz identical
php code identical (aware I might need to change a few things)
no apache errors at all
Code:


LoadModule fcgid_module modules/mod_fcgid.so

 FcgidInitialEnv PHPRC "c:\php"
 FcgidWrapper "c:\php\php-cgi.exe" .php
 # FcgidAuthorizer "C:\internet\loggerin.php"
 FcgidAuthorizerAuthoritative on/off    no difference
 FcgidPassHeader Authorization
<Files ~ "\.php$>"
     AddHandler fcgid-script .php
</Files>


as little is explained about fcgid i feel like driving blind.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Wed 10 Apr '13 10:25    Post subject: Reply with quote

Options ExecCGI is missing

Code:
LoadModule fcgid_module modules/mod_fcgid.so

 FcgidInitialEnv PHPRC "c:\php"
 FcgidWrapper "c:\php\php-cgi.exe" .php
 # FcgidAuthorizer "C:\internet\loggerin.php"
 FcgidAuthorizerAuthoritative on/off    no difference
 FcgidPassHeader Authorization
<Files ~ "\.php$>"
     AddHandler fcgid-script .php
     Options ExecCGI
</Files>
Back to top
dreuzel



Joined: 30 Jan 2006
Posts: 16

PostPosted: Wed 10 Apr '13 12:30    Post subject: Reply with quote

used ExecCgi in wrong location
error message disapeard not yet functioning
c


At least the blocking factor is gon, ready to advance
Yout the best, it works !!!!
Back to top


Reply to topic   Topic: Fcgid kills authn authz permission for php ? View previous topic :: View next topic
Post new topic   Forum Index -> Apache