benluteijn / cherokee

Automatically exported from code.google.com/p/cherokee
0 stars 1 forks source link

download index.php instead of show me the view #221

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I set up a php application with Cherokee (modified dotptoject) with
mysql data base (a big and not very optimice one). 
2. I go to list view which has lots of queries to the database which
usually takes very long time to show on Apache. 

What is the expected output? What do you see instead?
The expected output is the list view of the application, but instead of
that I got a download dialog from Firefox for index.php.
On Opera I got a "server not found" (or similar) message error. But, just
for this view, the rest are fine.

The same application with the same code and the same database on the same
machine, but with Apache takes long time to render the html, but after a
while it is showed fine.

What version of the product are you using? On what operating system?
I'm using Cherokee from trunk (r2384).
OS: Ubuntu 8.04.1 (Hardy)

Please provide any additional information below.
php: php5-cgi (from Ubuntu package)
PHP 5.2.4-2ubuntu5.3 with Suhosin-Patch 0.9.6.2 (cgi-fcgi) (built: Jul 23
2008 06:38:29)

Configure options:
Install prefix        /usr/local
cflags                -g -O2
trace                 no
sendfile()            yes
IPv6 support          yes
Polling method 1      epoll
Polling method 2      poll
Polling method 3      select
Threading support     yes
TLS support           gnutls
PCRE library          yes
Compatible PAM        yes
LDAP                  yes
MySQL                 yes
GeoIP                 no
crypt support         multithread

I attach the cherokee.conf just in case it would be useful.

Original issue reported on code.google.com by juanje.o...@gmail.com on 14 Nov 2008 at 10:38

Attachments:

GoogleCodeExporter commented 9 years ago
Could you please try increasing the timeout? The option is under the "General" 
tab. It's 15 seconds by default, 
I'm not sure what would be the most convenient timeout on this case though 
(30s? 60s?) :-?

Original comment by alobbs on 14 Nov 2008 at 11:29

GoogleCodeExporter commented 9 years ago
I didn't before, but now I did, even with 100s and still the same :-(

Original comment by juanje.o...@gmail.com on 14 Nov 2008 at 11:37

GoogleCodeExporter commented 9 years ago
Juanje, I need a way to reproduce this issue. I haven't managed to it get 
server to fail at this end.

Original comment by alobbs on 1 Dec 2008 at 2:01

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/cherokee/issues/detail?id=213 ??

Original comment by ste...@konink.de on 1 Dec 2008 at 2:24

GoogleCodeExporter commented 9 years ago
Stefan; it might be.. although he raised the timeout up to 1,5min and he got 
the same error.

Original comment by alobbs on 1 Dec 2008 at 2:34

GoogleCodeExporter commented 9 years ago
I raised even more (1000s) and the same :-(

Original comment by juanje.o...@gmail.com on 1 Dec 2008 at 2:46

GoogleCodeExporter commented 9 years ago
Juanje, could you please test this with 0.99.11?

Original comment by alobbs on 18 Apr 2009 at 7:03

GoogleCodeExporter commented 9 years ago
I had the same issue.
Quite normal behaviour. It's the same with Apache...
But increasing the timeout solved the problem.
I have now timeout set to 1200 secs.

Original comment by michael....@gmail.com on 27 May 2009 at 3:02

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Happens to me with phppgadmin.
Simply copy (for easyness) the phppgadmin folder in your webroot and configure
phppgadmin as usual to connect with your postgresql daemon.

http://localhost/phppgadmin/ does not work, returning a download for index.php 
(not
called index.php, but i can't figure out why). 
http://localhost/phppgadmin/index.php
instead triggers the fcgi php handler normally.

Increasing the timeout doesn't solve the problem for me.

Original comment by g.viale...@gmail.com on 7 Aug 2009 at 11:03

GoogleCodeExporter commented 9 years ago
Did you try running php via console on your server so you can do something like 
this:

/usr/bin/php /srv/httpd/wwwroot/phppgadmin/index.php

Maybe you see an error here?

Original comment by michael....@gmail.com on 7 Aug 2009 at 11:55

GoogleCodeExporter commented 9 years ago
i installed cherokee on mac 0.99.24 and when i request for index.php (simple
phpinfo();) i got download instead of html . What's wrong ? How can i fix it ?

Original comment by gtdminh on 17 Nov 2009 at 8:16

GoogleCodeExporter commented 9 years ago
@gtdminh: You did not configure the server to use PHP, I presume. Check out this
section of the documentation; it explains how to set it up:

  http://www.cherokee-project.com/doc/cookbook_php.html

Original comment by alobbs on 17 Nov 2009 at 8:21

GoogleCodeExporter commented 9 years ago
I am having this issue with Hardy heron, fresh install of cherokee, from ppa 
repo. 
Browser tries to download anything php.

Original comment by cantorm...@gmail.com on 23 Dec 2009 at 12:39

GoogleCodeExporter commented 9 years ago
@cantormath: Can you find any differences with the configuration that results 
from this?
http://www.cherokee-project.com/screencasts.html#php

Original comment by tah...@gmail.com on 23 Dec 2009 at 12:44

GoogleCodeExporter commented 9 years ago
I also have the problem on Ubuntu 10.10 Cherokee 1.0.8

Php is enabled
I try to increase different timeout found under General, php interpreter...
My php is FastCGI enabled
Parsing my phpinfo.php page with php-cgi CLI is OK

I uncomment cgi.fix_pathinfo = 1 in /etc/php5/cgi/php.ini 
(http://www.howtoforge.com/installing-cherokee-with-php5-and-mysql-support-on-ub
untu-10.04)

But nothing work my php page are downloaded 

Original comment by yoann.da...@gmail.com on 19 Oct 2010 at 7:29

GoogleCodeExporter commented 9 years ago
Here is my cherokee.conf and a screen capture of vserver behavior 

Original comment by yoann.da...@gmail.com on 19 Oct 2010 at 7:34

Attachments:

GoogleCodeExporter commented 9 years ago
now it's work but I don't know why (nothing change)

Original comment by yoann.da...@gmail.com on 4 Nov 2010 at 1:03

GoogleCodeExporter commented 9 years ago
Several bugs have been fixed during the year that could have been related to 
this problem. I believe it should be solved by now.

Original comment by tah...@gmail.com on 29 Dec 2010 at 12:46

GoogleCodeExporter commented 9 years ago
This bug is really long dead, if it ever lived after being a egg planted by 
some queen part of the super organism of your choice. Last time I set up two 
PHP apps manually, this worked.

Original comment by ste...@konink.de on 15 May 2011 at 6:10

GoogleCodeExporter commented 9 years ago
2012 still not clear if this is a bug or something else, Fresh Ubuntu Server 
intallation with php5-fpm, using cherokee from ppa.

$ curl http://192.168.1.254/wiki/index.php
<?php
/**
 * Forwarder to doku.php
 *
 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
 * @author     Andreas Gohr <andi@splitbrain.org>
 */
header("Location: doku.php");

$ curl -I  http://192.168.1.254/wiki/
HTTP/1.1 200 OK
Date: Sat, 24 Mar 2012 18:07:20 GMT
Server: Cherokee/1.2.101 (Ubuntu)
ETag: "4f205a75=b6"
Last-Modified: Wed, 25 Jan 2012 19:39:33 GMT
Content-Type: application/x-httpd-php
Content-Length: 182

Original comment by marioce...@creat1va.com on 24 Mar 2012 at 6:18