tp5.1 错误 No input file specified.

Posted wntd

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了tp5.1 错误 No input file specified.相关的知识,希望对你有一定的参考价值。

http://www.xxxx.com/admin/index/index

出现错误:No input file specified.

 

一、方法

php版本有关  PHP版本5.6以上都会出现这个问题  把php版本改为5.5就OK

 

二、方法

.htaccess文件中的

RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]

在默认情况下会导致No input file specified.

修改成

RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]

问题解决。

 

 

<IfModule mod_rewrite.c>
  Options +FollowSymlinks -Multiviews
  RewriteEngine On

  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>

  

以上是关于tp5.1 错误 No input file specified.的主要内容,如果未能解决你的问题,请参考以下文章

tp5 No input file specified.

nginx下No input file specified错误的解决

tp伪静态设置,报No input file specified错误

Hadoop hdfs 显示 ls: `/home/hduser/input/': No such file or directory 错误

Nginx+PHP “No input file specified”错误的解决办法

运行PHP出现No input file specified错误的解决办法