This article mainly explains the error report of deploying laravel project: no input file
Error reporting
Error message: no input file specified
Cause of problem
1. Caused by directory permission problems.
Solution: give permission 777
2. Open_basedir is enabled, but reasonable permission is not given
Solution: close
3. Pseudo static is not enabled
Solution:
location/{
try_files $uri $uri/ /index.php$is_args$query_string;
}
Enable pseudo static configuration.
Note: after modifying the configuration, you need to restart the website to take effect.