ISPConfig installation and configuration on CentOS 7/RHEL 7

0
845

ISPConfig

ISPConfig is the open source Web hosting Control panel . which runs under Linux Operating System supports manage Apache, DNS, FTP, Email Services , Client Services and Databases through Web interface. It is most widely used Web Hosting Control panels like C Panel and Sentora. It provides various level of users i.e Administrator, Client, Email-user and re-seller.

In this article, we will be known about the installation of ISPConfig installation and basic configuration on Cent OS 7 and RHEL 7.

Now make sure that system is up to date and then install Epel Repository.

#yum -y install epel-release

Install LAMP Stack by using following command

#yum -y install httpd mariadb mariadb-server php php-mysql phpmyadmin php-xml php-mcrypt

Now install the php modules and some prerequesties as follows

#yum -y install php-ldap 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-develmod_ssl 

Enable and start httpd amd MariaDB services

#systemctl enable httpd mariadb
#systemctl start httpd mariadb

Set the password for MariaDB root user by using following command

#mysql_secure_installation

Now install BIND and Dovecot services as follows

#yum -y install dovecot dovecot-mysql dovecot-pigeonhole bind bind-utils

Now start the dovecot service by using systemctl command.

#systemctl start dovecot

Install the pure FTP,ClamAV, Amavisd and SpamAssassin as follows

#yum -y install getmail pureftp amavisd-new spamassassin clamav clamav-update

Now Download the latest version of ispconfig from their official site.

#wget https://excellmedia.dl.sourceforge.net/project/ispconfig/ISPConfig%203/ISPConfig-3.1.2/ISPConfig-3.1.2.tar.gz

Once the download completes extract it by using tar command and change to the directory.


#tar -xzf  ISPConfig-3.1.2.tar.gz
#cd ispconfig3_install/
#cd install

Now run the following command to start the installatio of ispconfig


[root@techbuddies install]# php -q install.php 


--------------------------------------------------------------------------------
 _____ ___________   _____              __ _         ____
|_   _/  ___| ___ \ /  __ \            / _(_)       /__  \
  | | \ `--.| |_/ / | /  \/ ___  _ __ | |_ _  __ _    _/ /
  | |  `--. \  __/  | |    / _ \| '_ \|  _| |/ _` |  |_ |
 _| |_/\__/ / |     | \__/\ (_) | | | | | | | (_| | ___\ \
 \___/\____/\_|      \____/\___/|_| |_|_| |_|\__, | \____/
                                              __/ |
                                             |___/ 
--------------------------------------------------------------------------------


>> Initial configuration  

Operating System: CentOS 7.3

    Following will be a few questions for primary configuration so be careful.
    Default values are in [brackets] and can be accepted with .
    Tap in "quit" (without the quotes) to stop the installer.


Select language (en,de) [en]: 

Installation mode (standard,expert) [standard]: 

Full qualified hostname (FQDN) of the server, eg server1.domain.tld  [techbuddies]: 

MySQL server hostname [localhost]: 

MySQL server port [3306]: 

MySQL root username [root]: 

MySQL root password []: password

MySQL database to create [dbispconfig]: 

MySQL charset [utf8]: 

Configuring Postfix
Generating a 4096 bit RSA private key
................................................................................................................................................................................++
..............................................................++
writing new private key to 'smtpd.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [XX]:
State or Province Name (full name) []:
Locality Name (eg, city) [Default City]:
Organization Name (eg, company) [Default Company Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (eg, your name or your server's hostname) []:
Email Address []:
Configuring Postfix
Configuring Dovecot
Configuring Spamassassin
Configuring Amavisd
Configuring Getmail
Configuring BIND
Configuring Pureftpd
Configuring Apache
Configuring vlogger
Configuring Apps vhost
Configuring Jailkit
Configuring Database
Configuring Bastille Firewall
Configuring Apps vhost
Installing ISPConfig
ISPConfig Port [8080]: 

Admin password [admin]: 

Do you want a secure (SSL) connection to the ISPConfig web interface (y,n) [y]: 

Generating RSA private key, 4096 bit long modulus
...................................................................++
......++
e is 65537 (0x10001)
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [XX]:
State or Province Name (full name) []:
Locality Name (eg, city) [Default City]:
Organization Name (eg, company) [Default Company Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (eg, your name or your server's hostname) []:
Email Address []:

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
writing RSA key
			

Configuring DBServer
Installing ISPConfig crontab
Installing ISPConfig crontab
no crontab for root
Detect IP addresses
Restarting services ...
PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /root/ispconfig3_install/install/install.php on line 624
Installation completed.

Now access the ISPConfig Web interface by using the URL address https://ip-address:8080

Default UserName and password to login ISPConfig dashboard is admin and admin.

Explore all the options on the dashboard to learn more about the ISPConfig. In Next articles, we will be known about How to add sites, Clients, Email is and FTP users. if you want to join this discussion, feel free to leave a comment!