nginx 500錯誤 致使一些數據庫備份程序(phpmyadmin/帝國備份王)打開空白

PHP版本 5.4php

nginx 1.62nginx


nginx報錯:php-fpm

2015/04/07 05:50:43 [error] 1788#0: *413 FastCGI sent in stderr: 「PHP message: PHP Parse error: syntax error, unexpected end of file in /data/bei123/class/functions.php on line 1246″ while reading response header from upstream, client: 1×2.1×3.1×7.1×7, server: xxx.xxx.8x.1×9, request: 「GET / HTTP/1.1″, upstream: 「fastcgi://127.0.0.1:9000″, host: 「1×2.1×2.x5.1×9″server


解決方法:進程

打開PHP.ini中的短標籤選項io

short_open_tag=Offast

改爲function

short_open_tag=Onclass

而後重啓php-fpmstream

ps axu |grep php-fpm 查看 Ss那一項 的第二列 的數字 爲進程ID


kill -USR2 進程ID

來重啓php-fpm

相關文章
相關標籤/搜索