HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   webmail - Internal Server Error (http://www.howtoforge.com/forums/showthread.php?t=60554)

007007 14th February 2013 01:34

webmail - Internal Server Error
 
Hi,

I have ispconfig latest release and debian, when I try to access to webmail (https://MYSITE.com/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, webmaster@MYSITE.com 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 MYSITE.com Port 443


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

Thanks

till 14th February 2013 09: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 10: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 10: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.

http://www.howtoforge.com/perfect-se...ispconfig-3-p6

007007 14th February 2013 10: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


Quote:

# 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>

<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
</Directory>

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

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

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



<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>
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
# access to configtest is limited by default to prevent information leak
<Files configtest.php>
order deny,allow
deny from all
allow from 127.0.0.1
</Files>
</Directory>


007007 15th February 2013 20:34

Hi,

Any updates please?

007007 20th February 2013 15:44

Any help please?


All times are GMT +2. The time now is 22:37.

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