Page 1 of 1

Apache Question

Posted: Wed Mar 03, 2004 9:27 am
by waskelton4
Hey group,

got an apache question.

I'm running apache in the non-cgi mode currently but i've found a script i want to use that has to have it running in cgi mode in order to work.. is there anyway i can "trick" the software or run it in both modes? (not too confident i can) or even run a seperate instance of it in cgi mode?

any help is greatly apprecitated..

Thanks
Will

Posted: Fri Mar 05, 2004 1:15 am
by Pyrite
Just curious, why would you need to run it in CGI mode? I assume you're running Apache as a module. There might be some stuff in php.ini about cgi compatibility mode, i don't know. Does the script want the apache server in cgi mode or php?

Posted: Fri Mar 05, 2004 4:17 am
by timvw
you can have them both working under apache... I presume you need the cgi to work because it will run as a different user?

Posted: Fri Mar 05, 2004 4:19 am
by timvw
The only difference that a php script would have when used with /usr/bin/php (or php.exe) is that the first line would contain a she-bang #!/usr/bin/php line.

Posted: Fri Mar 05, 2004 4:22 am
by Pyrite
So I guess he would have to compile PHP twice. Once for an apache module, and another as a cgi module. Never tried it, but it may work.