Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Unable to access webmail: 404 The requested URL was not found on this server  (Read 4210 times)

0 Members and 2 Guests are viewing this topic.

sibij

  • Guest
[bUnable to access webmail: 404 The requested URL was not found on this server ][/b]

Symptoms

Unable to open Horde or Roundcube webmail:

Code: [Select]
The requested URL /roundcube/index.php was not found on this server.
Apache Server at webmail.example.com Port 80

or:

404 page not found

Configuration file for webmail is missing:

Code: [Select]
# httpd -S | grep "/example.com"
        port 7080 namevhost example.com (/etc/httpd/conf/plesk.conf.d/vhosts/example.com.conf:114)
        port 7081 namevhost example.com (/etc/httpd/conf/plesk.conf.d/vhosts/example.com.conf:10)
Syntax OK

Apache configuration file /etc/httpd/conf.d/zz010_psa_httpd.conf (for CentOS, RedHat, CloudLinux) or /etc/apache2/conf-enabled/zz010_psa_httpd.conf (for Debian, Ubuntu) may not contain include directive for webmail:

Code: [Select]
grep -r IncludeOptional /etc/httpd/conf.d/zz010_psa_httpd.conf | grep webmail
Cause

Misconfiguration of the webserver.

Resolution



1.Connect to the server using SSH

2. If /etc/httpd/conf.d/zz010_psa_httpd.conf does not contain include directive for webmail, add it:

3. Open /etc/httpd/conf.d/zz010_psa_httpd.conf file in any text editor, for example, vi:

Code: [Select]
vi /etc/httpd/conf.d/zz010_psa_httpd.conf4. Insert the following line in the end of the file:
Code: [Select]
IncludeOptional '/etc/httpd/conf/plesk.conf.d/webmails/*.conf'
If the server is Debian or Ubuntu, insert the following line in /etc/apache2/conf-enabled/zz010_psa_httpd.conf file:
Code: [Select]
IncludeOptional '/etc/apache2/plesk.conf.d/webmails/*.conf5.Run website reconfiguration to re-generate configuration files for webmail:

Code: [Select]
# plesk repair web example.com