Re: PHP cgi

From: Date: Mon, 03 Jan 2005 12:26:08 +0000
Subject: Re: PHP cgi
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-25212@lists.php.net to get a copy of this message
Yes remove all the lines that relate to running PHP as a CGI u can not run both at the same time Sorry forgot to say this before did not think about it Dean "The Insane Guy" Hayes <-- I design and i redesign but still i never designed true beauty like you --> ~~~ Call me Insane call me Crazy but there is one thing i know i am That is someone that shall reach peoples hearts with words ~~~ ~~ PHP seems easy enough but what about this ASP now that looks hard ~~ From: blulagoon <blulagoon@hotmail.com> To: php-windows@lists.php.net Subject: Re: [PHP-WIN] PHP cgi Date: Mon, 03 Jan 2005 12:19:54 +0000 I've added the following two lines to my httpd.conf file at the end of the LoadModule section: LoadModule php4_module "C:/PHP/sapi/php4apache2.dll" PHPiniDIR "C:/WINDOWS" I've got the add type line in the file already. End result is that Apache won't start automatically, and if I try and start it manually it says 'Operation Failed' Is there any other changes I need to make to the httpd.conf file, like changing something to do with it running as a cgi, as I seem to have created a conflict, but if I '#' the two lines out it all starts up fine. Looking at the file there is a cgi module that is in the LoadModule section, should I comment that out ? Further help would be very much appreciated. Dean Hayes wrote:
U can find this in the install.txt file under the php root dir I have always used php as a module never CGI an have never had problems under 98SE or XP Pro --------------------------------------------------------------------------------------------------------------------
Installing as an Apache module You need to insert these two lines to your Apache httpd.conf configuration file to set up the PHP module for Apache 2.0: Example 2-6. PHP and Apache 2.0 as Module # For PHP 4 do something like this: LoadModule php4_module "c:/php/sapi/php4apache2.dll" AddType application/x-httpd-php .php # For PHP 5 do something like this: LoadModule php5_module "c:/php/php5apache2.dll" AddType application/x-httpd-php .php # configure the path to php.ini PHPIniDir "C:/php"
     Note: Remember to substitute the c:/php/ for your actual path to
     PHP in the above examples. Take care to use either php4apache2.dll
     or php5apache2.dll in your LoadModule directive and not
     php4apache.dll or php5apache.dll as the latter ones are designed to
     run with Apache 1.3.x.
Warning Don't mix up your installation with DLL files from different PHP versions. You have the only choice to use the DLL's and extensions that ship with your downloaded PHP version. --------------------------------------------------------------------------------------------------------------------
Dean "The Insane Guy" Hayes <-- I design and i redesign but still i never designed true beauty like you
--> ~~~ Call me Insane call me Crazy but there is one thing i know i am That is
someone that shall reach peoples hearts with words ~~~ ~~ PHP seems easy enough but what about this ASP now that looks hard ~~ From: blulagoon <blulagoon@hotmail.com> To: php-windows@lists.php.net Subject: [PHP-WIN] PHP cgi Date: Mon, 03 Jan 2005 11:01:40 +0000 I'm looking at an open source content management system which is PHP based, but I'm having problems installing it. It has been suggested, that the problem is solved by "switching PHP from the cgi mode to Apache2 module" but I have no idea how to do this or what the ramifications might be for all the other scripts I run. I've tried searching through the manual at php.net for cgi, but haven't turned anything useful up. I guess it is a setting somewhere, but I couldn't find anything within my php.ini file. I'm running PHP 4.3.10 and Apache2 on a Windows XP box. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.windows (#25212) next »