• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Cannot get roundcube working

adx

New Pleskian
Hi all,

I am running Plesk 12.5.30 with a pre configured installation on a virtual Linux server from Strato.
Per default roundcube is not installed, so I used "Updates and Upgrades" to install roundcube.
Seems to be OK so far, but when I choose roundcube as webmailer using the link
http://webmail.mydomain.mail/roundcube I just get a blank page.
I am sure the web access to the page itself is working, if I change the content of the roundcube index.php, I will see my modifications.
I would assume that something during the installation or configuration went wrong, I re-installed several times, but without success.
There is also no database created and the configuration files look like default.

I could manually install roundcube, but if I would like to manually install things, I would not use Plesk.

Is there some known issue with Plesk/Webmailer/Strato?
Anything I can check why this is not working? There is no error log created.

sudo cat /etc/psa-webmail/roundcube/roundcube.conf
Alias = roundcube
Name = roundcube
Version = 1.2.1
Release = ubuntu14.04.build1205160809.16
Docroot = /usr/share/psa-roundcube
Enabled = true

sudo cat /etc/psa-webmail/roundcube/php.ini
; ATTENTION!
;
; DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
; SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.

PHP:
soap.wsdl_cache_limit = 5
include_path = ".:"
cli_server.color = On
mysql.allow_persistent = On
mysqli.max_persistent = -1
session.bug_compat_42 = Off
mysql.connect_timeout = 60
session.use_only_cookies = 1
register_argc_argv = Off
mssql.min_error_severity = 10
session.name = PHPSESSID
mysqlnd.collect_statistics = On
session.hash_function = 0
session.gc_probability = 1
log_errors_max_len = 1024
mssql.secure_connection = Off
pgsql.max_links = -1
variables_order = "GPCS"
ldap.max_links = -1
sybct.allow_persistent = On
max_input_time = 60
odbc.max_links = -1
session.save_handler = files
mysqli.cache_size = 2000
pgsql.auto_reset_persistent = Off
magic_quotes_gpc = Off
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
auto_prepend_file =
sybct.min_client_severity = 10
pgsql.max_persistent = -1
auto_globals_jit = On
soap.wsdl_cache_ttl = 86400
allow_url_fopen = On
zend.enable_gc = On
mysqli.allow_persistent = On
tidy.clean_output = Off
display_startup_errors = Off
user_dir =
session.cookie_lifetime = 0
mysqli.max_links = -1
default_socket_timeout = 60
session.serialize_handler = php
session.hash_bits_per_character = 5
unserialize_callback_func =
pdo_mysql.cache_size = 2000
default_mimetype = "text/html"
session.cache_expire = 180
max_execution_time = 60
mail.add_x_header = On
upload_max_filesize = 32M
ibase.max_links = -1
safe_mode = Off
suhosin.session.encrypt = Off
zlib.output_compression = Off
ignore_repeated_errors = Off
odbc.max_persistent = -1
file_uploads = on
ibase.max_persistent = -1
mysqli.reconnect = Off
mssql.allow_persistent = On
mysql.max_persistent = -1
mssql.max_links = -1
session.use_trans_sid = 0
mysql.default_socket =
mysql.max_links = -1
odbc.defaultbinmode = 1
sybct.max_persistent = -1
output_buffering = 4096
ibase.timeformat = "%H:%M:%S"
doc_root =
log_errors = On
mysql.default_host =
request_order = "GP"
display_errors = Off
mysqli.default_socket =
mysqli.default_pw =
html_errors = On
mssql.compatibility_mode = Off
ibase.allow_persistent = 1
sybct.min_server_severity = 10
mysql.allow_local_infile = On
post_max_size = 33M
asp_tags = Off
memory_limit = 64M
short_open_tag = on
SMTP = localhost
precision = 14
session.bug_compat_warn = Off
session.use_strict_mode = 0
session.gc_maxlifetime = 21600
magic_quotes_runtime = Off
allow_url_include = Off
mysqli.default_host =
mysqli.default_user =
session.referer_check =
register_globals = Off
pgsql.log_notice = 0
mysql.default_port =
pgsql.ignore_notice = 0
mysql.trace_mode = Off
ibase.timestampformat = "%Y-%m-%d %H:%M:%S"
engine = On
odbc.allow_persistent = On
ibase.dateformat = "%Y-%m-%d"
track_errors = Off
max_file_uploads = 20
pgsql.allow_persistent = On
session.auto_start = Off
auto_append_file =
disable_classes =
pdo_mysql.default_socket =
mysql.default_password =
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
smtp_port = 25
sql.safe_mode = Off
session.cookie_path = /
expose_php = off
report_memleaks = On
session.gc_divisor = 500
mssql.max_persistent = -1
serialize_precision = 17
odbc.check_persistent = On
sybct.max_links = -1
mysqlnd.collect_memory_statistics = Off
session.cookie_domain =
session.cookie_httponly =
session.cache_limiter = nocache
enable_dl = Off
mysqli.default_port = 3306
disable_functions =
odbc.defaultlrl = 4096
soap.wsdl_cache_enabled = 1
soap.wsdl_cache_dir = "/tmp"
mssql.min_message_severity = 10
session.use_cookies = 1
mysql.default_user =
mysql.cache_size = 2000
implicit_flush = Off
ignore_repeated_source = Off
bcmath.scale = 0
[/SPOILER]

Thank for your help!
 
Hi adx,

using the link
http://webmail.mydomain.mail/roundcube I just get a blank page.

Did you modify the URL to ".../roundcube". If "yes", could you pls. explain WHY and HOW you modified it? If "no", just leave out the additional "/roundcube" and use the standard URL: http://webmail.example.com

If you experience further issues, pls. consider to post depending entries from your log - files for roundcube ( /var/log/plesk-roundcube/* )


Additional information:
 
  • Like
Reactions: adx
hi UFHH01,

thanks for your reply.
I did not modify the URL, just noticed that both are linking to the same location, showing the same behaviour.

There are no log files to post :-(
Code:
sudo ls -la /var/log/plesk-roundcube/
total 8
drwxr-x---  2 roundcube_sysuser root               4096 Mär 18 14:06 .
drwxrwxr-x 12 root              syslog             4096 Sep 15 10:37 ..
-rw-r--r--  1 roundcube_sysuser roundcube_sysgroup    0 Sep 15 11:58 errors

thanks
AdX
 
Hi adx,

the file "/usr/share/psa-roundcube/config/defaults.inc.php" contains some general LOG - settings, which you are able to adjust to your needs.
Code:
// ----------------------------------
// LOGGING/DEBUGGING
// ----------------------------------

// system error reporting, sum of: 1 = log; 4 = show
$config['debug_level'] = 1;

// log driver:  'syslog' or 'file'.
$config['log_driver'] = 'file';

// date format for log entries
// (read http://php.net/manual/en/function.date.php for all format characters)
$config['log_date_format'] = 'd-M-Y H:i:s O';

// length of the session ID to prepend each log line with
// set to 0 to avoid session IDs being logged.
$config['log_session_id'] = 8;

// Syslog ident string to use, if using the 'syslog' log driver.
$config['syslog_id'] = 'roundcube';

// Syslog facility to use, if using the 'syslog' log driver.
// For possible values see installer or http://php.net/manual/en/function.openlog.php
$config['syslog_facility'] = LOG_USER;

// Activate this option if logs should be written to per-user directories.
// Data will only be logged if a directry <log_dir>/<username>/ exists and is writable.
$config['per_user_logging'] = false;

// Log sent messages to <log_dir>/sendmail or to syslog
$config['smtp_log'] = true;

// Log successful/failed logins to <log_dir>/userlogins or to syslog
$config['log_logins'] = false;

// Log session authentication errors to <log_dir>/session or to syslog
$config['log_session'] = false;

// Log SQL queries to <log_dir>/sql or to syslog
$config['sql_debug'] = false;

// Log IMAP conversation to <log_dir>/imap or to syslog
$config['imap_debug'] = false;

// Log LDAP conversation to <log_dir>/ldap or to syslog
$config['ldap_debug'] = false;

// Log SMTP conversation to <log_dir>/smtp or to syslog
$config['smtp_debug'] = false;
Code:
// ----------------------------------

// SYSTEM
// ----------------------------------

...

// use this folder to store log files
// must be writeable for the user who runs PHP process (Apache user if mod_php is being used)
// This is used by the 'file' log driver.
$config['log_dir'] = '/var/log/plesk-roundcube/';

...


Another possible solution to adjust LOG - settings, is at "/etc/apache2/plesk.conf.d/roundcube.htaccess.inc":
Code:
# WARNING: For PHP 7 the module name in the line below need to be modified!
<IfModule mod_php5.c>
# php_flag    display_errors  Off
# php_flag    log_errors      On
# php_value    error_log    logs/errors

# php_value   upload_max_filesize   5M
# php_value   post_max_size         6M
# php_value   memory_limit          64M

# php_flag    register_globals            Off
# php_flag    zlib.output_compression     Off
# php_flag    magic_quotes_gpc            Off
# php_flag    magic_quotes_runtime        Off
# php_flag    suhosin.session.encrypt     Off

#php_value   session.cookie_path     /
#php_value   session.hash_function   sha256
# php_flag    session.auto_start       Off
# php_value   session.gc_maxlifetime   21600
# php_value   session.gc_divisor       500
# php_value   session.gc_probability   1
</IfModule>

<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^favicon\.ico$ skins/larry/images/favicon.ico

# security rules:
# - deny access to files not containing a dot or starting with a dot
#   in all locations except installer directory
RewriteRule ^(?!installer|\.well-known\/|[a-zA-Z0-9]{16})(\.?[^\.]+)$ - [F]
# - deny access to some locations
RewriteRule ^/?(\.git|\.tx|SQL|bin|config|logs|temp|tests|program\/(include|lib|localization|steps)) - [F]
# - deny access to some documentation files
RewriteRule /?(README\.md|composer\.json-dist|composer\.json|package\.xml|Dockerfile)$ - [F]
</IfModule>

<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
</IfModule>

<IfModule mod_headers.c>
# replace 'append' with 'merge' for Apache version 2.2.9 and later
#Header append Cache-Control public env=!NO_CACHE
# for better privacy/security ask browsers to not set the Referer
#Header set Content-Security-Policy "referrer no-referrer"
</IfModule>

<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 month"
</IfModule>

FileETag MTime Size

<IfModule mod_autoindex.c>
Options -Indexes
</ifModule>
... as you can see, the "standard" setting is commented, so that there are no log - messages logged:
# php_flag log_errors On
# php_value error_log logs/errors


Your server-and-domain-depending APACHE - webmail configuration ( for Plesk 12.5 ) should be located at: "/etc/apache2/plesk.conf.d/roundcube.conf"
Your server-and-domain-depending NGINX - webmail configuration ( for Plesk 12.5 ) should be located at: "/etc/apache2/plesk.conf.d/webmail.conf"
Consider to post the configuration files for further investigations.​
 
Back
Top