Well I've spent over 3-4 hours yesterday trying to get this to work, but with no luck.
Whenever I try to access the page I get the following errors in my logs.
[Thu Jul 19 08:35:48 2007] [error] (13)Permission denied: exec of /usr/local/apache/htdocs/roundcube/index.php failed
[Thu Jul 19 08:35:48 2007] [error] [client xx.xx.xx.xx] Premature end of script headers: /usr/local/apache/htdocs/roundcube/index.php
After sometime on Google some people suggested that the "Premature end of script headers" is due to the file having issues (ie. Windows breaks vs. Linux ones). I've both downloaded using wget directly to the machine, extracting it and I've downloaded to my Windows machine, and uploaded it via FTP.
My httpd.conf looks like this (among other things)
Options +ExecCGI
AddHandler cgi-script .cgi
Alias /roundcube /usr/local/apache/htdocs/roundcube
I read that one person had to change the owner from root to apache, I've done that as well. Still not change.
I have the default .htaccess, possibly this is causing the issue?
# AddDefaultCharset UTF-8
php_flag display_errors Off
php_flag log_errors On
php_value error_log logs/errors
php_value upload_max_filesize 2M
Order allow,deny
Deny from all
Order deny,allow
Allow from all
I'm looking forward to getting this running. After I found out there was something out there that looked better than Horde and had to jump on it to give it to my clients.
Thanks for the help
Mark
Try deleting the htaccess, It can solve problems. I will see if I can fine out more about this problem, as I know I have head something like it before.
Wow thanks for the quick response.
I've deleted the .htaccess from that dir (renamed it htaccess.old) but I still get the same error.
Still an Internal Server Error with the same errors in the error log (premature end of script headers and (13)Permission denied)
Thanks..
hmm I think you may be have this problem: http://roundcubeforum.net/forum/index.php?topic=1726.0
I'll take a look at that, though that appears to be for people who have Windows (I have linux)
I'll play with it though.. but I don't see the link between my issue and that one (but what do I know) ;)
I'm almost 99% sure that it is an issue with my httpd.conf -- whenever I look up premature errors in general, people are giving tips on the httpd.conf setup.
Anyone able to paste how their httpd.conf is setup on the roundcube directory? Maybe simply mimicking that will fix the issue.
ahh ok I have only seen this error before with windows severs so I assumed that was what you had, sorry! Do you have access the the apache log files?
Yes..
[Thu Jul 19 08:35:48 2007] [error] (13)Permission denied: exec of /usr/local/apache/htdocs/roundcube/index.php failed
[Thu Jul 19 08:35:48 2007] [error] [client xx.xx.xx.xx] Premature end of script headers: /usr/local/apache/htdocs/roundcube/index.php
is what shows up in the error logs.
I also setup a test.cgi script just to see if it was roundcube or something else.. it appears to be something else because I get the same errors on index.php that I got on test.cgi
So, I *know* it has to do with someone in my httpd.conf.
I've made "progress"
Now I'm getting..
[Thu Jul 19 11:42:00 2007] [error] [client xx.xx.xx.xx] malformed header from script. Bad header=<head>: /usr/local/apache/htdocs/roundcube/index.php
Why can't it be easy? :'(
Are there errors in roundcube error log?
Quote from: SKaero Are there errors in roundcube error log?
Nothing in that directory. (set as chmod 777, has full permission to read/write)
I don't think it is even getting to the point where it can even put anything in the error log.
Ok go into config/main.inc.php find the line $rcmail_config['debug_level'] = 1; change 1 to 4. then see if you get any errors.
Ok, changed that setting.
Tried to access the site again, still got the same error in my apache log.
[error] [client xx.xx.xx.xx] malformed header from script. Bad header=<head>: /usr/local/apache/htdocs/roundcube/index.php
Well I've exhausted everything I know (which isn't much).
Still getting the error above. Has anyone else seen this? Have any tips for me, regardless of how "out there" they might sound. I've been searching and tweaking for 5 hours and getting no where.
Any advice will be great, but also thanks for the help you've given thus far
Mark
Are you using phpsuexec?