php-windows Digest 2 Aug 2003 17:05:48 -0000 Issue 1850

Topics (messages 20985 through 20987):

Re: Q on PHP 4.3.2 & Apache 2.0.43
        20985 by: jsWalter

IIS6.0 & CGI PHP header
        20986 by: Sadun Sevin

Q on parts of PHP?Apache setup...
        20987 by: jsWalter

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
"Sek-Mun Wong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

> Well, it works for me under 1.3.28,

that might be the difference here. ??


> so let me walk through your apache config.
>
> I'm sure there are issues with the script to say the least,

refering to my script?

   <?php
      require("Date.php");
   ?>

or the Date package as a whole?


> but just one more try with apache2:
>
> Your httpd.conf:
> 1) remove these lines
>     LoadFile "/etc/php/php4ts.dll"
>     Action application/x-httpd-php "/etc/php/php.exe"
>     LoadModule php4_module "/etc/php/sapi/php4apache2.dll"

OK, these are now commented out.


> 2) add these lines:
>     LoadModule php4_module "c:/php/sapi/php4apache2.dll"
>        (or wherever your sapi is)
>     AddType application/x-httpd-php .php .phtml

OK, I added the volume letter to my php4apache2.dll line

     LoadModule php4_module "G:/etc/php/sapi/php4apache2.dll"


> 3) copy php4ts.dll to C:\WINDOWS\SYSTEM32

OK, but why?


> 3a) do a "apache -t" test your conf

  Apache -w -d "G:\etc\httpd" -f "G:\etc\httpd\conf\httpd.conf" -D SSL -t
  Syntax OK


> 4) restart apache

done.


> give that a go and see what happens

crash and burn!

No difference.  :/

Well, thanks for the thoughts and your effort.

Walter




--- End Message ---
--- Begin Message ---
CODE IS:
--------------
<?
...
Header("Location: Http://".$GLOBALS["HTTP_HOST"]."/main.php?";);
exit;

?>


after header() it redirects but i faced with the error of:
---------------------------------------------------------------------------
CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers.


PHP.ini:
------------
cgi.force_redirect = 0
cgi.redirect_status_env = ENV_VAR_NAME
fastcgi.impersonate = 1
cgi.rfc2616_headers = 1

thanks for help







--- End Message ---
--- Begin Message ---
These are the config commands I have for PHP under Apache...

   LoadFile "/etc/php/php4ts.dll"
   Action application/x-httpd-php "/etc/php/php.exe"

   LoadFile "/etc/php/gnu_gettext.dll"

   LoadModule php4_module "/etc/php/sapi/php4apache2.dll"

   ScriptAlias /php/ "/etc/php/"

   AddType application/x-httpd-php .php .phtml
   AddType application/x-httpd-php-source .phps

   <Files *.php>
      SetOutputFilter PHP
      SetInputFilter PHP
      LimitRequestBody 524288
   </Files>

I understand that PHP can run in 2 different modes...

  - CGI
  - SAPI

What I don't see is how to configure Apache to do one or the other.

Would some kind soul please take the above conf lines (or add/remove as you
saee fit) and give me series for CGI and the series for SAPI.

I've looked for this info and just haven't found it (oh, its out there, I'm
just looking in the right places).

Thanks

Walter




--- End Message ---

Reply via email to