Hey list,
First, my setup: FreeBSD 9.0-RELEASE AMD64 Apache/2.2.22 PHP 5.3.10 with Suhosin-Patch roundcube-0.7.1,1 postgresql-server-9.1.3
I installed roundcube from the FreeBSD ports. I ran the install script, went through the configuration, saved my configuration files to the proper locations. It ran the test page, and everything worked fine. I tried sending a test mail, testing the connection to my database (postgresql) and imap server (dovecot). Everything worked perfectly. Then when I finished and tried to access the main roundcube directory, apache is giving me a 500 error. I have found no error logs anywhere. Not in roundcube's logs/ dir, not in apache's error log (even with LogLevel at debug), and not in my php error log.
I've browsed through the Wiki about the issue, it brought up the .htaccess files. I have 'AllowOverride None' on the entire filesystem, so apache should be completely ignoring the .htaccess files. It shouldn't even be stat()'ing them. I read each of the .htaccess files in the various dirs within roundcube and I put them in my apache config file. I prefer everything to be in there as opposed to using .htaccess. I have the applicable section of my apache file pasted below. In addition to that, I put some of the main settings into my main apache config, the ETags, DEFLATE, DefaultCharset, and those other settings.
If anyone has any suggestions on where to start with this, I'd appreciate it. It's driving me nuts.
Thank you!
-- Snip apache's config -- # Setup Permissions
<Directory /> Options None AllowOverride None Order deny,allow Deny from all </Directory> Alias /mail /usr/local/www/roundcube <Directory "/usr/local/www/roundcube"> Options SymLinksIfOwnerMatch Order allow,deny Allow from my.ip.add.ress RewriteEngine On RewriteRule ^favicon.ico$ skins/default/images/favicon.ico RewriteRule .svn/ - [F] RewriteRule ^README|INSTALL|LICENSE|SQL|bin|CHANGELOG$ - [F] Header merge Cache-Control public env=!NO_CACHE AddType text/x-component .htc </Directory> <Directory "/usr/local/www/roundcube/temp"> Order allow,deny Deny from all </Directory> <Directory "/usr/local/www/roundcube/logs"> Order allow,deny Deny from all </Directory> <Directory "/usr/local/www/roundcube/plugins/enigma/home"> Order allow,deny Deny from all </Directory> <Directory "/usr/local/www/roundcube/config"> Order allow,deny Deny from all </Directory> <Directory "/usr/local/www/roundcube/program"> RewriteEngine On RewriteRule !^js|.*\.gif$ - [F] </Directory>
Try AllowOverride All. If it works, you know .htaccess is the file to dig in.
On 14 March 2012 01:18, Stephen R Guglielmo srg@ananke.guglielmo.us wrote:
Hey list,
First, my setup: FreeBSD 9.0-RELEASE AMD64 Apache/2.2.22 PHP 5.3.10 with Suhosin-Patch roundcube-0.7.1,1 postgresql-server-9.1.3
I installed roundcube from the FreeBSD ports. I ran the install script, went through the configuration, saved my configuration files to the proper locations. It ran the test page, and everything worked fine. I tried sending a test mail, testing the connection to my database (postgresql) and imap server (dovecot). Everything worked perfectly. Then when I finished and tried to access the main roundcube directory, apache is giving me a 500 error. I have found no error logs anywhere. Not in roundcube's logs/ dir, not in apache's error log (even with LogLevel at debug), and not in my php error log.
I've browsed through the Wiki about the issue, it brought up the .htaccess files. I have 'AllowOverride None' on the entire filesystem, so apache should be completely ignoring the .htaccess files. It shouldn't even be stat()'ing them. I read each of the .htaccess files in the various dirs within roundcube and I put them in my apache config file. I prefer everything to be in there as opposed to using .htaccess. I have the applicable section of my apache file pasted below. In addition to that, I put some of the main settings into my main apache config, the ETags, DEFLATE, DefaultCharset, and those other settings.
If anyone has any suggestions on where to start with this, I'd appreciate it. It's driving me nuts.
Thank you!
-- Snip apache's config -- # Setup Permissions
<Directory /> Options None AllowOverride None Order deny,allow Deny from all </Directory> Alias /mail /usr/local/www/roundcube <Directory "/usr/local/www/roundcube"> Options SymLinksIfOwnerMatch Order allow,deny Allow from my.ip.add.ress RewriteEngine On RewriteRule ^favicon.ico$ skins/default/images/favicon.ico RewriteRule .svn/ - [F] RewriteRule ^README|INSTALL|LICENSE|SQL|bin|CHANGELOG$ - [F] Header merge Cache-Control public env=!NO_CACHE AddType text/x-component .htc </Directory> <Directory "/usr/local/www/roundcube/temp"> Order allow,deny Deny from all </Directory> <Directory "/usr/local/www/roundcube/logs"> Order allow,deny Deny from all </Directory> <Directory "/usr/local/www/roundcube/plugins/enigma/home"> Order allow,deny Deny from all </Directory> <Directory "/usr/local/www/roundcube/config"> Order allow,deny Deny from all </Directory> <Directory "/usr/local/www/roundcube/program"> RewriteEngine On RewriteRule !^js|.*\.gif$ - [F] </Directory> _______________________________________________ Roundcube Users mailing list users@lists.roundcube.net http://lists.roundcube.net/mailman/listinfo/users
On 03/14/2012 09:04:59AM, Tolga wrote:
Try AllowOverride All. If it works, you know .htaccess is the file to dig in.
On 14 March 2012 01:18, Stephen R Guglielmo srg@ananke.guglielmo.us wrote:
Hey list,
First, my setup: FreeBSD 9.0-RELEASE AMD64 Apache/2.2.22 PHP 5.3.10 with Suhosin-Patch roundcube-0.7.1,1 postgresql-server-9.1.3
I installed roundcube from the FreeBSD ports. I ran the install script, went through the configuration, saved my configuration files to the proper locations. It ran the test page, and everything worked fine. I tried sending a test mail, testing the connection to my database (postgresql) and imap server (dovecot). Everything worked perfectly. Then when I finished and tried to access the main roundcube directory, apache is giving me a 500 error. I have found no error logs anywhere. Not in roundcube's logs/ dir, not in apache's error log (even with LogLevel at debug), and not in my php error log.
I've browsed through the Wiki about the issue, it brought up the .htaccess files. I have 'AllowOverride None' on the entire filesystem, so apache should be completely ignoring the .htaccess files. It shouldn't even be stat()'ing them. I read each of the .htaccess files in the various dirs within roundcube and I put them in my apache config file. I prefer everything to be in there as opposed to using .htaccess. I have the applicable section of my apache file pasted below. In addition to that, I put some of the main settings into my main apache config, the ETags, DEFLATE, DefaultCharset, and those other settings.
If anyone has any suggestions on where to start with this, I'd appreciate it. It's driving me nuts.
Thank you!
-- Snip apache's config -- # Setup Permissions
<Directory /> Options None AllowOverride None Order deny,allow Deny from all </Directory> Alias /mail /usr/local/www/roundcube <Directory "/usr/local/www/roundcube"> Options SymLinksIfOwnerMatch Order allow,deny Allow from my.ip.add.ress RewriteEngine On RewriteRule ^favicon.ico$ skins/default/images/favicon.ico RewriteRule .svn/ - [F] RewriteRule ^README|INSTALL|LICENSE|SQL|bin|CHANGELOG$ - [F] Header merge Cache-Control public env=!NO_CACHE AddType text/x-component .htc </Directory> <Directory "/usr/local/www/roundcube/temp"> Order allow,deny Deny from all </Directory> <Directory "/usr/local/www/roundcube/logs"> Order allow,deny Deny from all </Directory> <Directory "/usr/local/www/roundcube/plugins/enigma/home"> Order allow,deny Deny from all </Directory> <Directory "/usr/local/www/roundcube/config"> Order allow,deny Deny from all </Directory> <Directory "/usr/local/www/roundcube/program"> RewriteEngine On RewriteRule !^js|.*\.gif$ - [F] </Directory> _______________________________________________ Roundcube Users mailing list users@lists.roundcube.net http://lists.roundcube.net/mailman/listinfo/users
Roundcube Users mailing list users@lists.roundcube.net http://lists.roundcube.net/mailman/listinfo/users
Thanks for the suggestion! However, it didn't have any effect. I tried several more things in the mean time, and I just can't figure it out.
I upgraded to Roundcube 0.7.2. I tried recompiling php WITHOUT the suhoshin patch. I tried using the php.ini-development and php.ini-production files that come with php. I tried commenting everything I added to apache's config, as well as adding AllowOverride All to the roundcube dir.
Nothing at all seems to be working. This is so odd. I made a script with phpinfo() in the roundcube dir which works fine. I can also access robots.txt from roundcube's dir, so access to the dir is working. I even went through and set a cookie whitelist allow and disabled adblock in my browser.
Still absolutely nothing in my apache error log and my php error log. I even made a php file with a syntax error purposely to ensure logging is working - it is. The hit to roundcube is showing up in my apache ACCESS log, but it's still giving me the 500 error :-\
I must've went through the roundcube installer 5 times in the last day, wiping everything out and restarting. I tried changing the permissions on the dir, including world-readable and writable. Nothing seems to be working. Is there some sort of php or apache debugger that I can use?
Thanks!
On 03/14/2012 08:12, Stephen R Guglielmo wrote:
Thanks for the suggestion! However, it didn't have any effect. I tried several more things in the mean time, and I just can't figure it out.
I upgraded to Roundcube 0.7.2. I tried recompiling php WITHOUT the suhoshin patch. I tried using the php.ini-development and php.ini-production files that come with php. I tried commenting everything I added to apache's config, as well as adding AllowOverride All to the roundcube dir.
Nothing at all seems to be working. This is so odd. I made a script with phpinfo() in the roundcube dir which works fine. I can also access robots.txt from roundcube's dir, so access to the dir is working. I even went through and set a cookie whitelist allow and disabled adblock in my browser.
Still absolutely nothing in my apache error log and my php error log. I even made a php file with a syntax error purposely to ensure logging is working - it is. The hit to roundcube is showing up in my apache ACCESS log, but it's still giving me the 500 error :-\
I must've went through the roundcube installer 5 times in the last day, wiping everything out and restarting. I tried changing the permissions on the dir, including world-readable and writable. Nothing seems to be working. Is there some sort of php or apache debugger that I can use?
Thanks!
In my experience with Roundcube, 500 errors are frequently database or plugin problems, rarely apache or PHP problems. If the roundcube logs directory is writable by the apache user (you did reset the permissions on the logs and temp directories, didn't you?) but no errors are logged, I'd rule out plugins, and look at the DB.
-- Arne Berglund System Administrator, Internet Services Lane Education Service District Eugene, OR ____________
Am Dienstag, 13. März 2012, 19.18:56 schrieb Stephen R Guglielmo:
Hey list,
First, my setup: FreeBSD 9.0-RELEASE AMD64 Apache/2.2.22 PHP 5.3.10 with Suhosin-Patch roundcube-0.7.1,1 postgresql-server-9.1.3
I installed roundcube from the FreeBSD ports. I ran the install script, went through the configuration, saved my configuration files to the proper locations. It ran the test page, and everything worked fine. I tried sending a test mail, testing the connection to my database (postgresql) and imap server (dovecot). Everything worked perfectly. Then when I finished and tried to access the main roundcube directory, apache is giving me a 500 error. I have found no error logs anywhere. Not in roundcube's logs/ dir, not in apache's error log (even with LogLevel at debug), and not in my php error log.
I've browsed through the Wiki about the issue, it brought up the .htaccess files. I have 'AllowOverride None' on the entire filesystem, so apache should be completely ignoring the .htaccess files. It shouldn't even be stat()'ing them. I read each of the .htaccess files in the various dirs within roundcube and I put them in my apache config file. I prefer everything to be in there as opposed to using .htaccess. I have the applicable section of my apache file pasted below. In addition to that, I put some of the main settings into my main apache config, the ETags, DEFLATE, DefaultCharset, and those other settings.
If anyone has any suggestions on where to start with this, I'd appreciate it. It's driving me nuts.
Thank you!
-- Snip apache's config -- # Setup Permissions
<Directory /> Options None AllowOverride None Order deny,allow Deny from all </Directory> Alias /mail /usr/local/www/roundcube <Directory "/usr/local/www/roundcube"> Options SymLinksIfOwnerMatch Order allow,deny Allow from my.ip.add.ress RewriteEngine On RewriteRule ^favicon.ico$ skins/default/images/favicon.ico RewriteRule .svn/ - [F] RewriteRule ^README|INSTALL|LICENSE|SQL|bin|CHANGELOG$ - [F] Header merge Cache-Control public env=!NO_CACHE AddType text/x-component .htc </Directory> <Directory "/usr/local/www/roundcube/temp"> Order allow,deny Deny from all </Directory> <Directory "/usr/local/www/roundcube/logs"> Order allow,deny Deny from all </Directory> <Directory "/usr/local/www/roundcube/plugins/enigma/home"> Order allow,deny Deny from all </Directory> <Directory "/usr/local/www/roundcube/config"> Order allow,deny Deny from all </Directory> <Directory "/usr/local/www/roundcube/program"> RewriteEngine On RewriteRule !^js|.*\.gif$ - [F] </Directory>
have you tried without this kind of "secure" apache config? please find my config at the end. and use the standard .htaccess out of roundcube... if this works then, start changing the config then
Andreas
<Directory /path/roundcubemail/> Options +FollowSymLinks # This is needed to parse .htaccess. See its # content before setting AllowOverride to None. AllowOverride All order allow,deny allow from all
</Directory> <Directory /path/roundcubemail/config> Options -FollowSymLinks AllowOverride None </Directory> <Directory /path/roundcubemail/temp> Options -FollowSymLinks AllowOverride None Order allow,deny Deny from all </Directory> <Directory /path/roundcubemail/logs> Options -FollowSymLinks AllowOverride None Order allow,deny Deny from all </Directory>
Your apache error log should give you a better reason for the 500 that it doesn't expose to the world.
Ben.
On 14/03/12 10:18 AM, Stephen R Guglielmo wrote:
Hey list,
First, my setup: FreeBSD 9.0-RELEASE AMD64 Apache/2.2.22 PHP 5.3.10 with Suhosin-Patch roundcube-0.7.1,1 postgresql-server-9.1.3
I installed roundcube from the FreeBSD ports. I ran the install script, went through the configuration, saved my configuration files to the proper locations. It ran the test page, and everything worked fine. I tried sending a test mail, testing the connection to my database (postgresql) and imap server (dovecot). Everything worked perfectly. Then when I finished and tried to access the main roundcube directory, apache is giving me a 500 error. I have found no error logs anywhere. Not in roundcube's logs/ dir, not in apache's error log (even with LogLevel at debug), and not in my php error log.
I've browsed through the Wiki about the issue, it brought up the .htaccess files. I have 'AllowOverride None' on the entire filesystem, so apache should be completely ignoring the .htaccess files. It shouldn't even be stat()'ing them. I read each of the .htaccess files in the various dirs within roundcube and I put them in my apache config file. I prefer everything to be in there as opposed to using .htaccess. I have the applicable section of my apache file pasted below. In addition to that, I put some of the main settings into my main apache config, the ETags, DEFLATE, DefaultCharset, and those other settings.
If anyone has any suggestions on where to start with this, I'd appreciate it. It's driving me nuts.
Thank you!
-- Snip apache's config -- # Setup Permissions
<Directory /> Options None AllowOverride None Order deny,allow Deny from all </Directory> Alias /mail /usr/local/www/roundcube <Directory "/usr/local/www/roundcube"> Options SymLinksIfOwnerMatch Order allow,deny Allow from my.ip.add.ress RewriteEngine On RewriteRule ^favicon.ico$ skins/default/images/favicon.ico RewriteRule .svn/ - [F] RewriteRule ^README|INSTALL|LICENSE|SQL|bin|CHANGELOG$ - [F] Header merge Cache-Control public env=!NO_CACHE AddType text/x-component .htc </Directory> <Directory "/usr/local/www/roundcube/temp"> Order allow,deny Deny from all </Directory> <Directory "/usr/local/www/roundcube/logs"> Order allow,deny Deny from all </Directory> <Directory "/usr/local/www/roundcube/plugins/enigma/home"> Order allow,deny Deny from all </Directory> <Directory "/usr/local/www/roundcube/config"> Order allow,deny Deny from all </Directory> <Directory "/usr/local/www/roundcube/program"> RewriteEngine On RewriteRule !^js|.*\.gif$ - [F] </Directory> _______________________________________________ Roundcube Users mailing list users@lists.roundcube.net http://lists.roundcube.net/mailman/listinfo/users
Sorry for this uninformed reply. I must've somehow skipped a page when I read your email and didn't see the bit where it said you'd checked your logs.
Ben.
On 15/03/12 9:25 AM, Ben Schmidt wrote:
Your apache error log should give you a better reason for the 500 that it doesn't expose to the world.
Ben.
On 14/03/12 10:18 AM, Stephen R Guglielmo wrote:
Hey list,
First, my setup: FreeBSD 9.0-RELEASE AMD64 Apache/2.2.22 PHP 5.3.10 with Suhosin-Patch roundcube-0.7.1,1 postgresql-server-9.1.3
I installed roundcube from the FreeBSD ports. I ran the install script, went through the configuration, saved my configuration files to the proper locations. It ran the test page, and everything worked fine. I tried sending a test mail, testing the connection to my database (postgresql) and imap server (dovecot). Everything worked perfectly. Then when I finished and tried to access the main roundcube directory, apache is giving me a 500 error. I have found no error logs anywhere. Not in roundcube's logs/ dir, not in apache's error log (even with LogLevel at debug), and not in my php error log.
I've browsed through the Wiki about the issue, it brought up the .htaccess files. I have 'AllowOverride None' on the entire filesystem, so apache should be completely ignoring the .htaccess files. It shouldn't even be stat()'ing them. I read each of the .htaccess files in the various dirs within roundcube and I put them in my apache config file. I prefer everything to be in there as opposed to using .htaccess. I have the applicable section of my apache file pasted below. In addition to that, I put some of the main settings into my main apache config, the ETags, DEFLATE, DefaultCharset, and those other settings.
If anyone has any suggestions on where to start with this, I'd appreciate it. It's driving me nuts.
Thank you!
-- Snip apache's config -- # Setup Permissions
<Directory /> Options None AllowOverride None Order deny,allow Deny from all </Directory> Alias /mail /usr/local/www/roundcube <Directory "/usr/local/www/roundcube"> Options SymLinksIfOwnerMatch Order allow,deny Allow from my.ip.add.ress RewriteEngine On RewriteRule ^favicon.ico$ skins/default/images/favicon.ico RewriteRule .svn/ - [F] RewriteRule ^README|INSTALL|LICENSE|SQL|bin|CHANGELOG$ - [F] Header merge Cache-Control public env=!NO_CACHE AddType text/x-component .htc </Directory> <Directory "/usr/local/www/roundcube/temp"> Order allow,deny Deny from all </Directory> <Directory "/usr/local/www/roundcube/logs"> Order allow,deny Deny from all </Directory> <Directory "/usr/local/www/roundcube/plugins/enigma/home"> Order allow,deny Deny from all </Directory> <Directory "/usr/local/www/roundcube/config"> Order allow,deny Deny from all </Directory> <Directory "/usr/local/www/roundcube/program"> RewriteEngine On RewriteRule !^js|.*\.gif$ - [F] </Directory> _______________________________________________ Roundcube Users mailing list users@lists.roundcube.net http://lists.roundcube.net/mailman/listinfo/users
Kind regards, Hossam Fahmy On Mar 14, 2012 9:25 PM, "Andreas Dick" andudi@gmx.ch wrote:
Am Dienstag, 13. März 2012, 19.18:56 schrieb Stephen R Guglielmo:
Hey list,
First, my setup: FreeBSD 9.0-RELEASE AMD64 Apache/2.2.22 PHP 5.3.10 with Suhosin-Patch roundcube-0.7.1,1 postgresql-server-9.1.3
I installed roundcube from the FreeBSD ports. I ran the install script,
went
through the configuration, saved my configuration files to the proper locations. It ran the test page, and everything worked fine. I tried sending a test mail, testing the connection to my database (postgresql)
and
imap server (dovecot). Everything worked perfectly. Then when I finished and tried to access the main roundcube directory, apache is giving me a
500
error. I have found no error logs anywhere. Not in roundcube's logs/ dir, not in apache's error log (even with LogLevel at debug), and not in my
php
error log.
I've browsed through the Wiki about the issue, it brought up the
.htaccess
files. I have 'AllowOverride None' on the entire filesystem, so apache should be completely ignoring the .htaccess files. It shouldn't even be stat()'ing them. I read each of the .htaccess files in the various dirs within roundcube and I put them in my apache config file. I prefer everything to be in there as opposed to using .htaccess. I have the applicable section of my apache file pasted below. In addition to that, I put some of the main settings into my main apache config, the ETags, DEFLATE, DefaultCharset, and those other settings.
If anyone has any suggestions on where to start with this, I'd appreciate it. It's driving me nuts.
Thank you!
-- Snip apache's config -- # Setup Permissions
<Directory /> Options None AllowOverride None Order deny,allow Deny from all </Directory> Alias /mail /usr/local/www/roundcube <Directory "/usr/local/www/roundcube"> Options SymLinksIfOwnerMatch Order allow,deny Allow from my.ip.add.ress RewriteEngine On RewriteRule ^favicon.ico$ skins/default/images/favicon.ico RewriteRule .svn/ - [F] RewriteRule ^README|INSTALL|LICENSE|SQL|bin|CHANGELOG$ - [F] Header merge Cache-Control public env=!NO_CACHE AddType text/x-component .htc </Directory> <Directory "/usr/local/www/roundcube/temp"> Order allow,deny Deny from all </Directory> <Directory "/usr/local/www/roundcube/logs"> Order allow,deny Deny from all </Directory> <Directory "/usr/local/www/roundcube/plugins/enigma/home"> Order allow,deny Deny from all </Directory> <Directory "/usr/local/www/roundcube/config"> Order allow,deny Deny from all </Directory> <Directory "/usr/local/www/roundcube/program"> RewriteEngine On RewriteRule !^js|.*\.gif$ - [F] </Directory>
have you tried without this kind of "secure" apache config? please find my config at the end. and use the standard .htaccess out of roundcube... if this works then, start changing the config then
Andreas
<Directory /path/roundcubemail/> Options +FollowSymLinks # This is needed to parse .htaccess. See its # content before setting AllowOverride to None. AllowOverride All order allow,deny allow from all
</Directory> <Directory /path/roundcubemail/config> Options -FollowSymLinks AllowOverride None </Directory> <Directory /path/roundcubemail/temp> Options -FollowSymLinks AllowOverride None Order allow,deny Deny from all </Directory> <Directory /path/roundcubemail/logs> Options -FollowSymLinks AllowOverride None Order allow,deny Deny from all </Directory>
Roundcube Users mailing list users@lists.roundcube.net http://lists.roundcube.net/mailman/listinfo/users