Thanks, I should have thought of turning the debug on.

Here is the error message:
Parse error: parse error, expecting `')'' in /.../class/snoopy.php on line 701
Fatal error: Cannot instantiate non-existent class: snoopy in /.../modules/xoopsheadline/class/headlinerenderer.php on line 78
The same files are working on the php-cgi server. The sockets support is enabled.
[edit]
I took a look of the snoopy.php file, it was corrupted. Now it is working. Strangely enough, the corrupted file did not cause any problem with the php-cgi server. Thanks for the help. [/edit]