PHP as CGI (Linux)
| From: | J. Heffner | Date: | Thu, 28 Dec 2000 23:26:09 +0000 |
| Subject: | PHP as CGI (Linux) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-32173@lists.php.net to get a copy of this message | ||
I know from a little research that this topic has been discussed often, but I've still come across a situation that I haven't yet been able to figure out.
I'm working with an ISP that has PHP available ONLY as a CGI, and the binary is installed in each virtual host's cgi-bin. Even so, I can run everything I've done with a module-based install, without changing a thing. In other words, I don't have to insert the #!/usr/local/bin/php (or wherever it is) at the beginning of each file, I don't have to change the .php3 extension to .cgi, I don't need to have the php files in their own directory, and I can still use the "on-the-fly" (<? ?>) stuff without any problems. The problem is that I'd like to mirror this environment, but I can't figure out how they have their apache configuration file set up. I like the CGI version better (despite the purported performance hit), because it allows using php with suexec...now if only I could figure out how to do it...
Any suggestions will be appreciated.
Regards,
Jim Heffner