Welcome! Log In Create A New Profile

Advanced

Re: скачивается index.php

Dmitry
July 07, 2014 08:24AM
php-fpm поднят?
сокет /var/run/php5-fpm.sock корректен?


On Mon, Jul 7, 2014 at 3:54 PM, irgola <nginx-forum@nginx.us> wrote:

> Я первый раз имею дело с nginx и у меня возникла проблема, index.php
> скачивается вместо загрузки страницы. Возможно я что-то сделал неккоректно.
> Вот мои конфиги:
> server {
> listen 8080;
> #root /var/www/dd.test.com/rockmongo;
>
> access_log /var/www/dd.test.com/nginx.access.log;
>
> server_name dd.test.com www.dd.test.com;
> root /var/www/dd.test.com/rockmongo;
> location / {
> index index.html index.php;
> }
> location ~ \.php$ {
> # fastcgi_pass 127.0.0.1:9000;
> fastcgi_pass unix:/var/run/php5-fpm.sock;
> fastcgi_index index.php;
> fastcgi_param SCRIPT_FILENAME
> /var/www/dd.test.com/rockmongo$fastcgi_script_name;
> include /etc/nginx/fastcgi_params;
> }
> }
>
> user www-data;
> worker_processes 4;
> pid /run/nginx.pid;
>
> events {
> worker_connections 768;
> # multi_accept on;
> }
>
> http {
> sendfile on;
> tcp_nopush on;
> tcp_nodelay on;
> keepalive_timeout 65;
> types_hash_max_size 2048;
>
> sendfile on;
> tcp_nopush on;
> tcp_nodelay on;
> keepalive_timeout 65;
> types_hash_max_size 2048;
> server_names_hash_bucket_size 64;
> include /etc/nginx/mime.types;
> #default_type application/octet-stream;
> default_type text/html;
> access_log /var/log/nginx/access.log;
> error_log /var/log/nginx/error.log;
> gzip on;
> gzip_disable "msie6";
> gzip on;
> gzip_disable "msie6";
> include /etc/nginx/conf.d/*.conf;
> include /etc/nginx/sites-enabled/*;
> }
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?21,251494,251494#msg-251494
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-ru




--
Dmitry Goryainov
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

скачивается index.php

irgola July 07, 2014 07:54AM

Re: скачивается index.php

Dmitry July 07, 2014 08:24AM

Re: скачивается index.php

kemko July 07, 2014 08:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 318
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready