roudncube doesn't work

Discussion in 'ISPConfig 3 Priority Support' started by 007007, Jul 13, 2013.

  1. 007007

    007007 New Member

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Which guide did you use to nstall your server and which guide did you use to install roundcube?
     
  3. 007007

    007007 New Member

    It's preinstallation, from OVH.

    I choosed debian 6 - ispconfig, and then it's installed.

     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    O,I dont know the OVH server images in detail. But as its a debian system, you should find the roundcube apache config file in the directory /etc/apache2/conf.d/. Take a look into th file to see how the Alias is named. It might be that they did not add a alias for /webmail
     
  5. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    The link throws an error 500 - you should have a look into your apache error log.
     
  6. 007007

    007007 New Member

    Hi,

    it seems there is some erros in apache log:

    Code:
    [Mon Jul 15 19:40:35 2013] [error] [client 126.217.126.47] PHP Warning:  include(PEAR.php): failed to open stream: No such file or directory in /usr/share/roundcube/program/include/iniset.php on line 99
    [Mon Jul 15 19:40:35 2013] [error] [client 126.217.126.47] 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:.') in /usr/share/roundcube/program/include/iniset.php on line 99
    [Mon Jul 15 19:40:35 2013] [error] [client 126.217.126.47] PHP Fatal error:  Class 'PEAR' not found in /usr/share/roundcube/program/include/iniset.php on line 122
    how I can fix that? all my website works, I have only problem with roundcube
     
  7. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Maybe your installation lacks installation of the pear package.
    Try installing the php (apt-get install php-pear).
     
  8. 007007

    007007 New Member

    I'll, but it's safe to do it? it will not overwrite some configuration of php ?
     
  9. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Pear should not overwrite PHP config if you do not update PHP packages.
     
  10. 007007

    007007 New Member

    I just did, but still the issue, also I can't restart apache, it seems there is some issues on it:


    Code:
    Restarting web server: apache2[Mon Jul 15 23:34:35 2013] [warn] NameVirtualHost 90.23.203.76:80 has no VirtualHosts
    [Mon Jul 15 23:34:35 2013] [warn] NameVirtualHost 90.23.203.76:443 has no VirtualHosts
    [Mon Jul 15 23:34:35 2013] [warn] NameVirtualHost *:443 has no VirtualHosts
    [Mon Jul 15 23:34:35 2013] [warn] NameVirtualHost *:80 has no VirtualHosts
     ... waiting [Mon Jul 15 23:34:36 2013] [warn] NameVirtualHost 90.23.203.76:80 has no VirtualHosts
    [Mon Jul 15 23:34:36 2013] [warn] NameVirtualHost 90.23.203.76:443 has no VirtualHosts
    [Mon Jul 15 23:34:36 2013] [warn] NameVirtualHost *:443 has no VirtualHosts
    [Mon Jul 15 23:34:36 2013] [warn] NameVirtualHost *:80 has no VirtualHosts
    How I can fix these issues?

    Thanks again
     
    Last edited: Jul 16, 2013
  11. craig baker

    craig baker Member HowtoForge Supporter

    roundcube problems

    I got roundcube up and going --- Ill try and help.
    the messages you list in your posts are warnings everyone gets those ignore them...
     
  12. 007007

    007007 New Member

    do you have idea how fix roundcube issue please?
     
  13. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Have the error messages in the apache error log changed since you installed Pear?
     
  14. 007007

    007007 New Member

    the same error as before :

    PHP Fatal error: Class 'PEAR' not found in /usr/share/roundcube/program/include/iniset.php on line 122

    I installed pearl with your settings, but not sure if apache is restarted because it displayed to me some warnings.
     
  15. till

    till Super Moderator Staff Member ISPConfig Developer

    If the warnings were sometjing like "NameVirtualhost .... has no virtualhosts" then it restarted fine, these wranings can be ignored.
     
  16. till

    till Super Moderator Staff Member ISPConfig Developer

    Regarding the roundcube issue, normally apt should have installed all required dependencies automatically, you can try to reinstall roundcube with:

    apt-get install --reinstall roundcube
     
  17. 007007

    007007 New Member

    Hi,

    I just did, but still the issue :

    PHP Warning: include(PEAR.php): failed to open stream: No such file or directory in /usr/share/roundcube/program/include/iniset.php on line 99

    I'm thinking that pear path is not mentioned in php.ini or something like that?
     
  18. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the output of this command:

    grep include_path /etc/php5/apache2/php.ini

    and check the roundcube file in /etc/apache2/conf.d/ if there is a different include_path defined there.
     
  19. 007007

    007007 New Member

    Hi

    Code:
    root@ks:~# grep include_path /etc/php5/apache2/php.ini
    ; (directory must also be in include_path or full path must
    ;include_path = ".:/usr/share/php"
    ;include_path = ".;c:\php\includes"
    ; PHP's default setting for include_path is ".;/path/to/php/pear"

    roundcube conf

    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 /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>
    
    #insert these lines
    <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 /path/to/my/roundcube/temp
    php_flag register_globals off
    </IfModule>
    
    <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>
    
    
     
  20. till

    till Super Moderator Staff Member ISPConfig Developer

    Add a #in front of the line:

    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

    in roundcube.conf and restart apache. If roundcube works then, you will have to add the path o pear in that line, separated by :

    the path to pear is normally /usr/share/php
     

Share This Page