在使用nginx做php部署的 明明是正确的php代码为什么会提示错误呢?
这个时候我们需要看报错日志!
一般在nginx目录下面的logs目录
打开error.log文件 我们会看到如下的报错
016/11/01 21:32:50 [crit] 20988#3304: *25 CreateFile() "D:/xxxx/资料站点/dev/Public/manage/css/elements.css" failed (1113: No mapping for the Unicode character exists in the target multi-byte code page), client: 127.0.0.1, server: apizldev.com, request: "GET /dev/Public/manage/css/elements.css HTTP/1.1", host: "apizldev.com", referrer: "http://apizldev.com/dev/index.php/Manage/Login/Index.html" 2016/11/01 21:32:50 [crit] 20988#3304: *26 CreateFile() "D:/xxxx/资料站点/dev/Public/manage/css/icons.css" failed (1113: No mapping for the Unicode character exists in the target multi-byte code page), client: 127.0.0.1, server: apizldev.com, request: "GET /dev/Public/manage/css/icons.css HTTP/1.1", host: "apizldev.com", referrer: "http://apizldev.com/dev/index.php/Manage/Login/Index.html" 2016/11/01 21:32:50 [crit] 20988#3304: *28 CreateFile() "D:/xxxx/资料站点/dev/Public/manage/css/lib/font-awesome.css" failed (1113: No mapping for the Unicode character exists in the target multi-byte code page), client: 127.0.0.1, server: apizldev.com, request: "GET /dev/Public/manage/css/lib/font-awesome.css HTTP/1.1", host: "apizldev.com", referrer: "http://apizldev.com/dev/index.php/Manage/Login/Index.html" 2016/11/01 21:32:50 [crit] 20988#3304: *29 CreateFile() "D:/xxxx/资料站点/dev/Public/manage/css/compiled/signin.css" failed (1113: No mapping for the Unicode character exists in the target multi-byte code page), client: 127.0.0.1, server: apizldev.com, request: "GET /dev/Public/manage/css/compiled/signin.css HTTP/1.1", host: "apizldev.com", referrer: "http://apizldev.com/dev/index.php/Manage/Login/Index.html" 2016/11/01 21:32:50 [crit] 20988#3304: *30 CreateFile() "D:/xxxx/资料站点/dev/Public/manage/js/jquery-latest.js" failed (1113: No mapping for the Unicode character exists in the target multi-byte code page), client: 127.0.0.1, server: apizldev.com, request: "GET /dev/Public/manage/js/jquery-latest.js HTTP/1.1", host: "apizldev.com", referrer: "http://apizldev.com/dev/index.php/Manage/Login/Index.html" 2016/11/01 21:32:50 [crit] 20988#3304: *31 CreateFile() "D:/xxxx/资料站点/dev/Public/manage/js/bootstrap.min.js" failed (1113: No mapping for the Unicode character exists in the target multi-byte code page), client: 127.0.0.1, server: apizldev.com, request: "GET /dev/Public/manage/js/bootstrap.min.js HTTP/1.1", host: "apizldev.com", referrer: "http://apizldev.com/dev/index.php/Manage/Login/Index.html" 2016/11/01 21:32:50 [crit] 20988#3304: *32 CreateFile() "D:/xxxx/资料站点/dev/Public/manage/img/logo-white.png" failed (1113: No mapping for the Unicode character exists in the target multi-byte code page), client: 127.0.0.1, server: apizldev.com, request: "GET /dev/Public/manage/img/logo-white.png HTTP/1.1", host: "apizldev.com", referrer: "http://apizldev.com/dev/index.php/Manage/Login/Index.html" 2016/11/01 21:32:50 [crit] 20988#3304: *33 CreateFile() "D:/xxxx/资料站点/dev/Public/manage/js/theme.js" failed (1113: No mapping for the Unicode character exists in the target multi-byte code page), client: 127.0.0.1, server: apizldev.com, request: "GET /dev/Public/manage/js/theme.js HTTP/1.1", host: "apizldev.com", referrer: "http://apizldev.com/dev/index.php/Manage/Login/Index.html" 2016/11/01 21:32:50 [crit] 20988#3304: *34 CreateFile() "D:/xxxx/资料站点/favicon.ico" failed (1113: No mapping for the Unicode character exists in the target multi-byte code page), client: 127.0.0.1, server: apizldev.com, request: "GET /favicon.ico HTTP/1.1", host: "apizldev.com", referrer: "http://apizldev.com/dev/index.php/Manage/Login/Index.html" 2016/11/01 21:32:51 [crit] 20988#3304: *35 CreateFile() "D:/xxxx/资料站点/dev/upload/file/2016-07-24/57945b626cdcb.png" failed (1113: No mapping for the Unicode character exists in the target multi-byte code page), client: 127.0.0.1, server: apizldev.com, request: "GET /dev/upload/file/2016-07-24/57945b626cdcb.png HTTP/1.1", host: "apizldev.com" 2016/11/01 21:32:51 [crit] 20988#3304: *36 CreateFile() "D:/xxxx/资料站点/favicon.ico" failed (1113: No mapping for the Unicode character exists in the target multi-byte code page), client: 127.0.0.1, server: apizldev.com, request: "GET /favicon.ico HTTP/1.1", host: "apizldev.com", referrer: "http://apizldev.com/dev/upload/file/2016-07-24/57945b626cdcb.png" 2016/11/01 21:37:13 [crit] 20988#3304: *37 GetFileAttributesEx() "D:/xxxx/资料站点" failed (1113: No mapping for the Unicode character exists in the target multi-byte code page), client: 127.0.0.1, server: apizldev.com, request: "GET / HTTP/1.1", host: "apizldev.com"
这个是使用了中文的目录导致的500报错。我们只需要更改到其他英文目录即可!
关键字词: