500 minutes
Say
1. Site directory structure
wwwroot
website
public
application
……
2 nginx
server
{
listen 80;
server name test.aa.com
index index.html index.php default.html default.html default.php;
root/data/wwwroot/website/public;
……
—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————–
nginx/conf/fastcgi.conf
fastcgi param php admin value“open basedir=$document root/:/tmp/:/proc/:/data/wwwroot/”;
Note: add red part
Similar Posts:
- [Solved] Nginx-FastCGI-“Primary script unknown” while reading response header from upstream,
- Nginx+PHP FastCGI sent in stderr: “Primary script unknown” while reading response head…
- Nginx Error: File not found [Use php-fpm to parse PHP]
- nginx connect() failed (111: Connection refused) while connecting to upstream
- Wnmp environment configuration (Windows + nginx + MySQL + PHP)
- File not found error handling of nginx accessing PHP files, two cases
- PHP nginx 504 gateway timeout gateway timeout error
- The solution of nginx executing PHP, no input file specified
- [Solved] Primary script unknown in nginx configuration PHP
- Fix Nginx 502 Error:upstream sent too big header while reading response header from upstream