Home >Backend Development >PHP Problem >What should I do if php cgi cannot be started?

What should I do if php cgi cannot be started?

藏色散人
藏色散人Original
2020-08-05 09:28:552936browse

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.

What should I do if php cgi cannot be started?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How to round down in phpNext article:How to round down in php