Aha!
Ok, that is a start, but I will need the help of your hosting support, since I'm not so into configuring servers.
here is a little information about
alain.knaff.lu/howto/PhpSuexec/
You are running your web site in virtual host. Perhaps that is the reason why you get the next error message
Premature end of script headers: captcha.php, referer.
I don't know under what user the php script is executed:
Suexec functionality for PHP
On a standard Apache installation, suexec does not work for PHP, as PHP is implemented using a dynamically loadable module that runs within the context of Apache. All PHP scripts thus run under the same user as Apache itself runs as (www-data)
In order to allow users to safely execute PHP scripts, this paradigm must be changed: rather than using mod_php, user's PHP scripts should be executed via php-cgi. There are two steps necessary to make this happen:
1. Disable mod_php
2. Enable php-cgi
These 2 steps will be described in the next sections.
Disabling mod_php
The easiest method is to simply not install libapache2-mod-php5. However, php-cgi is less performant than mod_php and you might want to keep mod_php for safe system-wide web applications such as mediawiki, Horde/IMP, etc. Thus a solution is needed to only disable php for the users' home directories. This can be achieved using the following Apache config:
<Directory /home>
php_admin_flag engine off
</Directory>
Using php_admin_flag rather than simply php_flag makes sure that users can't re-enable php using their .htaccess file.
Enabling php-cgi
There are two ways to do it: suphp or suexec
Suphp
As of September 2008, the most recent released version of suphp does not yet support public_html. However, there is an unreleased snapshot that does:
www.suphp.org/download/suphp-SNAPSHOT-2008-03-31.tar.gz
Unpack this and compile it:
tar xfzv suphp-SNAPSHOT-2008-03-31.tar.gz
cd suphp-SNAPSHOT-2008-03-31
./configure --with-apxs=/usr/bin/apxs2 --with-setid-mode=owner
make
make install
and activate it by putting the following into Apache's config:
LoadModule suphp_module /usr/lib/apache2/modules/mod_suphp.so
<Directory /home>
AddHandler application/x-httpd-php .php .php3 .php4 .php5 .phtml
suPHP_AddHandler application/x-httpd-php
suPHP_Engine on
</Directory>
and the following in /usr/local/etc/suphp.conf:
[global]
webserver_user=www-data
docroot=/var/www:${HOME}/public_html
check_vhost_docroot=false
[handlers]
;Handler for php-scripts
application/x-httpd-php="php:/usr/bin/php-cgi"
Please ask you hosting support to look into the problem. They should be of great help to us since they are competent in administrating web servers and I'm not