SORU
3 Mayıs 2014, CUMARTESİ


hata nginx php5-ROM bağlayın.çorap başarısız oldu (13: İzin engellendi)

Ben nginx güncelleştirin1.4.7ve php5.5.12, Aldım sonra502 hatası. Ben güncellemeden önce her şey gayet iyi çalışıyor.

nginx hatası.günlük

2014/05/03 13:27:41 [crit] 4202#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (13: Permission denied) while connecting to upstream, client: xx.xxx.xx.xx, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "xx.xx.xx.xx"

nginx.conf

user  www www;
worker_processes  1;

        location / {
            root   /usr/home/user/public_html;
            index  index.php index.html index.htm;
        }
        location ~ [^/]\.php(/|$) {
            fastcgi_split_path_info ^(. ?\.php)(/.*)$;
            fastcgi_pass unix:/var/run/php5-fpm.sock;
            fastcgi_index index.php;
            fastcgi_param  SCRIPT_FILENAME    /usr/home/user/public_html$fastcgi_script_name;
            include fastcgi_params;
        }

CEVAP
6 Mayıs 2014, Salı


Php güncellemeden sonra benzer bir hata vardı. PHP o soket dosya için rw izni vardı security bug Bir sabit.

  1. /etc/php5/fpm/pool.d/www.conf açın
  2. Yorumsuz tüm izin çizgileri gibi:

    listen.owner = www-data
    listen.group = www-data
    listen.mode = 0660
    
  3. - sudo service php5-fpm restart ROM yeniden başlatın

Not: eğer sunucunuzun www-data olarak başka bir kullanıcı olarak çalışır, www.conf dosyasını buna uygun olarak güncellemek için ihtiyacınız olacak

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

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Ammine Getahun

    Ammine Getah

    21 HAZİRAN 2011
  • makemebad35

    makemebad35

    17 NİSAN 2006
  • Manuel Vizcaino

    Manuel Vizca

    27 Mayıs 2008