Originally Posted by thedoc
So my question is how do I run both php4 and php5 as cgi instead of the standard install.
Have a look here: http://www.howtoforge.com/apache2_with_php5_and_php4
But I don't think your problem is related to this. I'm sure it's a permissions problem. You're running the phpformgenerator script as the Apache user, and the script tries to write the form to a directory, and I guess that the Apache user does not have write privileges for that directory.