cannot load php page, please help
feelexit
nginx-forum at nginx.us
Sun Sep 26 04:34:31 MSD 2010
HI, Mike.
here's my nginx.conf.
[code]
user www-data www-data;
worker_processes 4;
events {
worker_connections 4;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
tcp_nopush on;
tcp_nodelay off;
keepalive_timeout 5;
gzip on;
gzip_comp_level 2;
gzip_proxied any;
gzip_types text/plain text/css application/x-javascript
text/xml application/xml application/xml+rss text/javascript;
include /usr/local/nginx/sites-enabled/*;
}
[/code]
mike Wrote:
-------------------------------------------------------
> Sounds like you're missing a php location block.
> You need to show us your config. Pastebin it
>
> On Sep 25, 2010, at 5:25 PM, "feelexit" wrote:
>
> > I have nginx, php 5 and php5-fpm installed on
> ubuntu 10.04 server
> > edition.
> >
> > After I started the nginx server, I have no
> problem loading the regular
> > html pages. but all .php pages cannot be viewed,
> firefox just pop out a
> > window asking me if I wnat to download the file.
> >
> > I also tried IE, on IE, it just shows the source
> code.
> >
> > I checked both nginx and php5-fpm error log
> files, didn't see any
> > errors. did I miss something during the
> configuration?
> >
> > I dont know if the problem is nginx or php5_fpm,
> I need someone to
> > point me to the rite direction
> >
> > Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,134116,134116#ms
> g-134116
> >
> >
> > ____
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,134116,134119#msg-134119
More information about the nginx
mailing list