Roundcube is an standard Webmail interface written on PHP programming language. You may entry Mailbox created in your Linux server by way of POP/IMAP on roundcube we interface. This tutorial will assist you to put in Roundcube Webmail on CentOS 8
- Launched a CentOS Eight occasion on DigitalOcean.
- Setup a sudo privileged account and apply preliminary safety by following preliminary server setup
- Login to occasion through SSH as root account
Step 1 – Set up LAMP Server
Roundcube webmail utility is written on PHP programming languege. It makes use of MySQL because the database server. So we required to setup a LAMP server in your server.
All of the packages can be found in default repositories, to put in them kind:
sudo dnf set up httpd
php php-common php-curl php-json php-xml php-mbstring php-imap php-mysqlnd php-cli php-gd
As soon as the set up completed. allow and begin the Apache and MySQL database service.
systemctl allow httpd.service
systemctl begin httpd.service
systemctl allow mysqld.service
systemctl begin mysqld.service
Subsequent, you must set MySQL root account password and apply safety. Run the put up set up script to safe database server.
First set a powerful password for the basis account and full the wizard steps. Your CentOS system is prepared for the Roundcube set up.
Step 2 – Create Roundcube Database
We’re utilizing MySQL because the database server for Roundcube webmail. So first, login to your MySQL server through command line.
mysql -u root -p
Then create database and a consumer for authentication:
CREATE DATABASE roundcubemail;
CREATE USER ’roundcube’@’localhost’ IDENTIFIED BY ‘DFksfkksd89ok32&ks’;
GRANT ALL ON roundcubemail.* to ’roundcube’@’localhost’;
Step 3 – Obtain Roundcube
Roundcube webmail official releases will be downloaded from its github repository. On the time of scripting this tutorial, Roundcubemail 1.4.Four is the newest obtainable model for the set up. You may obtain it utilizing the under command.
After downloading the archive file, extract it. Then transfer the listing to the correct location to configure as webroot.
tar -zxvf roundcubemail-1.4.4-complete.tar.gz
mv roundcubemail-1.4.4 /var/www/html/roundcubemail
And set the correct username and permissions to run on net server. The default Apache server runs with consumer and group named “apache”. The Nginx customers can use “www-data” as username and group.
chown -R apache:apache /var/www/html/roundcubemail
chmod -R 755 /var/www/html/roundcubemail
Step 4 – Configure Apache Net Server
You may deploy Roundcube both as subdirectory url (like: https://instance.com/webmail), or you may deploy directoy on area or subdomain.
For this tutoiral, we’ll deploy it on to subdomain like https://mail.tecadmin.internet. Let’s configure Apache server to host Roundcubemail utility. Create an Apache virtualhost configuration file and add the next values.
vim /and many others/httpd/conf.d/roundcubemail.conf
ServerAdmin [email protected]
ServerAdmin [email protected]
Save your file and restart Apache service.
sudo systemctl restart httpd
Step 5 – Run Roundcube Net Installer
The Roundcube webmail is configured with Apache. You may entry utility in your net browser. Right here you must full the net installer wizard, Which you’ll entry as following:
Open the under URL in browser. Change area along with your area identify:
On the primary web page, you will notice the server surroundings. Ensure that there is no such thing as a error message exhibiting. All of the required PHP extensions are correctly put in.
When you confirm that every one the required extension’s are put in. Slide right down to backside of web page and click on “Subsequent” to proceed wizard.
Enter the product identify as per your necessities. This will probably be identification of your webamil. Typically, You will note this in web page titles.
Slide right down to the “Database Setup” part. Replace the small print as per created database and consumer in above steps.
Once more slide right down to the underside of the web page and click on on “CREATE CONFIG” button. You will note the message like under screenshot.
As soon as the configuration file created efficiently, click on on “Proceed” button.
Within the last web page of wizard, click on on “Initialize database” button. For those who don’t see any button, make your the database particulars you entered in earlier step are right.
The set up wizard has been accomplished now.
Step 6 – Entry Roundcube Webmail
Because the set up has been accomplished. The wizard will present you a message to take away installer listing. You have to take away it manually. Do it with under command
sudo rm -rf /var/www/html/roundcubemail/installer/
All finished. Entry the webmail interface in one other tab with the area you configured. You will note the login web page. Enter the login particulars right here:
For those who see any error, make certain consumer is ready to entry mailbox with imap protocol on terminal. To confirm connection join imap utilizing mutt.
mutt -f imap://[email protected]
After profitable login to the Roubcube webmail, you will notice the dashboard just like the screenshot under. This may also present you the e-mail from you account right here.
In case you are not seeing any emails right here, you must test Dovecot configuration. Essentially the most most likely the Mailbox location configured on e-mail server (Postfix or Sendmail) shouldn’t be matching the placement on Dovecot server.
On this tutorial, you find out about set up and configuration of Roundcube webmail interface on a CentOS Eight linux system. Let’s use the webmail for the emailing.