The web server displays no input file specified

Time:2020-10-29

When deploying the server today, no input file specified was displayed. At one time, it was thought that the pseudo static settings of Apache and nginx were wrong. After trying on another server, it was found that there was no problem. It should be that there was a problem with the environment configuration. After switching to one PHP version, it was found that it was OK. Compare the two versions php.ini File. It is found that open has been modified before_ basedir

open_ Basedir limits the files PHP can open to the specified directory tree, including the file itself. When the program uses fopen () or file_ get_ When contents() opens a file, the location of the file will be checked. When the file is outside the specified directory tree, the program will refuse to open it

After annotation, the problem is solved