Roundcube gives blank screen

Erik H.

Verified User
Joined
Aug 9, 2004
Messages
26
Hi,

We have an issue with a server I have never seen before. For webmail we use roundcube with the alias /webmail set in the httpd-alias.conf to /roundcube. When we use the server hostname and go to http://serverhostname.com/webmail we see the roundcube login page.

When we go to ANY webpage on the server, like http://ww.anydomain.com/webmail we get a blank screen. The error log shows:

[Wed Mar 26 01:37:37.902566 2014] [:error] [pid 32169] [client 213.93.57.192:62492] PHP Warning: Error writing to log file /var/www/html/roundcubemail-0.9.5/logs/errors; Please check permissions in /var/www/html/roundcubemail-0.9.5/program/lib/Roundcube/rcube.php on line 1060
[Wed Mar 26 01:37:37.902904 2014] [:error] [pid 32169] [client 213.93.57.192:62492] PHP Warning: Configuration error. Unsupported database driver: in /var/www/html/roundcubemail-0.9.5/program/lib/Roundcube/rcube.php on line 1160

We have removed and re-installed Roundcube but this didn't resolve the issue. Any ideas on how to fix this?

Regards,
Erik
 
Code:
cd /usr/local/directadmin/custombuild
./build update
./build clean
./build roundcube d
 
What's on line 1060?

What are permissions of the file at /var/www/html/roundcubemail-0.9.5/logs/errors ?

Jeff
 
its permission error - nothing to do with that error above
roundcube could not read its config file

try chmod 644 the config directory

i found out even after ./build roundcube d
it still did not set the file permission for db.inc.php

that should fix your problem hopefully
 
its permission error - nothing to do with that error above
roundcube could not read its config file

try chmod 644 the config directory

i found out even after ./build roundcube d
it still did not set the file permission for db.inc.php

that should fix your problem hopefully

Hi,

I have exactly the same erros as Erik and all of the above hints don't work neither.

Suggestions welcome :)

Best regards,

Wouter
 
I have same problem. When i open mail.domain.com/roundcube its working but domain.com/roundcube show error permisions in apache log and blank page on site.

hostname.com/roundcube also working.
 
Who owns the RoundCube directory and files? On my systems user and group for all are both webapps.

Jeff
 
From a root shell:
Code:
cd /var/www
ls -al *
You should see the user and group and permissions for each file.

Then do the same for the files throwing the error:
Code:
ls -al /var/www/html/roundcubemail-0.9.5/logs/errors
ls -al /var/www/html/roundcubemail-0.9.5/program/lib/Roundcube/rcube.php
Jeff
 
From a root shell:
Code:
cd /var/www
ls -al *
You should see the user and group and permissions for each file.

Then do the same for the files throwing the error:
Code:
ls -al /var/www/html/roundcubemail-0.9.5/logs/errors
ls -al /var/www/html/roundcubemail-0.9.5/program/lib/Roundcube/rcube.php
Jeff

Hi,

Still haven't found a solution....

[root@server html]# ls -al *
-rw-r--r--. 1 root root 44 Oct 30 2012 index.html
lrwxrwxrwx 1 webapps webapps 45 Apr 2 03:55 phpMyAdmin -> /var/www/html/phpMyAdmin-4.1.12-all-languages
-rwxr-xr-x. 1 root root 68 Oct 30 2012 redirect.php
lrwxrwxrwx 1 webapps webapps 19 Mar 27 00:26 roundcube -> roundcubemail-0.9.5
lrwxrwxrwx 1 webapps webapps 19 Mar 26 01:30 squirrelmail -> squirrelmail-1.4.22

phpMyAdmin-4.1.12-all-languages:
total 748
drwxr-xr-x 9 webapps webapps 4096 Apr 2 03:55 .
drwxr-xr-x. 5 root root 4096 Apr 2 03:55 ..
-rw-r--r-- 1 webapps webapps 1569 Mar 27 13:11 browse_foreigners.php
-rw-r--r-- 1 webapps webapps 5568 Mar 27 13:11 ChangeLog
-rw-r--r-- 1 webapps webapps 4829 Mar 27 13:11 changelog.php
-rw-r--r-- 1 webapps webapps 308 Mar 27 13:11 chk_rel.php
-rw-r--r-- 1 webapps webapps 852 Mar 27 13:11 composer.json
-rw-r--r-- 1 webapps webapps 4234 Apr 2 03:55 config.inc.php
-rw-r--r-- 1 webapps webapps 4236 Mar 27 13:11 config.sample.inc.php
-rw-r--r-- 1 webapps webapps 477 Mar 27 13:11 CONTRIBUTING.md
-rw-r--r-- 1 webapps webapps 105 Mar 27 13:11 .coveralls.yml
-rw-r--r-- 1 webapps webapps 4178 Mar 27 13:11 db_create.php
-rw-r--r-- 1 webapps webapps 8870 Mar 27 13:11 db_datadict.php
-rw-r--r-- 1 webapps webapps 401 Mar 27 13:11 db_events.php
-rw-r--r-- 1 webapps webapps 2788 Mar 27 13:11 db_export.php
-rw-r--r-- 1 webapps webapps 505 Mar 27 13:11 db_import.php
-rw-r--r-- 1 webapps webapps 9297 Mar 27 13:11 db_operations.php
-rw-r--r-- 1 webapps webapps 5269 Mar 27 13:11 db_printview.php
-rw-r--r-- 1 webapps webapps 1987 Mar 27 13:11 db_qbe.php
-rw-r--r-- 1 webapps webapps 454 Mar 27 13:11 db_routines.php
-rw-r--r-- 1 webapps webapps 1846 Mar 27 13:11 db_search.php
-rw-r--r-- 1 webapps webapps 872 Mar 27 13:11 db_sql.php
-rw-r--r-- 1 webapps webapps 9465 Mar 27 13:11 db_structure.php
-rw-r--r-- 1 webapps webapps 8277 Mar 27 13:11 db_tracking.php
-rw-r--r-- 1 webapps webapps 364 Mar 27 13:11 db_triggers.php
drwxr-xr-x 5 webapps webapps 4096 Mar 27 13:11 doc
-rw-r--r-- 1 webapps webapps 3122 Mar 27 13:11 error_report.php
drwxr-xr-x 2 webapps webapps 4096 Mar 27 13:11 examples
-rw-r--r-- 1 webapps webapps 37762 Mar 27 13:11 export.php
-rw-r--r-- 1 webapps webapps 18902 Mar 27 13:11 favicon.ico
-rw-r--r-- 1 webapps webapps 2143 Mar 27 13:11 file_echo.php
-rw-r--r-- 1 webapps webapps 15581 Mar 27 13:11 gis_data_editor.php
-rw-r--r-- 1 webapps webapps 20723 Mar 27 13:11 import.php
-rw-r--r-- 1 webapps webapps 2679 Mar 27 13:11 import_status.php
-rw-r--r-- 1 webapps webapps 20300 Mar 27 13:11 index.php
drwxr-xr-x 9 webapps webapps 4096 Mar 27 13:11 js
drwxr-xr-x 15 webapps webapps 12288 Mar 27 13:11 libraries
-rw-r--r-- 1 webapps webapps 18011 Mar 27 13:11 LICENSE
-rw-r--r-- 1 webapps webapps 728 Mar 27 13:11 license.php
drwxr-xr-x 43 webapps webapps 4096 Mar 27 13:11 locale
-rw-r--r-- 1 webapps webapps 1988 Mar 27 13:11 navigation.php
-rw-r--r-- 1 webapps webapps 389 Mar 27 13:11 phpinfo.php
-rw-r--r-- 1 webapps webapps 746 Mar 27 13:11 phpmyadmin.css.php
-rw-r--r-- 1 webapps webapps 1808 Mar 27 13:11 phpunit.xml.nocoverage
-rw-r--r-- 1 webapps webapps 2051 Mar 27 13:11 pmd_display_field.php
-rw-r--r-- 1 webapps webapps 36692 Mar 27 13:11 pmd_general.php
-rw-r--r-- 1 webapps webapps 5081 Mar 27 13:11 pmd_pdf.php
-rw-r--r-- 1 webapps webapps 4560 Mar 27 13:11 pmd_relation_new.php
-rw-r--r-- 1 webapps webapps 2194 Mar 27 13:11 pmd_relation_upd.php
-rw-r--r-- 1 webapps webapps 2589 Mar 27 13:11 pmd_save_pos.php
-rw-r--r-- 1 webapps webapps 2594 Mar 27 13:11 prefs_forms.php
-rw-r--r-- 1 webapps webapps 13994 Mar 27 13:11 prefs_manage.php
-rw-r--r-- 1 webapps webapps 1213 Mar 27 13:11 print.css
-rw-r--r-- 1 webapps webapps 6222 Mar 27 13:11 querywindow.php
-rw-r--r-- 1 webapps webapps 2859 Mar 27 13:11 README
-rw-r--r-- 1 webapps webapps 29 Mar 27 13:11 RELEASE-DATE-4.1.12
-rw-r--r-- 1 webapps webapps 26 Mar 27 13:11 robots.txt
-rw-r--r-- 1 webapps webapps 4004 Mar 27 13:11 schema_edit.php
-rw-r--r-- 1 webapps webapps 1734 Mar 27 13:11 schema_export.php
-rw-r--r-- 1 webapps webapps 1075 Mar 27 13:11 server_binlog.php
-rw-r--r-- 1 webapps webapps 735 Mar 27 13:11 server_collations.php
-rw-r--r-- 1 webapps webapps 2634 Mar 27 13:11 server_databases.php
-rw-r--r-- 1 webapps webapps 615 Mar 27 13:11 server_engines.php
-rw-r--r-- 1 webapps webapps 698 Mar 27 13:11 server_export.php
-rw-r--r-- 1 webapps webapps 452 Mar 27 13:11 server_import.php
-rw-r--r-- 1 webapps webapps 1465 Mar 27 13:11 server_plugins.php
-rw-r--r-- 1 webapps webapps 11668 Mar 27 13:11 server_privileges.php
-rw-r--r-- 1 webapps webapps 2054 Mar 27 13:11 server_replication.php
-rw-r--r-- 1 webapps webapps 577 Mar 27 13:11 server_sql.php
-rw-r--r-- 1 webapps webapps 889 Mar 27 13:11 server_status_advisor.php
-rw-r--r-- 1 webapps webapps 3538 Mar 27 13:11 server_status_monitor.php
-rw-r--r-- 1 webapps webapps 1369 Mar 27 13:11 server_status.php
-rw-r--r-- 1 webapps webapps 1663 Mar 27 13:11 server_status_queries.php
-rw-r--r-- 1 webapps webapps 1507 Mar 27 13:11 server_status_variables.php
-rw-r--r-- 1 webapps webapps 1625 Mar 27 13:11 server_user_groups.php
-rw-r--r-- 1 webapps webapps 1283 Mar 27 13:11 server_variables.php
d--------- 4 webapps webapps 4096 Mar 27 13:11 setup
-rw-r--r-- 1 webapps webapps 1039 Mar 27 13:11 show_config_errors.php
-rw-r--r-- 1 webapps webapps 5507 Mar 27 13:11 sql.php
-rw-r--r-- 1 webapps webapps 3474 Mar 27 13:11 tbl_addfield.php
-rw-r--r-- 1 webapps webapps 5883 Mar 27 13:11 tbl_change.php
-rw-r--r-- 1 webapps webapps 4242 Mar 27 13:11 tbl_chart.php
-rw-r--r-- 1 webapps webapps 2650 Mar 27 13:11 tbl_create.php
-rw-r--r-- 1 webapps webapps 2880 Mar 27 13:11 tbl_export.php
-rw-r--r-- 1 webapps webapps 1657 Mar 27 13:11 tbl_find_replace.php
-rw-r--r-- 1 webapps webapps 1334 Mar 27 13:11 tbl_get_field.php
-rw-r--r-- 1 webapps webapps 3452 Mar 27 13:11 tbl_gis_visualization.php
-rw-r--r-- 1 webapps webapps 590 Mar 27 13:11 tbl_import.php
-rw-r--r-- 1 webapps webapps 1205 Mar 27 13:11 tbl_indexes.php
-rw-r--r-- 1 webapps webapps 2828 Mar 27 13:11 tbl_move_copy.php
-rw-r--r-- 1 webapps webapps 12498 Mar 27 13:11 tbl_operations.php
-rw-r--r-- 1 webapps webapps 1474 Mar 27 13:11 tbl_printview.php
-rw-r--r-- 1 webapps webapps 4650 Mar 27 13:11 tbl_relation.php
-rw-r--r-- 1 webapps webapps 13504 Mar 27 13:11 tbl_replace.php
-rw-r--r-- 1 webapps webapps 3904 Mar 27 13:11 tbl_row_action.php
-rw-r--r-- 1 webapps webapps 2175 Mar 27 13:11 tbl_select.php
-rw-r--r-- 1 webapps webapps 1014 Mar 27 13:11 tbl_sql.php
-rw-r--r-- 1 webapps webapps 4577 Mar 27 13:11 tbl_structure.php
-rw-r--r-- 1 webapps webapps 3927 Mar 27 13:11 tbl_tracking.php
-rw-r--r-- 1 webapps webapps 144 Mar 27 13:11 tbl_triggers.php
-rw-r--r-- 1 webapps webapps 5838 Mar 27 13:11 tbl_zoom_select.php
drwxr-xr-x 4 webapps webapps 4096 Mar 27 13:11 themes
-rw-r--r-- 1 webapps webapps 863 Mar 27 13:11 themes.php
-rw-r--r-- 1 webapps webapps 1348 Mar 27 13:11 transformation_overview.php
-rw-r--r-- 1 webapps webapps 3961 Mar 27 13:11 transformation_wrapper.php
-rw-r--r-- 1 webapps webapps 507 Mar 27 13:11 url.php
-rw-r--r-- 1 webapps webapps 6883 Mar 27 13:11 user_password.php
-rw-r--r-- 1 webapps webapps 550 Mar 27 13:11 version_check.php
-rw-r--r-- 1 webapps webapps 8914 Mar 27 13:11 view_create.php
-rw-r--r-- 1 webapps webapps 3613 Mar 27 13:11 view_operations.php
-rw-r--r-- 1 webapps webapps 1128 Mar 27 13:11 webapp.php

roundcubemail-0.9.5:
total 144
drwxr-xr-x 10 webapps webapps 4096 Mar 27 00:29 .
drwxr-xr-x. 5 root root 4096 Apr 2 03:55 ..
drwxr-xr-x 2 webapps webapps 4096 Mar 27 00:26 bin
-rw-r--r-- 1 webapps webapps 16968 Oct 21 21:39 CHANGELOG
-rw-r--r-- 1 webapps webapps 381 Oct 21 21:39 composer.json-dist
drwxr-xr-x 2 webapps webapps 4096 Mar 27 00:26 config
-rw-r--r-- 1 webapps webapps 1359 Mar 27 00:26 .htaccess
-rw-r--r-- 1 webapps webapps 11999 Oct 21 21:39 index.php
-rw-r--r-- 1 root root 43 Mar 27 00:29 info.php
-rw-r--r-- 1 webapps webapps 8677 Oct 21 21:39 INSTALL
-rw-r--r-- 1 webapps webapps 35147 Oct 21 21:39 LICENSE
drwxr-xr-x 2 webapps webapps 4096 Mar 27 00:26 logs
drwxr-xr-x 30 webapps webapps 4096 Oct 21 21:39 plugins
drwxr-xr-x 8 webapps webapps 4096 Mar 27 00:26 program
-rw-r--r-- 1 webapps webapps 3758 Oct 21 21:39 README.md
-rw-r--r-- 1 webapps webapps 26 Oct 21 21:39 robots.txt
drwxr-xr-x 4 webapps webapps 4096 Oct 21 21:39 skins
drwxr-xr-x 6 webapps webapps 4096 Mar 27 00:26 SQL
drwxr-xr-x 2 webapps webapps 4096 Mar 27 00:26 temp
-rw-r--r-- 1 webapps webapps 2712 Oct 21 21:39 UPGRADING

squirrelmail-1.4.22:
total 128
drwxr-xr-x. 16 webapps webapps 4096 Mar 26 01:30 .
drwxr-xr-x. 5 root root 4096 Apr 2 03:55 ..
-rwxr-xr-x 1 webapps webapps 10798 May 15 2009 ChangeLog.locales
drwxr-xr-x. 5 webapps webapps 4096 Jul 12 2011 class
drwxr-xr-x. 2 webapps webapps 4096 Mar 26 01:30 config
-rwxr-xr-x 1 webapps webapps 102 Aug 2 2005 configure
drwxr-xr-x. 3 webapps webapps 4096 Jul 12 2011 contrib
-rwxr-xr-x 1 webapps webapps 15129 Oct 6 2005 COPYING.locales
drwxr-xr-x. 2 webapps webapps 4096 Jul 12 2011 data
drwxr-xr-x. 3 webapps webapps 4096 Jul 12 2011 doc
drwxr-xr-x. 4 webapps webapps 4096 Jul 12 2011 functions
drwxr-xr-x. 29 webapps webapps 4096 Jul 12 2011 help
drwxr-xr-x. 2 webapps webapps 4096 Mar 26 01:30 images
drwxr-xr-x. 3 webapps webapps 4096 Jul 12 2011 include
-rwxr-xr-x 1 webapps webapps 671 Jan 6 2011 index.php
-rwxr-xr-x 1 webapps webapps 221 Mar 4 2004 install
drwxr-xr-x. 53 webapps webapps 4096 Jul 12 2011 locale
drwxr-xr-x. 19 webapps webapps 4096 Jul 12 2011 plugins
drwxr-xr-x. 2 webapps webapps 4096 Jul 12 2011 po
-rwxr-xr-x 1 webapps webapps 56 Mar 26 2009 README
-rwxr-xr-x 1 webapps webapps 2679 May 25 2009 ReleaseNotes.locales
drwxr-xr-x. 2 webapps webapps 4096 Jul 12 2011 src
drwxr-xr-x. 3 webapps webapps 4096 Jul 12 2011 themes
-rwxr-xr-x 1 webapps webapps 10232 May 15 2009 TRANSLATORS
-rwxr-xr-x 1 webapps webapps 22 Apr 19 2009 version

==

[root@server html]# ls -al /var/www/html/roundcubemail-0.9.5/logs/errors
-rw-r--r-- 1 webapps webapps 0 Mar 26 01:12 /var/www/html/roundcubemail-0.9.5/logs/errors

==

[root@server html]# ls -al /var/www/html/roundcubemail-0.9.5/program/lib/Roundcube/rcube.php
-rw-r--r-- 1 webapps webapps 38654 Oct 21 21:39 /var/www/html/roundcubemail-0.9.5/program/lib/Roundcube/rcube.php

==

Anyone?
 
Try this:
Code:
chown webapps:webapps /var/www/html/redirect.php
I got this owned by webapps on all servers, not by root, it might help.
 
Back
Top