Installing PHP5 but failing

Hello I just attempted to install a custom php5. Everything seems to go great in ssh (though I can’t be sure) and there’s a php5 folder in my home.

I then try to run and I get this error:

Not Found

The requested URL /cgi-bin/php.cgi/upload/uploader.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

What can I do to fix this error? Thanks