tp5 No input file specified.

我的是windows10 系统,phpstudy 环境 ,配置的本地虚拟机,tp5.1

访问跟目录正常

访问次级页面报错

对于 tp5  No input file specified.  的问题,其实是 .htaccess 文件的配置问题

源文件是这样的

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

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

 //只需样改成这样

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

 RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]</IfModule>

修改完之后访问正常

原文地址:https://www.cnblogs.com/lanchar/p/8861591.html

时间: 2024-08-30 04:35:46

tp5 No input file specified.的相关文章

tp5 之 &quot;No input file specified

tp5 之 "No input file specified" 问题 通过"域名/模块/控制器/方法"这样的方式访问的时候,浏览器输出如下: 直接通过"域名"访问,则可以正常显示tp5框架指定的首页 原因 配置虚拟域名时, DocumentRoot 项 可能只设定到目录,而没有到文件 解决办法: 找到配置文件vhosts.conf,将DocumentRoot 项,设定指向tp5框架的public目录中的index.php **提示:不修改的话,要

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,

nginx no input file specified

今天在lnmp上调试php项目,之前已经在上面测试过tp5框架,可以正常访问.但是新项目由于项目中有些路径是写固定路径的.为了不去修改代码.配置新项目的时候,为新项目设置新的目录.问题就出现了,网页提示  no input file specified.nginx 的error_log 中显示Operation not permitted in Unknown on line 0  Unable to open primary script: 反复检查nginx中的server配置,确认root

解决Could not open input file: think问题

前几天做项目的时候,突然想用命令行创建TP5的控制器以及模型等 输入命令: >php think make:controller admin/Abc 报错如下: Could not open input file: think 开始以为是环境变量没配置,后来发现是项目根目录缺少think文件 把think文件放入根目录,问题解决. 原文地址:https://www.cnblogs.com/blibli/p/8949883.html

编译安装mmseg提示cannot find input file: src/Makefile.in错误

今天安装中文词检索功能模块 coreseek,其中一个分词模块 mmseg ,编译安装到最后,出现annot find input file: src/Makefile.in aclocal   //是一个perl 脚本程序,它的定义是:"aclocal - create aclocal.m4 by scanning configure.ac"libtoolize --force  //运行后有一个错误,不用管它.automake --add-missingautoconfautohe

从重置input file标签中看jQuery的 .val() 和 .attr(“value”) 区别

背景: 在清空input file标签选中值时,分别用了以下方法,发现有的对有的错: [√]$("#file")[0].value = ""; [√]$("#file")[0].value = null; [×]$("#file").attr("value",""); [×]$("#file").attr("value",null); [√]$(&

ajax+ashx 完美实现input file上传文件

1.input file 样式不能满足需求 <input type="file" value="浏览" /> IE8效果图:    Firefox效果图: Chrome效果图:   2.input file上传按钮美化 css: .file{ position: relative; background-color: #b32b1b; border: 1px solid #ddd; width: 68px; height: 25px; display:

No input file specified的解决方法

(一)IIS Noinput file specified 方法一:改PHP.ini中的doc_root行,打开ini文件注释掉此行,然后重启IIS 方法二:请修改php.ini找到; cgi.force_redirect = 1去掉前面分号,把后面的1改为0即cgi.force_redirect = 0 (二)apacheNo input file specified apache No input filespecified,今天是我们配置apache RewriteRule时出现这种问题,

ajax form表单提交 input file中的文件

ajax form表单提交 input file中的文件 现今的主流浏览器由于ajax提交form表单无法把文件类型数据提交到后台,供后台处理,可是开发中由于某些原因又不得不用ajax提交文件, 为了解决这个问题我走了不少弯路: 1.用原生的 input file , 不支持ajax上传文件,你肯定会说可以用 ajax form表单上传了呀?不过我后面还要调用上传成功后用js处理一些对话框,所以这种方法排除 2.用了 uploadify 上传插件,弄出来能上传东西,结果不理想:因为不能判断上传的