Applicable to:
- Plesk for Linux
Symptoms
-
Horde/Roundcube webmail is unreachable with one of the following error messages in a web-browser:
PLESK_INFO: Not Found
The requested URL /roundcube/index.php was not found on this server.
Apache Server at webmail.example.com Port 80
PLESK_INFO: The requested URL /login.php was not found on this server.
PLESK_INFO: The requested document was not found on this server.
Web Server at example.com -
When opening webmail.example.com in a web-browser, the Web Server's Default Page is shown or the page it is redirected to the domain example.com.
-
Webmail configuration is missing in Apache:
-
on CentOS/RHEL-based distributions:
# httpd -S | grep "webmail.example.com"
# -
on Debian/Ubuntu-based distributions:
# apache2ctl -S | grep "webmail.example.com"
#
-
Cause
Misconfiguration of the web-server.
Resolution
-
Connect to the Plesk server via SSH.
-
Make sure webmail configuration is included in Apache configuration file
zz010_psa_httpd.conf
using the command below:-
on CentOS/RHEL-based distributions
# grep webmails /etc/httpd/conf.d/zz010_psa_httpd.conf
IncludeOptional '/etc/httpd/conf/plesk.conf.d/webmails/*.conf' -
on Debian/Ubuntu-based distributions
# grep webmails /etc/apache2/conf-enabled/zz010_psa_httpd.conf
IncludeOptional '/etc/apache2/plesk.conf.d/webmails/*.conf'
If the line above does not exist, add it using a text editor (for example, the vi editor).
-
-
Repair server-wide configuration:
# plesk repair web -server
Comments
9 comments
Hi,
the problem exists only with Roundcube, Horde works perfect on my server, CentOS 7.
Even if it would work the solution can't be a lasting one only up to the next update/-grade because the file zz010_psa_httpd.conf starts with the lines:
#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.
Any other proposal?
Best regards
Martin
PS. Astonishing fact is that after running repair the file looks like this (I've deleted the beginning remarks):
Include '/etc/httpd/conf/plesk.conf.d/server.conf'
IncludeOptional '/etc/httpd/conf/plesk.conf.d/webmails/*.conf'
IncludeOptional '/etc/httpd/conf/plesk.conf.d/vhosts/*.conf'
IncludeOptional '/etc/httpd/conf/plesk.conf.d/forwarding/*.conf'
IncludeOptional '/etc/httpd/conf/plesk.conf.d/wildcards/*.conf'
Hello, make sure that you don't have custom templates at /usr/local/psa/admin/conf/templates/custom
Rename the folder and reconfigure again.
If the issue persists or you don't have custom templates, please submit a ticket to support.
Hello Alexandr,
sorry, but I'm not able to submit a ticket because I use a server by Strato which is the Plesk licensee. I don't use a custom template, there are only 2 folders within /usr/local/psa/admin/conf/templates: default and pci_compliance. Within the 'webmail' folder of the 'default' folder are 6 php-files: atmail, horde, nginxWebmail, nginxWebmailPartial, roundcube and webmail. I don't have nginx installed because it's troubling with my nextcloud installation.
I've done a 'reconfigure-all' but all remains the same, Horde webmailer is doing quite well, Roundcube delivers the error message cited within my first comment, 'The requested URL /login.php was not found on this server.'. The exact Plesk Version is 17.5.3 and OS CentOS Linux 7.4.1708 (Core). The server does a fine job since nearly 2 years regarding all other aspects.
Best regards
Martin
@Mbecker, can you please show the output of this command:
# rpm -qa | grep roundcube
Here's it:
[root@xxx-baxxx.de]# rpm -qa | grep roundcube
plesk-roundcube-1.2.7-cos7.build1705171115.16.noarch
Thanks for your patience and support.
Try to reinstall this package:
# wget http://autoinstall.plesk.com/PSA_17.5.3/dist-rpm-CentOS-7-x86_64/opt/roundcube/plesk-roundcube-1.2.7-cos7.build1705171115.16.noarch.rpm
# rpm -i --force plesk-roundcube-1.2.7-cos7.build1705171115.16.noarch.rpm
If the issue persists, please provide the following output:
# grep -ir roundcube /etc/httpd/*
Hi Alexandr,
I did what you proposed and got the following php-error:
Trying to upgrade Roundcube Web Based mail client configs and DB from '1.2.7' to '1.2.7'... PHP Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 8192 bytes) in /usr/share/psa-roundcube/program/include/rcmail.php on line 1431
An error I got to know with some nextcloud cli-functions before in older versions, they've now solved it. My php-cli version is:
# php -v
PHP 7.0.29 (cli) (built: Mar 28 2018 07:46:18) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
Rest of re-installation looks fine:
# rpm -i --force plesk-roundcube-1.2.7-cos7.build1705171115.16.noarch.rpm
Trying to start service mariadb... active
done
Trying to establish test connection... connected
done
Trying to upgrade Roundcube webmail configuration... Upgrade or repair for 'roundcube' (stage 'files') is not required
done
Doing installation proposal
WARNING!
Some problems are found during upgrade Roundcube Web Based mail client configs and DB from '1.2.7' to '1.2.7'. Run /usr/share/psa-roundcube/bin/update.sh manually to complete upgrade.(see log file: /var/log/plesk/install/plesk_17.5.3_installation.log)
results with the same php-error as I expected it.
@Mbecker, is the issue persists?
Good morning Alexandr,
yes, I always get the same error message. Meanwhile I've changed my php-cli-version temporarily to 5.6.34 to get the command '/usr/share/psa-roundcube/bin/update.sh' run without a php-error. The result is:
Executing database schema update.
This instance of Roundcube is up-to-date.
Have fun!
Stupidly I don't have fun.
Please sign in to leave a comment.