问题:站点转移服务器,资料数据均备份到新的服务器上,PHP版本,MySQL版本一致,访问新网站 出现500 服务器内部错误。
打开httpd 错误日志:
tail -f note.topc.cc_error.log #报错 [Fri Mar 10 13:56:46.202438 2017] [:error] [pid 26049] [client 106.38.100.106:3272] PHP Fatal error: Class 'Think\\Log' not found in /www/note/simplewind/Core/Library/Think/Think.class.php on line 264 [Fri Mar 10 13:58:40.278835 2017] [access_compat:error] [pid 26048] [client 106.38.100.106:3414] AH01797: client denied by server configuration: /www/note/admin/index.html
PHP Fatal error
一般转移站点,只要不是PHP版本问题,那就是站点缓存引起的无法访问。这个站点用的是THINKCMF
直接找到站点缓存目录:
cd runtime/ rm -rf *
正常访问 note.topc.cc