Hello, I'm having this error in a new hosting where I just uploaded my website. I didn't have this problem in my old hosting:
404 Not Found
The requested URL /cgi-bin/php/myscript.php was not found on this server.
Do you know what could be causing the error? It is trying to execute the PHP script in the cgi-bin/php folder, when my php scripts are all in public_html/mysite/ (there are several in different folders).
Is it some Apache or php.ini configuration problem in the hosting?
Or I need to add some header? I tried adding #!/usr/bin/php as the first line of the php script both outside and inside of the php tags but seems it's not solving the problem.
The PHP version is 5.1.4. Could this be the problem? I was using a PHP version 5.2 in my old hosting.