What exactly are the errors you're getting? If you're getting a 500 error, then it's due to the webserver trying to run it as a CGI. If it's another error, what's the error? You can easily fix the 500 error by moving the page.php out of the cgi-bin directory, say to the webroot, and then updating the URL to page.php in Setup => Paths and URLs => db_php_url.
Adrian
Adrian