Thread: webmail url
View Single Post
  #9  
Old 6th August 2011, 13:26
mentes mentes is offline
Senior Member
 
Join Date: Aug 2011
Location: Spain
Posts: 132
Thanks: 4
Thanked 14 Times in 13 Posts
Default

If I don't create any "site" I can access through www.domain.com/webmail but when I create a "site" I can access only through www.domain.com:8080/webmail

In www.domain.com/webmail I get Error 500 - Internal Server Error and in /var/www/domain.com/log/error.log I get this:

Code:
[Sat Aug 06 12:37:37 2011] [error] [client 81.202.46.31] SoftException in Application.cpp:221: File "/usr/share/roundcube/index.php" is not in document root of Vhost "/var/www/domain.com/web"
[Sat Aug 06 12:37:37 2011] [error] [client 81.202.46.31] Premature end of script headers: index.php
[Sat Aug 06 12:37:37 2011] [error] [client 81.202.46.31] File does not exist: /var/www/domain.com/web/favicon.ico, referer: http://domain.com/webmail/
I get the same result and error, with ssl enabled or disabled (if I disable ssl I comment mod_rewrite rules on /etc/roundcube/apache.conf)

I get that error with PHP: Disabled, Fast-CGI and SuPHP

And with CGI, Mod-PHP I get:

Code:
[Sat Aug 06 13:08:18 2011] [error] [client 81.202.46.31] PHP Warning:  include(): open_basedir restriction in effect. File(/usr/share/php/PEAR.php) is not within the allowed path(s): (/var/www/clients/client4/web3/web:/var/www/clients/client4/web3/tmp:/var/www/domain.es/web:/srv/www/domain.es/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/usr/share/roundcube/) in /usr/share/roundcube/program/include/iniset.php on line 99
[Sat Aug 06 13:08:18 2011] [error] [client 81.202.46.31] PHP Warning:  include(/usr/share/php/PEAR.php): failed to open stream: Operation not permitted in /usr/share/roundcube/program/include/iniset.php on line 99
[Sat Aug 06 13:08:18 2011] [error] [client 81.202.46.31] PHP Warning:  include(): Failed opening 'PEAR.php' for inclusion (include_path='/var/lib/roundcube/:/var/lib/roundcube/program:/var/lib/roundcube/program/lib:/var/lib/roundcube/program/include:.:/usr/share/php:/usr/share/pear') in /usr/share/roundcube/program/include/iniset.php on line 99
[Sat Aug 06 13:08:18 2011] [error] [client 81.202.46.31] PHP Fatal error:  Class 'PEAR' not found in /usr/share/roundcube/program/include/iniset.php on line 122
I try adding /usr/share/roundcube/ to open_basedir too.

Note:
I can access to www.domain.com/phpmyadmin always, without typing port.
It's a fresh installation on Debian 6.0.2.1 following "The Perfect Server Howto" step by step carefully.
Reply With Quote