Php goes to cgi-system?

apps

#1

I installed a php script but when i try to load that directory, it gets redirected to domain.com/cgi-system/directory/script.php and gives a 404 error. Other pre-existing php scripts on the domain work fine as they have been. Any ideas where to look?


#2

I’d check any settings/variables that are used to derive the path to the script - PHP-CGI causes some environment variable that a programmer might use to determine a system path to return the value of the php.cgi instead of the script.

If you take a look at phpinfo() output for a mod_php installation next to one for a php.cgi installation, you will see what I mean.

Usually, simply changing that environment variable to a different one that produces the expected result, or hardcodeing the absolute or relative path, will fix the problem.

–rlparker