问题一:这种情况刚开始会报错:
Uncaught think\exception\ErrorException: scandir() has been disabled for security reasons in /home/w********
此处报错为找不到scandir()这个方法
LNMP一键包为了安全考虑,默认禁用了scandir函数
解决方法:修改/usr/local/php/etc/php.ini 查找disable_functions 将后面的scandir删掉,保存,然后执行:/etc/init.d/php-fpm restart 重启后即可。
问题二:url中改变路由,他的输出内容不变
检测方式:可以在thinkphp中的library下的think下的App.php中的routeCheck方法中echo $path;
解决方案:
改library下的think下的request.php中的path方法和pathinfo方法,避掉两者的限制条件is_null