I am trying to run below php file using Putty in wordpress.
php-cgi -f info.php
But this command throw this error Undefined index: SCRIPT_NAME.
Server Setting:
#fastcgi_param HTTPS $fastcgi_https;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
Please help me to fix this issue.
SCRIPT_NAME
andSCRIPT_FILENAME
aren't the same thing?SCRIPT_NAME
, while you passSCRIPT_FILENAME
to the params.fastcgi_param SCRIPT_NAME $fastcgi_script_name;
inside thefastcgi_params
file.