Perfect server: Debian 9 (stretch) V1.0 (page 4)

botond published 2019. 01. 21., h - 18:07 time

4. page content

 

Continuation

Perfect server: Debian 9 (Stretch) V1.0 on page 1 of the installer description, we installed the Postfix, Dovecot, MariaDB and rkhunter components, then the second page we continued with SpamAssassin, ClamAV, Apache, PHP, PHP-FPM, phpMyAdmin, Let's Encrypt and PureFTPd. Then a 3. page a BIND DNS server, Webalizer, AWStats web statistics, Jailkit, Fail2Bant, and that UFW firewall.

On this page we will install the RoundCube webmail client, and finally ISPConfig 3 web hosting control panel installs to close the 9 version of Debian 1.0 (Stretch) perfect server.

After completing this description, we will have a complete, shared hosting web server with a lot of extras to get you started on the web at a professional level.

 

 

Install RoundCube webmail client

RoundCube is a user-friendly webmail client with a sophisticated interface that allows you to conveniently manage POP3 or IMAP our account. To install it, run the following apt-get command:

apt-get -y install roundcube roundcube-core roundcube-mysql roundcube-plugins

The installer will bring you some dialogs on the fly that will answer your questions.

First, you will be asked if you want to automatically configure the database that RoundCube basically needs dbconfig-common via:

RoundCube-core Configuration - Automatically configure a basic database using dbconfig-common

Of course, we want you to set it up automatically, so select Yes.

You will then need to enter a password that RoundCube will use to access its database:

RoundCube-core Configuration - Set a MySQL password

With this access we won't have to deal with, so we can press an enter to generate a secure password for you.

Az as originally described here in another third panel it asks for the MySQL root password. I didn't ask, I think because when configuring MySQL / MariaDB set it in the defaults file (/etc/mysql/debian.cnf), which is used automatically in this case. If you do ask someone for it, you have to enter it here. 

But as I read the comments in the original description, this is where it starts. So if you have done the MySQL / MariaDB configuration well in the past, it is normal that you do not require the root password ...

Then we need to configure some settings a /etc/roundcube/config.inc.php file:

nano /etc/roundcube/config.inc.php

Then look for the following two value assignments and set both to localhost:

$config['default_host'] = 'localhost';
$config['smtp_server'] = 'localhost';

Let's save it.

Next, configure the aliases in the RoundCube Apache configuration:

nano /etc/apache2/conf-enabled/roundcube.conf

Here you can remove the comment from the line below:

#    Alias /roundcube /var/lib/roundcube

And / or add another alias:

Alias /webmail /var/lib/roundcube

depending on which subdirectory (s) you want to be able to access the RoundCube webmail interface later.

Here, ISPConfig warns you to use your own aliases to access RoundCube, but do not use the "/ mail" alias, as this will stop the ISPConfig email module.

For my part, I've set up both of these aliases:

# Those aliases do not work properly with several hosts on your apache server
# Uncomment them to use it or adapt them to your configuration
Alias /roundcube /var/lib/roundcube
Alias /webmail /var/lib/roundcube

[...]

Let's restart Apache:

service apache2 reload

And the RoundCube interface is now available from the following addresses:

  • http://192.168.1.120/webmail/
  • http://192.168.1.120/roundcube/

RoundCube - Login screen

Of course a with the minimum IP address set during server installation It will work. I have this address set.

In addition, if you create web pages later in ISPConfig, the interface will also be accessible from the / webmail and / roundcube alias directories below the web pages so that every client can easily access the mail from his / her own web page.

 

 

Installing ISPConfig 3

Download the latest stable version of ISPConfig 3 from wget command, unzip it, and then go to the installer directory:

cd /tmp
wget http://www.ispconfig.org/downloads/ISPConfig-3-stable.tar.gz
tar xfz ISPConfig-3-stable.tar.gz
cd ispconfig3_install/install/

To install, run the following php file from the directory:

php -q install.php

This installer will guide you through the setup process so that you will have your control panel ready to use.

The first language to set is:

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


>> Initial configuration  

Operating System: Debian 9.0 (Stretch) or compatible

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


Select language (en,de) [en]:

English and German are available here. Choose the language that is closest to us. I choose English which is the default state.

Then there are the following questions, most of which only need to confirm the values ​​displayed with Enter:

Installation mode (standard,expert) [standard]: (Enter)
Full qualified hostname (FQDN) of the server, eg server1.domain.tld  [debian9.linuxportal.vm]: Itt mindenkinél a saját FQDN nevet állítja be, tehát (Enter)
MySQL server hostname [localhost]: (Enter)
MySQL server port [3306]: (Enter)
MySQL root username [root]: (Enter)
MySQL root password []: Itt adjuk meg a MySQL root jelszavát, amit beállítottunk
MySQL database to create [dbispconfig]: (Enter)
MySQL charset [utf8]: (Enter)

It then generates a key pair for SMTP, where you also need to enter some information:

Configuring Postgrey
Configuring Postfix
Generating a 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) [AU]:HU
State or Province Name (full name) [Some-State]:Magyarország
Locality Name (eg, city) []:városunk neve
Organization Name (eg, company) [Internet Widgits Pty Ltd]:vállalkozásunk neve
Organizational Unit Name (eg, section) []:Enter
Common Name (e.g. server FQDN or YOUR name) []:szerverünk FQDN neve
Email Address []:email címünk

Then proceed with the installation:

[INFO] service Mailman not detected
Configuring Dovecot
Configuring Spamassassin
Configuring Amavisd
Configuring Getmail
Configuring Jailkit
Configuring Pureftpd
Configuring BIND
Configuring Apache
Configuring vlogger
[INFO] service OpenVZ not detected
Configuring Ubuntu Firewall
[INFO] service Metronome XMPP Server not detected
Configuring Fail2ban
Configuring Apps vhost

Configuring ISPConfig Comes:

Installing ISPConfig
ISPConfig Port [8080]: Enter (vagy adjunk meg egy egyedi portot az ISPConfig eléréséhez)

Admin password [ae60ec4c]: Itt adjunk meg egy jelszót az ISPConfig admin felhasználójának

Re-enter admin password []: Jelszó ismétlés

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

Generating RSA private key, 4096 bit long modulus
...................................................................++++
......................................................................++++
e is 65537 (0x010001)
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) [AU]:HU
State or Province Name (full name) [Some-State]:Magyarország
Locality Name (eg, city) []:városunk neve
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Vállalkozásunk neve
Organizational Unit Name (eg, section) []:Enter
Common Name (e.g. server FQDN or YOUR name) []:Szerverünk teljes (FQDN) neve
Email Address []:Email címünk

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
no crontab for getmail
Detect IP addresses
Restarting services ...
Installation completed.

 

 

Once you've got this done, the ISPConfig installation is ready, you can go to:

https://192.168.1.120:8080

Or everyone has their own set IP address. Additionally, if a custom port other than the 8080 port number was specified during installation, then using it:

ISPConfig 3 - Login

Here you enter the admin user and the password set above, and we're in:

ISPConfig 3 - Control Panel

When you enter the Monitor main menu and see the server status:

ISPConfig 3 - Flawless server status

immaculate condition, everything works properly.

Now the server is ready for use.

If we suddenly do not know where to move on, have a look at the departures Creating the first Web account in the ISPConfig server configuration At the end of which we have already made friends with the ISPConfig 3 control panel.

Also, do not forget about the panel is updated regularly, and what You can read this specification.

 

The installed server VirtualBox image file available in the download section.

 

Conclusion

With this installation, we have gained a stable, feature-rich, secure, and resource-efficient web server with full control, so we can set up our clients' websites or own our own.

This server received the 1.0 version because this page can be considered as the starting point for the perfect server, which will require a lot of extra features and customized solutions in the future in order to host its web pages more efficiently and professionally.

I'll upload the VirtualBox image of the server to the downloads soon so it can be downloaded from there.

 

What's next?

Once you’ve set up your server, you may be wondering how to go about what to do next to get your server up and running. I would recommend it as a first step creating a new web account on our newly created ISPConfig server environment. If this is done, you can install it in a 8 Drupal CMSOr even a 5.2 WordPress content management engine is.

 

 

Navigation

This description consists of several pages: