I've recently been doing some work on a friends web server, however I'm having trouble executing PHP scripts. The server is CentOS 5.8. This is what the Apache logs look like after trying to execute a script (test.php, permission 0644): 

```
[Mon Aug 13 09:47:41 2012] [error] [client -.-.-.-] SoftException in Application.cpp:256: File "/serv/website/www/test.php" is writeable by group
[Mon Aug 13 09:47:41 2012] [error] [client -.-.-.-] Premature end of script headers: test.php
[Mon Aug 13 09:47:41 2012] [error] [client -.-.-.-] File does not exist: /serv/website/www/cp_errordocument.shtml
[Mon Aug 13 09:47:41 2012] [error] [client -.-.-.-] unable to include "cp_errordocument.shtml" in parsed file /serv/website/www/500.shtml
[Mon Aug 13 09:47:41 2012] [error] [client -.-.-.-] File does not exist: /serv/website/www/favicon.ico
[Mon Aug 13 09:47:41 2012] [error] [client -.-.-.-] File does not exist: /serv/website/www/cp_errordocument.shtml
[Mon Aug 13 09:47:41 2012] [error] [client -.-.-.-] unable to include "cp_errordocument.shtml" in parsed file /serv/website/www/404.shtml

```

And this is the only message I get when I visit the script:`[an error occurred while processing this directive]`

I've been Googling this issue for hours, and I still can't find a solution. Any help is appreciated! I'm pretty unfamiliar with server administration, so let me know if you need any more info.

EDIT: Here is my test.php

```
<?php
echo phpinfo();
?>

```

EDIT 2: When I add `#!/usr/bin/php` to the top of my PHP script, I am able run it in the shell, however I still get the same results in the browser.