Re:PHP as CGI (Linux)

From: Date: Fri, 29 Dec 2000 01:57:33 +0000
Subject: Re:PHP as CGI (Linux)
Groups: php.general 
Request: Send a blank email to php-general+get-32250@lists.php.net to get a copy of this message
Yes, that's what I meant, but I must have missed the section in the Apache manual, "Configuring the Apache Server to Run PHP as a CGI with suexec in a Virtual Host Environment." No offense, but I was hoping for a response that could point me in a direction other than the painfully obvious. Thanks anyway. Jim Heffner
How do you mean mirror this environment? I take it you mean duplicate the setup on another server or your own machine. If the original is on Linux and you want to do the same on your own Linux box then take a look at the docs. It should be as simple as putting the parser in the cgi-bin directory and modifying Apache to point to the handler there. ----- Original Message ----- From: J. Heffner <jheffner@earthlink.net> To: <php-general@lists.php.net> Sent: Thursday, December 28, 2000 11:26 PM Subject: [PHP] PHP as CGI (Linux)
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.general (#32250) next »