List Info

Thread: index.php running Content-Type: application/x-httpd-php




index.php running Content-Type: application/x-httpd-php
country flaguser name
United States
2007-06-25 05:04:17
Hello,

Using

vserver!default!extensions!php!handler = phpcgi

and run:

wget -S -O - http://localhost/index.php


I get:

--02:34:47--  http://localhost/index.php

           => `index.php'
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response...
  HTTP/1.0 200 OK
  Connection: Keep-Alive
  Keep-Alive: timeout=15
  Date: Mon, 25 Jun 2007 02:34:47 GMT+8
  Server: Cherokee/0.6.0b (Win32)
  Last-Modified: Mon, 25 Jun 2007 09:12:24 GMT
  Content-Type: application/x-httpd-php
  Content-Length: 1722
Length: 1,722 (1.7K) [application/x-httpd-php]

which is causes Firefox to want to download a .php file.

I tried adding

vserver!default!extensions!php!handler|interpreter =
C:/PHP/php-cgi.exe

but that didn't help.

Any ideas?

Thanks,

Ross
_______________________________________________
Cherokee mailing list
Cherokeecherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinf
o/cherokee

Re: index.php running Content-Type: application/x-httpd-php
country flaguser name
United States
2007-06-25 09:53:00
On 2007-06-25 04:04:17 -0600, Ross Smith II
<cherokeespamnetebb.com> said:

> Hello,
> 
> Using
> 
> vserver!default!extensions!php!handler = phpcgi
> 
> and run:
> 
> wget -S -O - http://localhost/index.php

> 
> I get:
> 
> --02:34:47--  http://localhost/index.php

>            => `index.php'
> Resolving localhost... 127.0.0.1
> Connecting to localhost|127.0.0.1|:80... connected.
> HTTP request sent, awaiting response...
>   HTTP/1.0 200 OK
>   Connection: Keep-Alive
>   Keep-Alive: timeout=15
>   Date: Mon, 25 Jun 2007 02:34:47 GMT+8
>   Server: Cherokee/0.6.0b (Win32)
>   Last-Modified: Mon, 25 Jun 2007 09:12:24 GMT
>   Content-Type: application/x-httpd-php
>   Content-Length: 1722
> Length: 1,722 (1.7K) [application/x-httpd-php]
> 
> which is causes Firefox to want to download a .php
file.
> 
> I tried adding
> 
> vserver!default!extensions!php!handler|interpreter =
C:/PHP/php-cgi.exe
> 
> but that didn't help.
> 
> Any ideas?
> 
> Thanks,
> 
> Ross

phpcgi support on windows needs some work.  I have been
meaning to play 
around with it to find a better solution, but not much time
lately.  At 
this point the only way you can do that is either FastCGI or
use 
CYGWIN, but don't expect performance ;)
-- 
Brian Rosner
http://www.brosner.com/bl
og


_______________________________________________
Cherokee mailing list
Cherokeecherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinf
o/cherokee

Re: index.php running Content-Type: application/x-httpd-php
country flaguser name
Spain
2007-06-25 12:06:57
Brian Rosner wrote, On 25/06/07 16:53:

 >> I tried adding
 >> vserver!default!extensions!php!handler|interpreter
= C:/PHP/php-cgi.exe
 >> but that didn't help.
 >> Any ideas?
 >
 > phpcgi support on windows needs some work.  I have
been meaning to
 > play around with it to find a better solution, but not
much time
 > lately.  At this point the only way you can do that is
either
 > FastCGI or use CYGWIN, but don't expect performance
;)

   I don't have any Windows box, so it's quite difficult for
me to test
   it out. However, when I wrote the phpcgi Windows port it
was working
   alright.

   Brian, if you have the chance to check it out, it'd be
great. 

-- 
Greetings, alo.
http://www.alobbs.com
_______________________________________________
Cherokee mailing list
Cherokeecherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinf
o/cherokee

Re: index.php running Content-Type: application/x-httpd-php
country flaguser name
United States
2007-06-25 14:49:33
Brian Rosner wrote On 6/25/2007 7:53 AM -0800:
> phpcgi support on windows needs some work.  I have been
meaning to play 
> around with it to find a better solution, but not much
time lately.  At 
> this point the only way you can do that is either
FastCGI or use 
> CYGWIN, but don't expect performance ;)

Brian,

I tried several different FastCGI configurations, but
haven't hit on one
that works yet.

The Windows version of php-cgi.exe doesn't appear to support
a -b option.

Can someone please provide the config file settings to use
PHP with 0.60b700?

Thanks,

Ross


_______________________________________________
Cherokee mailing list
Cherokeecherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinf
o/cherokee

Re: index.php running Content-Type: application/x-httpd-php
country flaguser name
United States
2007-06-25 14:49:33
Brian Rosner wrote On 6/25/2007 7:53 AM -0800:
> phpcgi support on windows needs some work.  I have been
meaning to play 
> around with it to find a better solution, but not much
time lately.  At 
> this point the only way you can do that is either
FastCGI or use 
> CYGWIN, but don't expect performance ;)

Brian,

I tried several different FastCGI configurations, but
haven't hit on one
that works yet.

The Windows version of php-cgi.exe doesn't appear to support
a -b option.

Can someone please provide the config file settings to use
PHP with 0.60b700?

Thanks,

Ross


_______________________________________________
Cherokee mailing list
Cherokeecherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinf
o/cherokee

Config setting for using PHP with 0.60b700?
country flaguser name
United States
2007-06-27 06:57:53
Hello,

I very interested in helping out with this project. I am
proficient in
porting *nix applications to the Cygwin and MinGW
environments (see smithii.com).

If someone can provide me with the config file settings to
use PHP with
0.60b700 (or HEAD), I'd be eternally grateful.

If not, then I guess I'll just have to figure it out from
the code .

I've tried:

vserver!default!extensions!php!handler = phpcgi
vserver!default!extensions!php!handler|interpreter =
C:/PHP/php-cgi.exe

and

vserver!default!extensions!php!handler = fcgi
vserver!default!extensions!php!handler!balancer =
round_robin
vserver!default!extensions!php!handler!balancer!type =
interpreter
vserver!default!extensions!php!handler!balancer!local1!env!P
HP_FCGI_CHILDREN = 5
vserver!default!extensions!php!handler!balancer!local1!inter
preter = C:/PHP/php-cgi.exe

but neither work.

Thanks,

Ross

Ross Smith II wrote On 6/25/2007 12:49 PM -0800:
> Brian Rosner wrote On 6/25/2007 7:53 AM -0800:
>> phpcgi support on windows needs some work.  I have
been meaning to play 
>> around with it to find a better solution, but not
much time lately.  At 
>> this point the only way you can do that is either
FastCGI or use 
>> CYGWIN, but don't expect performance ;)
> 
> Brian,
> 
> I tried several different FastCGI configurations, but
haven't hit on one
> that works yet.
> 
> The Windows version of php-cgi.exe doesn't appear to
support a -b option.
> 
> Can someone please provide the config file settings to
use PHP with 0.60b700?
> 
> Thanks,
> 
> Ross
> 
> 
> _______________________________________________
> Cherokee mailing list
> Cherokeecherokee-project.com
> http://cherokee-project.com/cgi-bin/mailman/listinf
o/cherokee
> 
_______________________________________________
Cherokee mailing list
Cherokeecherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinf
o/cherokee

Config setting for using PHP with 0.60b700?
country flaguser name
United States
2007-06-27 06:57:53
Hello,

I very interested in helping out with this project. I am
proficient in
porting *nix applications to the Cygwin and MinGW
environments (see smithii.com).

If someone can provide me with the config file settings to
use PHP with
0.60b700 (or HEAD), I'd be eternally grateful.

If not, then I guess I'll just have to figure it out from
the code .

I've tried:

vserver!default!extensions!php!handler = phpcgi
vserver!default!extensions!php!handler|interpreter =
C:/PHP/php-cgi.exe

and

vserver!default!extensions!php!handler = fcgi
vserver!default!extensions!php!handler!balancer =
round_robin
vserver!default!extensions!php!handler!balancer!type =
interpreter
vserver!default!extensions!php!handler!balancer!local1!env!P
HP_FCGI_CHILDREN = 5
vserver!default!extensions!php!handler!balancer!local1!inter
preter = C:/PHP/php-cgi.exe

but neither work.

Thanks,

Ross

Ross Smith II wrote On 6/25/2007 12:49 PM -0800:
> Brian Rosner wrote On 6/25/2007 7:53 AM -0800:
>> phpcgi support on windows needs some work.  I have
been meaning to play 
>> around with it to find a better solution, but not
much time lately.  At 
>> this point the only way you can do that is either
FastCGI or use 
>> CYGWIN, but don't expect performance ;)
> 
> Brian,
> 
> I tried several different FastCGI configurations, but
haven't hit on one
> that works yet.
> 
> The Windows version of php-cgi.exe doesn't appear to
support a -b option.
> 
> Can someone please provide the config file settings to
use PHP with 0.60b700?
> 
> Thanks,
> 
> Ross
> 
> 
> _______________________________________________
> Cherokee mailing list
> Cherokeecherokee-project.com
> http://cherokee-project.com/cgi-bin/mailman/listinf
o/cherokee
> 
_______________________________________________
Cherokee mailing list
Cherokeecherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinf
o/cherokee

Re: Config setting for using PHP with 0.60b700?
country flaguser name
Spain
2007-06-27 08:11:03
Ross Smith II wrote:
> Hello,
>
> I very interested in helping out with this project. I
am proficient in
> porting *nix applications to the Cygwin and MinGW
environments (see smithii.com).
>
> If someone can provide me with the config file settings
to use PHP with
> 0.60b700 (or HEAD), I'd be eternally grateful.
>
> If not, then I guess I'll just have to figure it out
from the code .
>   

Hi,

    Running the quality assurance scripts ( qa/run-tests.py
) with the 
"-c" option will leave under /tmp some helpful
examples..
    Btw, be careful with php5, which needs Env
PHP_FCGI_MAX_REQUESTS "0" 
(php<5 is "-1")

    Greetings,
_______________________________________________
Cherokee mailing list
Cherokeecherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinf
o/cherokee

Re: Config setting for using PHP with 0.60b700?
country flaguser name
Spain
2007-06-27 08:11:03
Ross Smith II wrote:
> Hello,
>
> I very interested in helping out with this project. I
am proficient in
> porting *nix applications to the Cygwin and MinGW
environments (see smithii.com).
>
> If someone can provide me with the config file settings
to use PHP with
> 0.60b700 (or HEAD), I'd be eternally grateful.
>
> If not, then I guess I'll just have to figure it out
from the code .
>   

Hi,

    Running the quality assurance scripts ( qa/run-tests.py
) with the 
"-c" option will leave under /tmp some helpful
examples..
    Btw, be careful with php5, which needs Env
PHP_FCGI_MAX_REQUESTS "0" 
(php<5 is "-1")

    Greetings,
_______________________________________________
Cherokee mailing list
Cherokeecherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinf
o/cherokee

Re: Config setting for using PHP with 0.60b700?
country flaguser name
United States
2007-06-27 12:36:41
On 2007-06-27 05:57:53 -0600, Ross Smith II
<cherokeespamnetebb.com> said:

> Hello,
> 
> I very interested in helping out with this project. I
am proficient in
> porting *nix applications to the Cygwin and MinGW
environments (see 
> smithii.com).
> 
> If someone can provide me with the config file settings
to use PHP with
> 0.60b700 (or HEAD), I'd be eternally grateful.
> 
> If not, then I guess I'll just have to figure it out
from the code .
> 
> I've tried:
> 
> vserver!default!extensions!php!handler = phpcgi
> vserver!default!extensions!php!handler|interpreter =
C:/PHP/php-cgi.exe
> 
> and
> 
> vserver!default!extensions!php!handler = fcgi
> vserver!default!extensions!php!handler!balancer =
round_robin
> vserver!default!extensions!php!handler!balancer!type =
interpreter
>
vserver!default!extensions!php!handler!balancer!local1!env!P
HP_FCGI_CHILDREN 
> = 5
>
vserver!default!extensions!php!handler!balancer!local1!inter
preter = 
> C:/PHP/php-cgi.exe
> 
> but neither work.
> 
> Thanks,
> 
> Ross
> 
> Ross Smith II wrote On 6/25/2007 12:49 PM -0800:
>> Brian Rosner wrote On 6/25/2007 7:53 AM -0800:
>>> phpcgi support on windows needs some work.  I
have been meaning to play
>>> around with it to find a better solution, but
not much time lately.  At
>>> this point the only way you can do that is
either FastCGI or use
>>> CYGWIN, but don't expect performance ;)
>> 
>> Brian,
>> 
>> I tried several different FastCGI configurations,
but haven't hit on one
>> that works yet.
>> 
>> The Windows version of php-cgi.exe doesn't appear
to support a -b option.
>> 
>> Can someone please provide the config file settings
to use PHP with 0.60b700?
>> 
>> Thanks,
>> 
>> Ross
>> 
>> 
>> _______________________________________________
>> Cherokee mailing list
>> Cherokeecherokee-project.com
>> http://cherokee-project.com/cgi-bin/mailman/listinf
o/cherokee

I was able to make phpcgi to work on Windows.  My config
was:

vserver!default!extensions!php!handler = phpcgi

vserver!default!extensions!php!handler!interpreter =
C:phpphp-cgi.exe

vserver!default!extensions!php!priority = 99999

Maybe its because you have an l between handler and
interpreter or the 
use of forwardslashes.  However, I do know that the Windows
fastcgi 
does not work unless you start the server your self first. 
I am 
working on a patch for that now.

-- 
Brian Rosner
http://www.brosner.com/bl
og


_______________________________________________
Cherokee mailing list
Cherokeecherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinf
o/cherokee

[1-10] [11-13]

about | contact  Other archives ( Real Estate discussion Medical topics )