VOOZH about

URL: https://www.tecmint.com/install-roundcube-webmail-on-centos-7/

⇱ How to Install Roundcube Webmail on CentOS/RHEL 8/7


Skip to content
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.

26 Comments

Leave a Reply
  1. Hi,

    Thanks for article, but I am getting below error.

    504 Gateway Time-out

    Reply
  2. 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
  3. Hi everyone! I follow all steps, but when I access to /installer it shows 403 forbidden.

    How can I fix it?

    Thanks!

    Reply
  4. 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
    • I think this step is after you do the wget, to get this folder first.

      Reply
  5. 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
  6. I have a 502 bad gateway when i tried to go to mail.example.com/installer.

    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
  7. 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
  8. Hello, I have a question. Why exactly Nginx? Why not Apache?

    Reply
    • @Anton,

      Its your choice which web server to choose, you can for Nginx if you want..

      Reply
      • Thanks for your answer. What do you recommend? And what is the fundamental difference between Apache and Nginx as a web server for roundcube?

        Reply
        • @Anton,

          I would recommend Nginx over Apache, as nginx provides better performance than Apache.

          Reply
  9. 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
    • @Zainab

      Check the value of the root parameter in the nginx config, in the example config, its:
      root /var/www/html/roundcubemail;

      You are seeing the error because nginx can’t find an index file in the configured root, or due to permissions issues.

      Reply
      • thank you..it worked.

        Reply
        • @Zainab

          Great, thanks for the feedback.

          Reply
          • I am having the same issue but have check the above and it still shows 403 Forbidden.

  10. 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
  11. 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
  12. A nice summary! I made my own preferential changes and installed Fedora RPMs but otherwise it was good!

    Thanks!

    Reply
    • @Philip

      Okay, many thanks for the feedback.

      Reply

Got Something to Say? Join the Discussion... Cancel reply

Free Course
Get a free Linux course before you go.
Subscribe to TecMint Weekly and get the Learn Linux 7 Days Crash Course free. Read by 34,000+ Linux professionals every Thursday.
Check your email for a magic link to get started.