Roundcube is a self hosted webmail interface. You possibly can host this by yourself server and entry emails out of your system although an internet interface. This tutorial will show you how to to put in Roundcube Webmail on CentOS 7 Linux system.
Earlier than We Start
- Launched a CentOS 7 occasion on DigitalOcean.
- Login to occasion by way of SSH as root account
- To entry person Mailbox you might want to set up and configure Dovecot in your system.
Step 1 – Set up LAMP
Roundcube webmail required PHP programming language to run on server. We are going to use Apache as net server and MySQL as database server to configure Roundcube.
To start with allow the required yum repository accommodates up to date packages:
yum set up epel-release
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
rpm -Uvh https://repo.mysql.com/mysql80-community-release-el7-1.noarch.rpm
When you enabled the repositories, set up Apace and PHP with required PHP extensions:
sudo yum –enablerepo=epel,remi-php74 set up httpd
php php-common php-curl php-json php-xml php-mbstring php-imap
php-mysql php-pear-DB php-pspell php-imagick php-mcrypt 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
Yow will discover the MySQL root password from log recordsdata. Run the beneath command to search out the password.
grep “A brief password” /var/log/mysqld.log | tail -n1
Now you’ve the MySQL root account password, let’s run the submit set up script to safe database server.
Full the configuration wizard. Your CentOS 7 system is prepared for the Roundcube set up.
Step 2 – Setup Roundcube Database
We’re utilizing MySQL as database server for the Roundcube webmail. First login to the MySQL server by way of command line.
mysql -u root -p
Then create database and a person for authentication:
mysql> CREATE DATABASE roundcubemail;
mysql> CREATE USER ’roundcube’@’localhost’ IDENTIFIED BY ‘DFksfkksd89ok32&ks’;
mysql> GRANT ALL ON roundcubemail.* to ’roundcube’@’localhost’;
mysql> FLUSH PRIVILEGES;
Step 3 – Obtain Roundcube
Now, go to the Roundcubemail official github repository and obtain the newest avaialble launch. On the time of scripting this tutirial, Roundcubemail 1.4.Three is the newest obtainable model. You possibly can obtain it utilizing the beneath command.
As soon as obtain completed, extract it. Then transfer the listing to the correct location to configure as webroot.
tar -zxvf roundcubemail-1.4.3-complete.tar.gz
mv roundcubemail-1.4.3 /var/www/html/roundcubemail
And set the correct username and permissions to run on net server. The default Apache server runs with person 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 Internet Server
On this step, we have to configure Apache server to host Roundcubemail software. 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.
service httpd restart
Step 5 – Run Roundcube Internet Installer
The Roundcube webmail is configured with Apache. You possibly can entry software in your net browser. Right here you might want to full the net installer wizard, Which you’ll be able to entry as following:
Open the beneath URL in browser. Change area together with your area title:
On the primary web page, you will note the server atmosphere. Make sure that there is no such thing as a error message displaying. 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 title as per your necessities. This can be identification of your webamil. Typically, You will note this in web page titles.
Slide right down to the “Database Setup” part. Replace the main points as per created database and person 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 beneath screenshot.
As soon as the configuration file created efficiently, click on on “Proceed” button.
Within the closing web page of wizard, click on on “Initialize database” button. When you don’t see any button, make your the database particulars you entered in earlier step are right.
The set up wizard has been accomplished right here.
Step 6 – Entry Roundcube Internet Interface
Because the set up has been accomplished. The wizard will present you a message to take away installer listing. You want to take away it manually. Do it with beneath command
sudo rm -rf /var/www/html/roundcubemail/installer/
All executed. 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:
When you see any error, make sure that person is ready to entry mailbox with imap protocol on terminal. To confirm connection join imap utilizing mutt.
mutt -f imap://[email protected]
When you logged in efficiently on Roubcube webmail, you will note the dashbaoad like beneath. This will even present you the e-mail from you account right here.
In case you are not seeing any emails right here, you might want to test Dovecot configuration. Probably the most most likely the Mailbox location configured on e-mail server (postfox/sendmail) shouldn’t be matching the situation on Dovecot server.
On this tutorial, you’ve configured the Roundcube webmail interface in your CentOS 7 linux system. Let’s get pleasure from emailing with the webmail.
roundcube webmail configuration step by step,postfix, dovecot roundcube centos 7,install roundcube centos 6,roundcube webmail download,centos 8 webmail,how to install roundcube mail server on centos,roundcube install script,roundcube webmail older versions