問題一、
安裝pureftpd後,選擇了User manager for PureFTPd以web方式進行用戶管理,訪問web頁面標題、圖標未正常顯示,內容顯示如下
\n"); $LFile = "english.php"; } require("language/".$LFile); // Read the language file ?>\n"); $LFile = "english.php"; } require("language/".$LFile); // Read the language file ?>
問題是,php的短標籤爲開啓。
vi <php-dir>/etc/php.ini 找到
; This directive determines whether or not PHP will recognize code between
; <? and ?> tags as PHP source which should be processed as such. It's been
; recommended for several years that you not use the short tag "short cut" and
; instead to use the full <?php and ?> tag combination. With the wide spread use
; of XML and use of these tags by other languages, the server can become easily
; confused and end up parsing the wrong code in the wrong context. But because
; this short cut has been a feature for such a long time, it's currently still
; supported for backwards compatibility, but we recommend you don't use them.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://php.net/short-open-tag
short_open_tag = off
將short_open_tag = off 改爲short_open_tag = on
重啓php後正常。
問題二、
在上傳時,nginx提示“413 Request Entity Too Large”這是nginx 限制了文件大小
vi /usr/local/nginx/conf/nginx.conf
找到http{}段,添加 client_max_body_size 20m;
重啓NGINX
kill -hup `cat /usr/local/nginx/nginx.pid `
恢復正常。