No input file specified
The first thing that people think of is 404.
Nginx will prompt for this information if it cannot find the target file for the visit.
But the problem I am going to say today is not a simple 404 problem. If the file path is wrong, this is easy to solve. The weird thing is that this prompt only appears when you access php, and it happens occasionally, most of the time the access is normal.
The environment is LNMP installed using a one-click installation package, and the website is Discuz.
Accessing a static image does not cause this problem, and the problem points to php.
Our previous solution to the problem is that when you encounter problems, you need to check the logs. The correct and wrong ones must be seen. So, I read the error log of nginx, read the error log of php-fpm, and adjusted the log level to debug, but unfortunately no problem was found.
This road does not work, then use another method, to google search, search a lot of articles, some say that the file permissions are wrong, and some say that open_basedir has restrictions, these two situations can be excluded.
Continue searching and find a change to the cgi.fix_pathinfo parameter.
This is possible, so give it a try by editing php.ini, finding cgi.fix_pathinfo, and setting this parameter to 1. Note that after modifying this parameter, you need to restart the php-fpm service.
After the change, the test did not appear No input file specified for a long time, I do not know the situation is improved after restarting php-fpm, it is because of the reason for adjusting the parameter.
In short, I doubt both of these situations, so I have to continue to observe and see if it will continue to appear after a long time.
For the cgi.fix_pathinfo parameter, to understand its role, you need to understand what pathinfo in php is (please search for yourself), but if you set cgi.fix_pathinfo to 1, there is a Nginx security risk, but the new version is tested. Nginx didn't have a problem.
to sum up
The solution to the No input file specified problem is
Modify the value of the cgi.fix_pathinfo parameter in php.ini to 1.
A manual pulse generator (MPG) is a device normally associated with computer numerically controlled machinery or other devices involved in positioning. It usually consists of a rotating knob that generates electrical pulses that are sent to an equipment controller. The controller will then move the piece of equipment a predetermined distance for each pulse.
The CNC handheld controller MPG Pendant with x1, x10, x100 selectable. It is equipped with our popular machined MPG unit, 4,5,6 axis and scale selector, emergency stop and reset button.
Manual Pulse Generator,Handwheel MPG CNC,Electric Pulse Generator,Signal Pulse Generator
Jilin Lander Intelligent Technology Co., Ltd , https://www.jilinlandermotor.com