Get the most out of your Centmin Mod LEMP stack
Become a Member

Roundcube installation server requirements

Discussion in 'Install & Upgrades or Pre-Install Questions' started by pamamolf, Oct 18, 2014.

  1. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    10:22 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Hi

    Does Centminmod has already what Roundcube needs to install?


    Server Requirements
    • Apache, Lighttpd (>=1.4.13 for SSL), Cherokee, Hiawatha or nginx web server
    • Directory on the Web server allowed to run scripts
    • If using Apache, .htaccess support or configuration to override DirectoryIndex
    • PHP version 5.2.1 or greater with
      • PCRE (Perl-Compatible Regular Expressions)
      • DOM
      • JSON
      • XML
      • Session support
      • Socket support
      • PHP Data Objects (PDO) with driver for either MySQL, PostgreSQL or SQLite (required)
        Note: MySQL database driver requires PHP 5.3 or newer.
      • iconv (recommended)
      • OpenSSL (recommended)
      • Mbstring (optional)
      • FileInfo (optional)
      • Mcrypt (optional)
      • Zip (optional)
      • Pspell (optional)
    • php.ini options:
      • error_reporting E_ALL & ~E_NOTICE (or lower)
      • memory_limit > 16MB (increase as suitable to support large attachments)
      • file_uploads enabled (for attachment upload features)
      • session.auto_start disabled
      • zend.ze1_compatibility_mode disabled
      • suhosin.session.encrypt disabled
      • mbstring.func_overload disabled
      • magic_quotes_runtime disabled
      • magic_quotes_sybase disabled
    • If using MySQL or PostgreSQL, a database server and database user with permission to create tables
      • If using MySQL 5.0.2 or later, disable STRICT_TRANS_TABLES and STRICT_ALL_TABLES
    • OpenSSL and Socket modules for PHP required to connect to secure IMAP or IMAPS, for secure SMTP and to use the spell checker
      • Additionally, the CURL module for PHP is required for spell checking with TinyMCE (HTML WYSIWYG Editor).
    • An IMAP server which supports IMAP 4 rev 1
    • An SMTP server (recommended) or PHP configured for mail delivery


     
  2. eva2000

    eva2000 Administrator Staff Member

    53,148
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    5:22 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Centmin Mod looks to have all above minus IMAP server and while you have SMTP (postfix) it probably needs way more configuring for Roundcube use.. both IMAP server and configuring and installing Roundcube is left up to you as Centmin Mod is provided as is. As is the specific nginx vhost config to serve Roundcube's files
     
  3. hardousse

    hardousse Active Member

    169
    35
    28
    Dec 15, 2015
    Sweden
    Ratings:
    +57
    Local Time:
    10:22 AM
    1.11.*
    10.1*
    Hi
    Did you succeed install roundcube?
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,148
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    5:22 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yes but you may require nginx rewrite rules equiavlent to apache .htaccess mod_rewrites similar added to your nginx domain vhost config file.
     
  5. wmtech

    wmtech Active Member

    167
    44
    28
    Jul 22, 2017
    Ratings:
    +125
    Local Time:
    9:22 AM
    This is an example for nginx location directives for Roundcubemail (needs additional config for server):

    Code (Text):
    #
    # Run Roundcube as a sub-domain virtual host.
    # with special protections
    #
    # Block access to default directories and files under these directories
    location ~ ^/(bin|config|installer|logs|SQL|temp|vendor)($|/.*) { deny all; }
    
    # Block access to default files under top-directory and files start with same name.
    location ~ ^/(CHANGELOG|composer.json|INSTALL|jsdeps.json|LICENSE|README|UPGRADING)($|.*) { deny all; }
    
    # Block plugin config files and sample config files.
    location ~ ^/plugins/.*/config.inc.php.* { deny all; }
    
    # Block access to plugin data
    location ~ ^/plugins/enigma/home($|/.*) { deny all; }
    
    ## Prevent serving any php files as txt....
    location ~ \.php$  { deny all; }
    
    location /  {
    
        root                            /PATH/TO/roundcubemail/public_html;
        # support for csrf url token
        rewrite                         "^/[a-zA-Z0-9]{16}/(.*)" /$1 break;
    
        # maximum upload size for mail attachments
        client_max_body_size            30M;
    
        try_files                       $uri $uri/ /index.php;
        location ~ \.php$  {
            try_files                   $uri =404;
            include /PATH/TO/fastcgi_php.conf;
            fastcgi_split_path_info     ^(.+\.php)(/.*)$;    # cgi.fix_pathinfo=0 must be set in php.ini
            fastcgi_param               SCRIPT_FILENAME $document_root$fastcgi_script_name;
        }
    }