Hard to help if we can't see the exact error message. No matter what I do I get a 500 Server Error. What do the error logs say? Can you run the script from the command line?