Apache Question

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
waskelton4
Forum Contributor
Posts: 132
Joined: Mon Sep 09, 2002 6:42 pm

Apache Question

Post 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
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post 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?
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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?
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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.
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post 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.
Post Reply