当前位置:网站首页>No input file specified solution
No input file specified solution
2022-07-22 18:43:00 【enoshxu】
no input file specified Solution
Server operation and maintenance admin 1 Years ago (2018-07-17) 1616 Views
( One )IIS Noinput file specified
Method 1 : Change PHP.ini Medium doc_root That's ok , open ini The file commented out this line , And then restart IIS
Method 2 :
Please amend php.ini
find
; cgi.force_redirect = 1
Remove the semicolon , Take the back one 1 Change it to 0
namely
cgi.force_redirect = 0
( Two )apacheNo input file specified
apache No input filespecified, Today is our configuration apache RewriteRule When this happens , The solution is simple as follows
open .htaccess stay RewriteRule hinder index.php Add a... At the end of the tutorial “?”
The complete code is as follows
- .htaccess
- RewriteEngine on
- RewriteCond $1 !^(index.php|images|robots.txt)
- RewriteRule ^(.*)$ /index.php?/$1 [L]
If it is apache There's something wrong with the server , See if it is Apache hold .php What's wrong with suffix file parsing .
summary
Apache What suffixes are used as PHP analysis . for example , Give Way Apache hold .php The suffix file resolves to PHP. You can parse any suffix file to PHP, Just add in the following statements and separate them with spaces . Here to add a .phtml For example .
AddType application/x-httpd-php .php .phtml
In order to .phps The tutorial serves as PHP The source file for syntax highlighting , You can also add :
AddType application/x-httpd-php-source .phps
Start with the usual process Apache( Must stop completely Apache Restart again , Rather than using HUP perhaps USR1 Signals make Apache Reload ).
( 3、 ... and )nginx Configuration encounter No inputfile specified
Virtual machine testing nginx encounter Noinput file specified, Find out the solution finally
1、 php.ini(/etc/php5/cgi/php.ini) In the configuration of
cgi.fix_pathinfo=1 ( This one is added by myself )
doc_root=
2、nginx The configuration file /etc/nginx/sites-available/default Pay attention to the following parts
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/nginx-default$fastcgi_script_name;
include fastcgi_params;
}
The red part of the path needs to be filled in according to the actual situation of your host home directory
Configure the above parts , Restart it service nginx restart, That should be fine
( Four ) Check whether the website directory has the write permission of relevant users
边栏推荐
- 05.迪米特原则(Law of Demeter LoD)
- 周末和技术大咖们聚餐,聊到了软件测试行业的“金九银十”高峰【内卷之势已然形成】
- 力扣解法汇总1108-IP 地址无效化
- 为什么chrome视频时卡得厉害(by quqi99)
- sshfs + autofs + sshpass (by quqi99)
- [STM32] STM32 SDIO SD card read / write test (III) -- SD_ Init card stage of init
- 小程序获取节点绑定数据data-index的方法
- Fabric. JS control element level
- 01.开闭原则 Open-Closed Principle
- PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysqli.so'
猜你喜欢
原型对象
2. Raspberry pie system backup
【Audio】I2S传输PCM音频数据分析总结(二)
SQL injection
uniapp 微信小程序地图,在高德app、腾讯app、百度app、苹果地图app 中打开
【Audio】基于STM32 I2S移植WM8978 Audio Codec驱动
使用工厂的方法创建对象
【STM32】STM32 SDIO SD卡读写测试(二)-- SD_Init之Power On阶段
【STM32】STM32 SDIO SD卡读写测试(四)-- SD_Test之Transfer Mode阶段
【Nordic】nRF52810 OTA升级(二)–DFU如何使用
随机推荐
ecshop禁用缓存、关闭缓存
juju debug hacks (by quqi99)
[SDIO] sd2.0 protocol analysis summary (I) -- Introduction to SD card basic probability
node生成token与验证token(typeScript语法)
Go 语言学习:Go 语言之旅(四)
DOM添加
数据湖简单记录
【STM32】STM32 SDIO SD卡读写测试(一)-- SD卡硬件设计和软件移植
总结20220120
24 SaaS thoughts
02.依赖导致原则 - Dependence Inversion Principle
【Audio】I2S传输PCM音频数据分析总结(一)
[SDIO] sd2.0 protocol analysis summary (II) -- SD card identification & data transmission process
[how to series] friends fission platform construction
MySQL优化之强制索引的使用
SQL injection
堡垒机,DMZ区
creating vlan over openstack (by quqi99)
Internet download manager2022 trial (IDM for short)
Handwritten shallowreadonly and readonly