I compiled PHP 4 because a script I use needs fopen to be allowed.
I used the installscript that dreamhost offers on their wiki. In the script, where it asks you to enter your domain,
AddHandler phpFour .php
Action phpFour /cgi-bin/php.cgi
However I want to use my compiled PHP for all my other domains too, so what I thought I need to do was copy the cgi-bin folder into www.mydomain2.com folder, and then change the htaccess for that domain too. However, this does not work, whenever I try to view my php files at www.mydomain2.com, I get the 500 Internal Server Error.
My Error Logs say: Premature end of script headers: /home/myuser/mydomain2.com/cgi-bin/php.cgi
Could someone please help me get this working,