Solution of No input file specified

Source: Internet
Author: User
Tags ini file comment

(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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.