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)
-   -   Roundcube 500 error after upgrade t0 3.0.5.1 (http://www.howtoforge.com/forums/showthread.php?t=60746)

Captain 28th February 2013 22:30

Roundcube 500 error after upgrade t0 3.0.5.1
 
Hello!

When I upgrade my ISP 3.0.4.6 to 3.0.5.1 on Debian6
Roundcube stop working.
in error.log:

Code:

SoftException in Application.cpp:221: File "/usr/share/roundcube/index.php" is not in document root of Vhost "/var/www/ispconfig/"
Premature end of script headers: index.php

In apache2/conf.d I have symlink file to apache.conf for roundcube

Code:

# 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 /webmail /var/lib/roundcube
    Alias /roundcube /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>


<IfModule mod_rewrite.c>
  <IfModule mod_ssl.c>
    <Location /webmail>
      RewriteEngine on
      RewriteCond %{HTTPS} !^on$ [NC]
      RewriteRule . https://%{HTTP_HOST}:8080%{REQUEST_URI}  [L]

    </Location>
  </IfModule>

<IfModule mod_rewrite.c>
  <IfModule mod_ssl.c>
    <Location /roundcube>
      RewriteEngine on
      RewriteCond %{HTTPS} !^on$ [NC]
      RewriteRule . https://%{HTTP_HOST}:8080%{REQUEST_URI}  [L]
    </Location>
  </IfModule>
</IfModule>

How can I solve it?

Thank you.

Captain 1st March 2013 00:17

I reinstall roundcube - and still the same problem.
In log file same errors.

What to do?

Captain 1st March 2013 00:35

Problem is solved by disable suphp.
But it is not a solution.

Some one solved this problem another way?

trexen 1st March 2013 10:06

How did you disable suphp ?

did you install roundqube under a site? i have installed roundqube under /var/www/webamil and don know how to disable suphp, help plz

rgds
Marcus

till 1st March 2013 10:33

Quote:

Originally Posted by trexen (Post 292967)
How did you disable suphp ?

did you install roundqube under a site? i have installed roundqube under /var/www/webamil and don know how to disable suphp, help plz

rgds
Marcus

Which Linux distribution do you use?

trexen 1st March 2013 10:45

Sorry, Debian Squeeze 6 isp 3.5.1 latest

Captain 1st March 2013 10:51

Quote:

Originally Posted by trexen (Post 292967)
How did you disable suphp ?

did you install roundqube under a site? i have installed roundqube under /var/www/webamil and don know how to disable suphp, help plz

rgds
Marcus

Hello I install it under /var/www/webmail

to disable suphp:

a2dismod suphp
/etc/init.d/apache2 restart


But as I told here, in my opinion it is not a solution.
because i try to add it to open_base dir, try to modify htaccess but problemm still not solved.
Need to ask Till or Falko because it is ISPCOnfig issue.

Thank you.

till 1st March 2013 11:21

Quote:

Originally Posted by Captain (Post 292983)
Hello I install it under /var/www/webmail

to disable suphp:

a2dismod suphp
/etc/init.d/apache2 restart


But as I told here, in my opinion it is not a solution.
because i try to add it to open_base dir, try to modify htaccess but problemm still not solved.
Need to ask Till or Falko because it is ISPCOnfig issue.

Thank you.


Which URL do you use to access roundcube? Dont use port 8080 to access any software beside ispconfig, for other softeware there is a apps vhost which is on port 8081 by default.

Captain 1st March 2013 11:29

Hello Till!

To access to roundcube in past (on ISPCOnfig 3.0.4.6) we use https://doamin.com:8080/webmail

Now without suphp we also use this link.

As I correct understand you, now I need to reconfigure apache conf to use port 8081 for roundcube?
Correct link should be https://domain.com:8081/webmail

Code:

<IfModule mod_rewrite.c>
  <IfModule mod_ssl.c>
    <Location /webmail>
      RewriteEngine on
      RewriteCond %{HTTPS} !^on$ [NC]
      RewriteRule . https://%{HTTP_HOST}:8081%{REQUEST_URI}  [L]
    </Location>
  </IfModule>
</IfModule>

Correct?

till 1st March 2013 11:58

Quote:

As I correct understand you, now I need to reconfigure apache conf to use port 8081 for roundcube?
Correct link should be https://domain.com:8081/webmail
Yes.

But you dont have to deactivate suphp, instead you can also configure roundcube to use mod_php by using a setup similar to the one that we describe in the perfect server guides for squirrelmail.

For everyone who wants to deactivate suphp for global applications like webmail:

edit the file /etc/apache2/mods-available/suphp.conf and comment out the directives as described inside chapter 14:

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

the procedire should work for Ubuntu and Debian Linux. Then restart apache.


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

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