问答详情
源自:7-10 入口文件与配置文件优化

为什么总是 500 但是用PC 运行是正常的

Remote Address:

[::1]:80

Request URL:

http://localhost/mvc/admin.php?controller=admin&method=login

Request Method:

GET

Status Code:

500 Internal Server Error

Request Headersview source

Accept:

text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8

Accept-Encoding:

gzip, deflate, sdch

Accept-Language:

zh-CN,zh;q=0.8,en;q=0.6

Cache-Control:

max-age=0

Connection:

keep-alive

Host:

localhost

User-Agent:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36

Query String Parametersview sourceview URL encoded

controller:

admin

method:

login

Response Headersview source

Connection:

close

Content-Length:

0

Content-Type:

text/html; charset=utf-8

Date:

Sat, 29 Nov 2014 10:44:36 GMT

Server:

Apache/2.2.29 (Unix) mod_fastcgi/2.4.6 mod_wsgi/3.4 Python/2.7.8 PHP/5.6.2 mod_ssl/2.2.29 OpenSSL/0.9.8za DAV/2 mod_perl/2.0.8 Perl/v5.20.0

X-Powered-By:

PHP/5.6.2


提问者:Frank337903 2014-11-29 19:10

个回答

  • PengCheng
    2014-12-01 09:19:32

    第一个斜杠代表根目录目录,而您的系统放在  根目录的mvc目录里

  • 用户1163505
    2015-01-10 12:48:17

    相当于进入了index.php目录下的libs目录肯定没有

  • Frank337903
    2014-11-30 09:52:00

    找到问题 所在了,居然 是因为 require_once '/libs/***' libs 前面多一个斜杠就报致命错误了,这是为什么?