An unresolved HTTP500 access denial error encountered by IIS10+PHP7.2

The simple task of

IIS,PHP7.2 php
file output echo will not report an error.
if it is complex or has an error IIS, it will report an error HTTP500,
the event in the log is FastCgiModule denied access, and
php itself does not output any error information. What"s going on?
IIS error report:

313.  -MODULE_WARNING 
ModuleName
FastCgiModule 
Data1
FASTCGI_RESPONSE_ERROR 
Data2
ErrorCode

 (0x5) 
314.  -MODULE_SET_RESPONSE_ERROR_STATUS 
ModuleName
FastCgiModule 
Notification
EXECUTE_REQUEST_HANDLER 
HttpStatus
500 
HttpReason
Internal Server Error 
HttpSubStatus
0 
ErrorCode

 (0x0) 
ConfigExceptionInfo
0 ms
Informational
315.  -FASTCGI_RESPONSE_WRITTEN 
0 ms
Verbose
316.  -NOTIFY_MODULE_END 
ModuleName
FastCgiModule 
Notification
EXECUTE_REQUEST_HANDLER 
fIsPostNotificationEvent
false 
NotificationStatus
NOTIFICATION_CONTINUE 

change directory permissions and other online solutions have been tried, and another website on the same server does not have this problem.

Php
Oct.22,2021
The file location pointed to by the error log of

PHP is not available and returns to normal after modification.

Menu