2014-11-03 44 views
1

我在工作nginx 1.19版本。並在我的Linux服務器上安裝了PHP5-FPM。我的nginx的PHP configurationlike這樣的:linux和nginx更新後php不能正常工作

location ~ \.php$ {     
      fastcgi_split_path_info ^(.+\.php)(/.+)$; 
      fastcgi_pass 127.0.0.1:9000; 
      fastcgi_index index.php; 
      include fastcgi_params; 
    } 

後,我nginx的更新到1.6.2版本和升級的Linux,我的PHP文件不能正常工作。 PHP請求正在返回白頁,沒有錯誤。

(我無法找到我的/ var/run中的文件夾中的php-fpm.sock)

我怎樣才能重新啓動PHP?

回答

3

更換

include fastcgi_params; 

include fastcgi.conf; 
+0

非常感謝這解決了我的問題。 – boliwe 2014-11-03 16:48:02