Try an Apache setup to see if will work around strange syntax errors when running the php httpserver on php-cgi.