SORU
15 Mart 2013, Cuma


nginx PHP sayfaları boş gösteriyor

Kur php5-ROM ile nginx server var. Site yüklemeye çalıştığımda hata ile ben boş bir sayfa olsun. Html sayfalar ince ama php sunulmaktadır. Php içinde bu yönergeye dönüm üzerinde çalıştım.ını ama şans. php5-ROM.günlük herhangi bir hata üretiyor, ne de nginx.

nginx.conf

server {
    listen 80;
    root /home/mike/www/606club;
    index index.php index.html;
    server_name mikeglaz.com www.mikeglaz.com;
    error_log /var/log/nginx/error.log;
    location ~ \.php$ {
            #fastcgi_pass 127.0.0.1:9000;
            # With php5-fpm:
            fastcgi_pass unix:/var/run/php5-fpm.sock;
            fastcgi_index index.php;
            include fastcgi_params;
    }
}

EDİT

burada nginx hata benim günlük:

2013/03/15 03:52:55 [error] 1020#0: *55 open() "/home/mike/www/606club/robots.txt" failed (2: No such file or directory), client: 199.30.20.40, server: mikeglaz.com, request: "GET /robots.txt HTTP/1.1", host: "mikeglaz.com"

CEVAP
2 HAZİRAN 2013, Pazar


değiştirin

include fastcgi_params;

ile

include fastcgi.conf;

ve nginx içinde fastcgi_param SCRİPT_FİLENAME ... çıkarın.conf

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Edge-CGI 3D Tutorials and more!

    Edge-CGI 3D

    11 HAZİRAN 2013
  • modica89

    modica89

    24 HAZİRAN 2007
  • TechBalance

    TechBalance

    12 HAZİRAN 2011