按照操作说明安装好TYPECHO
但是登陆的时候无法进入后台
错误提示
Warning: include(): Failed opening 'menu.php' for inclusion (include_path='.:/opt/php-5.5/pear:/home/u417324844/public_html/Blog/var:/home/u417324844/public_html/Blog/usr/plugins') in /home/u417324844/public_html/Blog/admin/index.php on line 4
Warning: include(page-title.php): failed to open stream: No such file or directory in /home/u417324844/public_html/Blog/admin/index.php on line 10
Warning: include(): Failed opening 'page-title.php' for inclusion (include_path='.:/opt/php-5.5/pear:/home/u417324844/public_html/Blog/var:/home/u417324844/public_html/Blog/usr/plugins') in /home/u417324844/public_html/Blog/admin/index.php on line 10
小白第一使用,请大神帮帮我
==============问题1:无法登录后台======================
症状:
登录后台后还是显示登录页面。
原因:
Typecho1.0有个安全模块。根据提交的地址生成TOKEN。但是获取的时候出了点问题,ACE默认好象不是80端口,导致获取到的URL类似http://www.xxx.com:/....导致生成的TOKEN不一致。
解决办法:
修改 /var/Typecho/Request.php 文件 222 行:
. '://' . (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVER_NAME']);
//. (in_array($_SERVER['SERVER_PORT'], array(80, 443)) ? '' : ':' . $_SERVER['SERVER_PORT']);
注释223行。在222行结尾添加 ;
参考来源:http://blog.jiujiudeliwu.com/archives/37/