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?

藏色散人
Release: 2023-03-03 19:12:01
Original
2977 people have browsed it

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;
Copy after login

to

fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
Copy after login

Then restart the nginx service

/data/apps/nginx/sbin/nginx -s reload
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template