root password<\/a>.<\/p>\nmysql_secure_installation<\/pre>\nWhen prompted, answer the questions below by following the guide.<\/p>\n
Enter current password for root (enter for none): Press the [Enter] key - we do not have a password currently set.<\/strong>\r\nSet root password? [Y\/n]: Y<\/strong>\r\nNew password: Enter your password\r\nRe-enter new password: Repeat your password\r\nRemove anonymous users? [Y\/n]: Y<\/strong>\r\nDisallow root login remotely? [Y\/n]: Y<\/strong>\r\nRemove test database and access to it? [Y\/n]: Y<\/strong>\r\nReload privilege tables now? [Y\/n]: Y<\/strong><\/pre>\nRestart the MariaDB server so that the changes take effect.<\/p>\n
<\/span>Step 3: Install Dovecot<\/span><\/h2>\nYou can execute the following command to install Dovecot on your server:<\/p>\n
yum -y install dovecot dovecot-mysql dovecot-pigeonhole<\/pre>\nWhen the installation is complete, create a dovecot-sql.conf<\/code> file using the command below,\u00a0after which you’ll make a symbolic link pointing back to the file you just created:<\/p>\ntouch \/etc\/dovecot\/dovecot-sql.conf\r\nln -s \/etc\/dovecot\/dovecot-sql.conf \/etc\/dovecot-sql.conf<\/pre>\nNow use the following commands to restart and enable the Dovecot service on the server.<\/p>\n
systemctl restart dovecot.service\r\nsystemctl enable dovecot.service<\/pre>\n<\/span>Step 4: Install Amavisd-new, ClamAV, and SpamAssassin<\/span><\/h2>\nBy using the next command you will install ClamAV, Amavisd, and SpamAssassin, along with all of these additionally required packages, all in one go.<\/p>\n
yum -y install amavisd-new spamassassin clamav clamd clamav-data clamav-devel clamav-update perl-DBD-mysql<\/pre>\n<\/span>Step 5: Install PHP and Apache2 Modules<\/span><\/h2>\nIn this step, we will install some required Apache and PHP modules, such as mod_php, mod_fcgid, php-mysql, and so on. To proceed with the installation of the modules, use the command below:<\/p>\n
yum -y install php-ldap php-mysql php-odbc php-pear php php-devel php-gd php-imap php-xml php-xmlrpc php-pecl-apc php-mbstring php-mcrypt php-mssql php-snmp php-soap php-tidy curl curl-devel mod_fcgid php-cli httpd-devel php-fpm perl-libwww-perl ImageMagick libxml2 libxml2-devel python-devel<\/pre>\n<\/span>Step 6: Install PureFTPd<\/span><\/h2>\nThe most popular method for transferring files from one server to another or from one place to other is through the FTP protocol. In order to use this protocol, you’ll need to install an FTP server first. We will install PureFTP server because it is simple to install and easy-to-use. To install it on your server you only need to execute the following command:<\/p>\n
yum -y install pure-ftpd<\/pre>\n<\/span>Step 7: Install BIND<\/span><\/h2>\nBIND, or named<\/code>, is one of the most commonly used Domain Name System software packages available on the Internet. In order for ISPConfig to be able to manage and configure the DNS settings, you need to install the following packages on the server:<\/p>\nyum -y install bind bind-utils<\/pre>\nEdit the \/etc\/named.conf file, remove all the lines and add the following lines:<\/p>\n
options {\r\n listen-on port 53 { any; };\r\n directory \"\/var\/named\";\r\n dump-file \"\/var\/named\/data\/cache_dump.db\";\r\n statistics-file \"\/var\/named\/data\/named_stats.txt\";\r\n memstatistics-file \"\/var\/named\/data\/named_mem_stats.txt\";\r\n allow-query { any; };\r\n\t\t\t\tallow-recursion {\"none\";};\r\n recursion no;\r\n};\r\nlogging {\r\n channel default_debug {\r\n file \"data\/named.run\";\r\n severity dynamic;\r\n };\r\n};\r\nzone \".\" IN {\r\n type hint;\r\n file \"named.ca\";\r\n};\r\ninclude \"\/etc\/named.conf.local\";<\/pre>\nCreate a new ‘named.conf.local’ file in the \/etc directory on your server:<\/p>\n
touch \/etc\/named.conf.local<\/pre>\nRestart the named service for the changes to take effect:<\/p>\n
service named restart<\/pre>\n