HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Installation/Configuration (
-   -   webmail - Internal Server Error (

007007 14th February 2013 02:34

webmail - Internal Server Error

I have ispconfig latest release and debian, when I try to access to webmail ( I got:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.16 (Debian) Server at Port 443

How I can fix the issue? I have purchased a SSL but still the problem :(


till 14th February 2013 10:19

Please üpost the exact error message from the error.log of the website and which tutorial did you use to install ispconfig?

007007 14th February 2013 11:27

Hi Till,

Default installation of debian. in error log I see:

[Thu Feb 14 10:25:26 2013] [error] [client] SoftException in Application.cpp:221: File "/usr/share/roundcube/index.php" is not in document root of Vhost "/var/www/MYSITE/web"
[Thu Feb 14 10:25:26 2013] [error] [client] Premature end of script headers: index.php
[Thu Feb 14 10:25:26 2013] [error] [client] File does not exist: /var/www/MYSITE/web/error/500.html
[Thu Feb 14 10:25:26 2013] [error] [client] File does not exist: /var/www/MYSITE/web/favicon.ico
[Thu Feb 14 10:25:26 2013] [error] [client] File does not exist: /var/www/MYSITE/web/error/404.html

till 14th February 2013 11:31

You have to configure roundcube to use mod_php instead of the php selected by the website. The perfect setuo guide described this in chapter 20.2 for squirrelmail, the roundcuv´be configuration should be similar, but in the roundcube.conf file.

007007 14th February 2013 11:51

I did this part, when I reload apache I got :

root@ks207246:/etc/apache2/conf.d# /etc/init.d/apache2 reload
Reloading web server config: apache2[Thu Feb 14 10:44:44 2013] [warn] The Alias directive in /etc/apache2/conf.d/roundcube.conf at line 6 will probably never ma tch because it overlaps an earlier Alias.
[Thu Feb 14 10:44:44 2013] [warn] _default_ VirtualHost overlap on port 443, the first has precedence

Here is the content of roundcube.conf in apache2/conf.d


# Those aliases do not work properly with several hosts on your apache server
# Uncomment them to use it or adapt them to your configuration
# Alias /roundcube/program/js/tiny_mce/ /usr/share/tinymce/www/
# Alias /roundcube /var/lib/roundcube

Alias /webmail /var/lib/roundcube/

# Access to tinymce files
<Directory "/usr/share/tinymce/www/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
allow from all

<Directory /var/lib/roundcube/>
Options +FollowSymLinks
# This is needed to parse /var/lib/roundcube/.htaccess. See its
# content before setting AllowOverride to None.
AllowOverride All
order allow,deny
allow from all

# Protecting basic directories:
<Directory /var/lib/roundcube/config>
Options -FollowSymLinks
AllowOverride None

<Directory /var/lib/roundcube/temp>
Options -FollowSymLinks
AllowOverride None
Order allow,deny
Deny from all

<Directory /var/lib/roundcube/logs>
Options -FollowSymLinks
AllowOverride None
Order allow,deny
Deny from all

<Directory /usr/share/roundcube>
Options FollowSymLinks
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_admin_flag allow_url_fopen Off
php_value include_path .
php_admin_value upload_tmp_dir /var/lib/roundcube/tmp
php_admin_value open_basedir /usr/share/roundcube:/etc/roundcube:/var/lib/roundcube:/etc/hostname:/etc/mailname:/var/spool/roundcube
php_flag register_globals off
<IfModule mod_dir.c>
DirectoryIndex index.php
# access to configtest is limited by default to prevent information leak
<Files configtest.php>
order deny,allow
deny from all
allow from

007007 15th February 2013 21:34


Any updates please?

007007 20th February 2013 16:44

Any help please?

All times are GMT +2. The time now is 06:01.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.