Why do you need a "patch"? That looks like it's just running PHP as CGI instead of a web server module. You can already just install PHP to run as CGI and just use SuEXEC on CGI as normal. Do you check the ownership and permissions of the PHP scripts, check the path to the interpreter (which you'll need to do now), as well as the permissions and ownership of the directory the CGI/PHP scripts are in? That looks like a usual wrapper error, as it checks to make sure everything checks out as it should before it runs the script (for security reasons) when using that wrapper.