Aaron Kili
Aaron Kili is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, web developer, and currently a content creator for TecMint who loves working with computers and strongly believes in sharing knowledge.

Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.

Join the TecMint Weekly Newsletter (More Than 156,129 Linux Enthusiasts Have Subscribed)
Was this article helpful? Please add a comment or buy me a coffee to show your appreciation.

26 thoughts on “How to Install Roundcube Webmail on CentOS/RHEL 8/7”

  1. Dear Admin

    Reference Step 5. Unable to access http://mail.example.com/installer. I configured nginx.conf to use /var/www/html/ but i am getting 403 forbidden.

    What do I do next?

    Thanks

    Reply
    • @Hoang,

      Seems issue with your Nginx server block file – mail.example.com.conf. Please check the nginx server logs to troubleshoot the error…

      Reply
  2. When import the roundcube table layout to the newly created database:

    # cd /var/www/html/roundcubemail/
    # mysql -u root -p roundcubemail < SQL/mysql.initial.sql
    

    I get error -bash: SQL/mysql.initial.sql: No such file or directory

    Can anyone help me?

    Reply
    • @chardo

      Ensure that you have run the command within the Roundcube installation directory, you can try this:

      # mysql -u root -p roundcubemail </var/www/html/roundcubemail/SQL/mysql.initial.sql
      
      Reply
  3. Anyone has seen this and knows how to go around?

    Something has triggered a missing webpage on your website. This is the default 404 error page for nginx that is distributed with Fedora. It is located /usr/share/nginx/html/404.html

    You should customize this error page for your own site or edit the error_page directive in the nginx configuration file /etc/nginx/nginx.conf.

    Reply
    • @Pierre

      This means that either:

      Nginx can’t connect with the upstream server, the PHP-FPM process, so check this fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; in your server block config.

      OR the HTTP service port 80 or HTTPS(443) is blocked in firewall.

      Try to view the Nginx logs: /var/log/nginx/error.log using cat or tail command.

      Reply
  4. Hi,

    On my server Postfix (SMTP) and roundcube (IMAP) is install and running properly, but at certain instant of time ( say 1 in 50 attempts) when a user login to webmail (roundcube) then it show a error of “no input file” what could be the problem?

    Can anyone give me complete guide, how can i resolve this problem…

    Reply
  5. Reference Step 5. Unable to access http://mail.example.com/installer. I configured nginx.conf to use /var/www/html/ but i am getting 403 forbidden.

    Reply
  6. Hi ! thank for all.

    I have problem when i try to open mail.exemple.com from mozilla show that the site not exist.

    Help me please..

    Reply
    • @Balbaki

      Ensure that you have created a Nginx server block for the Roundcube under /etc/nginx/conf.d/ and configured it very well to serve requests using the address mail.example.com.

      Reply
  7. Very helpful thanks

    If you can please correct the typo: listen = /var/run/php/php-fpm.sock — should be: listen = /var/run/php-fpm/php-fpm.sock as php-fpm did not start for me otherwise.

    Reply
    • @Andrea,

      Thanks for notifying that typo, yes it should be listen = /var/run/php-fpm/php-fpm.sock as php-fpm, corrected in the article.

      Reply

Got something to say? Join the discussion.

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.