PHP Module or CGI

Status
Not open for further replies.

Micro

Retired staff <i> (11-12-2008)</I>
Messages
1,301
Reaction score
0
Points
36
Can i verify that php is installed as a module or cgi? If it is CGI can it be installed as a module as i believe the $_SERVER['PHP_AUTH_USER'] is only available when it is a module under apache.

Thanks
 

bigguy

Retired
Messages
10,984
Reaction score
10
Points
38
Could you not write an .htaccess file that overwrites what the server says, I think you can, but I think the server is running as a module. Don't quote me on that though.
 

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
Nope php is running as CGI
 

bigguy

Retired
Messages
10,984
Reaction score
10
Points
38
Ok, I wasn't sure it gets changed alot, lol. Anywho I think the htaccess way can do this for you.
 

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
No it has to be running as a module

phpinfo

Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 PHP-CGI/0.1b

As you see PHP isnt listed, but PHP-CGI is so it would be a CGI, but as a module it wold look like this

Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 PHP/5.1.6
 

bigguy

Retired
Messages
10,984
Reaction score
10
Points
38
Thats what I was talkin about but I thought it was only an .htaccess code, theres a little more to it than I thought.
 

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
Ok gotcha thanks...sry about confusion
 
Status
Not open for further replies.
Top