(i) IIS noinput file specified
Method One: Change php.ini in the Doc_root line, open the INI file comment out this line, and then restart IIS
Method Two:
Please modify php.ini
Found it
; Cgi.force_redirect = 1
Remove the front semicolon and change the back 1 to 0
That
Cgi.force_redirect = 0
(ii) Apacheno input file specified
Apache No input filespecified, today is the problem that occurs when we configure Apache Rewriterule, the solution is simple as follows
Open. htaccess add a "?" after the index.php tutorial behind Rewriterule.
The complete code is as follows
. htaccess
Rewriteengine on
Rewritecond $!^ (index.php|images|robots.txt)
Rewriterule ^ (. *) $/index.php?/$1 [L]
If it's a problem with the Apache server, see if it's the Apache that has the. php suffix file parsing.
Summarize
Which suffixes the Apache parses as PHP. For example, let Apache parse the. php suffix file into PHP. Any suffix file can be parsed as PHP, as long as the following statements are added and separated by a space. Here is an example of adding a. phtml.
AddType application/x-httpd-php. php. phtml
In order to use the. Phps Tutorial as a source file for PHP syntax highlighting, you can also add:
AddType Application/x-httpd-php-source. Phps
Use the usual procedure to start Apache (you must stop Apache and reboot completely, instead of using HUP or USR1 signals to reload Apache).
(iii) Nginx configuration encounters no Inputfile specified
Virtual machine Test Nginx encounter noinput file specified, multi-find finally find a solution
1, PHP.ini (/etc/php5/cgi/php.ini) in the configuration of these two
Cgi.fix_pathinfo=1 (This is a self-added)
doc_root=
2, the Nginx configuration file/etc/nginx/sites-available/default Note the following sections
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;
}
Red part path needs to be completed according to the actual situation of your host directory
After configuring the above section, restart the service nginx restart, it should be no problem
(iv) Note Check that the Site directory has write permission for the relevant user
Solution of No input file specified