The solution to the problem that php cgi cannot start: first find and open the "conf/nginx.conf" file; then modify the content to "$document_root$fastcgi_script_name;"; finally restart the nginx service.
Recommended: "PHP Video Tutorial"
nginx cannot run php-cgi problem
Modify the contents of the nginx directory conf/nginx.conf file
Change
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
to
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
Then restart the nginx service
/data/apps/nginx/sbin/nginx -s reload
The above is the detailed content of What should I do if php cgi cannot be started?. For more information, please follow other related articles on the PHP Chinese website!