Re: php4 as a module AND a cgi

From: Date: Mon, 26 Feb 2001 10:12:28 +0000
Subject: Re: php4 as a module AND a cgi
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-41660@lists.php.net to get a copy of this message
colin olkowski wrote: > > hi all, > > my question is this, how would one install PHP4 as a module and as a cgi? > > somewhere in the install notes for php4 (redhat) the docs clearly say do not > install both, yet my old hosting company was able to do it. > > btw, i just moved from the world of virtual hosting on a FreeBSD box to my > own RedHat server. > > is this a linux vs. freebsd issue? No. I've had php3 running as both, anyways... It does require some work on the httpd.conf file. You have to set the directives properly for the directory containing the php dependant upon wether you want cgi to handle it or php to handle it. I have to ask, though, why would you want to run it as a cgi? Its slower as cgi and runs more security risks. I'd only run it as a cgi if that was my only choice. It works very well as a DSO, I believe you can only use the Zend Optimizer if its built as a DSO (I could be wrong on that)- I can't think of why you want to. > > colin olkowski - frodo@interport.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 -- -=-=-=-=-=-=-=-=-=-=-=-=- Michael A. Peters Abriasoft Senior Developer

« previous php.general (#41660) next »