GNU/Linux >> Linux Esercitazione >  >> Debian

Il server sperimentale ISPConfig - Debian Stretch (Apache, MySQL, PHP 7, Pure-FTPD e ISPConfig 3.1)

Questo tutorial spiega come installare l'ultima versione di sviluppo di ISPConfig 3 utilizzando un repository stretch Debian con i rispettivi pacchetti Debian.

L'obiettivo di questo tutorial è più per scopi sperimentali e di test che per ambienti produttivi.

Questa funzionalità sperimentale è fornita da ncomputers.org come tentativo di contribuire al miglioramento continuo di ISPConfig.

Se questa funzionalità ha successo, potrebbero esserci possibilità di estendere il suo supporto e alla fine ISPConfig potrebbe avere basi solide per richiedere la distribuzione di ISPConfig tramite repository ufficiali debian.

Nel caso in cui desideri installare più funzionalità di quelle fornite da questo tutorial, consulta la documentazione ufficiale di ISPConfig.

Si consiglia di utilizzare una nuova installazione di debian stretch, a causa di questi consigli:

  1. ispconfig-git pacchetto installa il contenuto di ISPConfig git master branch all'interno di /root/ispconfig3 cartella.
  2. ispconfig-apache pacchetto disabilita tutti i file di configurazione ei moduli all'interno di /etc/apache2 .

Questo tutorial dovrebbe fornire un'implementazione completamente produttiva di ISPConfig con:server Apache HTTP, server FTP puro-ftpd, SSL Let's encrypt certificati, PHP 7 con server Fast-CGI, servizi NTP, server di database MySQL, servizi WebDAV e interfaccia ISPConfig.

1 Prepara il sistema

1.1 Installa il tuo editor preferito

Se è già installato, puoi saltare questo passaggio.

apt-get install editor

1.2 Configurare il nome host

Il nome host è composto da due parti:un sottodominio e un dominio. Nell'esempio seguente, 1a corrisponde alla parte del sottodominio e ncomputers.org alla parte di dominio. Sostituiscili di conseguenza in /etc/hosts file e comandi di seguito.

editor /etc/hosts
::1       1a.ncomputers.org 1a localhost
127.0.0.1 1a.ncomputers.org 1a localhost

Aggiorna il nome host

echo 1a > /etc/hostname; hostname 1a

1.3 Installa GNU wget

Nel caso in cui il tuo sistema abbia già wget , puoi saltare questo passaggio.

apt-get install wget --no-install-recommends

1.4 Installa portachiavi

Questo pacchetto debian include la chiave pubblica del repository stretch debian di ncomputers.org.

wget http://ncomputers.org/debian/keyring.deb
dpkg -i keyring.deb
rm keyring.deb

1.5 Installa l'elenco delle fonti

Questo pacchetto debian include l'elenco dei sorgenti del repository stretch debian ncomputers.org.

Nota :È anche possibile scrivere la riga commentata di seguito in /etc/apt/sources.list , invece di installare il seguente pacchetto debian, ma se queste fonti dovessero cambiare in futuro, dovresti aggiornarle manualmente.

#deb http://ncomputers.org/debian stretch main
wget http://ncomputers.org/debian/stretch.deb
dpkg -i stretch.deb
rm stretch.deb

1.6 Aggiorna l'elenco delle fonti

Una volta installati il ​​portachiavi e l'elenco delle fonti.

apt-get update

2 Installa le funzionalità di ISPConfig

2.1 Installare il server MySQL e le sue dipendenze

Questo metapacchetto installa tutte le dipendenze ISPConfig per il server MySQL ed esegue alcune attività di configurazione.

Nota :il server MySQL verrà riavviato e sarà quindi in ascolto su tutte le interfacce di rete.

apt-get install ispconfig-mariadb --no-install-recommends
Enter current password for root (enter for none): <- enter
Set root password? [Y/n] <- y
New password:
Re-enter new password:
Remove anonymous users? [Y/n] <- y
Disallow root login remotely? [Y/n] <- y
Remove test database and access to it? [Y/n] <- y
Reload privilege tables now? [Y/n] <- y

2.2 Installare il server Apache e le sue dipendenze

Nota :Tutte le configurazioni e i moduli di Apache verranno disabilitati, ad eccezione di quelli richiesti da ISPConfig.

apt-get install ispconfig-apache --no-install-recommends

2.3 Installa ISPConfig git master branch file

Questo pacchetto installa tutti i file del ramo principale git di ISPConfig in /root/ispconfig3

Nota :Se stai usando la cartella sopra, ti consigliamo di rinominarla prima di eseguire il comando seguente.

apt-get install ispconfig-git --no-install-recommends

2.4 Installa ISPConfig

Nota :se desideri aggiungere più funzionalità all'implementazione di ISPConfig, come i ruoli di sicurezza, archiviazione, virtualizzazione, DNS, HTTP, IMAP, POP e SMTP, devi installarle prima di eseguire questo comando. Maggiori dettagli nella documentazione ufficiale di ISPConfig.

apt-get install ispconfig --no-install-recommends
--------------------------------------------------------------------------------
 _____ ___________   _____              __ _         ____
|_   _/  ___| ___ \ /  __ \            / _(_)       /__  \
  | | \ `--.| |_/ / | /  \/ ___  _ __ | |_ _  __ _    _/ /
  | |  `--. \  __/  | |    / _ \| '_ \|  _| |/ _` |  |_ |
 _| |_/\__/ / |     | \__/\ (_) | | | | | | | (_| | ___\ \
 \___/\____/\_|      \____/\___/|_| |_|_| |_|\__, | \____/
                                              __/ |
                                             |___/
--------------------------------------------------------------------------------


>> Initial configuration  

Operating System: Debian or compatible, unknown version.

    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]: <- enter

Installation mode (standard,expert) [standard]: <- enter

Full qualified hostname (FQDN) of the server, eg server1.domain.tld  [1a.ncomputers.org]: <- enter

MySQL server hostname [localhost]: <- enter

MySQL server port [3306]: <- enter

MySQL root username [root]: <- enter

MySQL root password []: <- enter

MySQL database to create [dbispconfig]: <- enter

MySQL charset [utf8]: <- enter

[INFO] service Postgrey not detected
[INFO] service Postfix not detected
[ERROR] Postfix not installed - skipping Mail
[INFO] service Jailkit not detected
Configuring Pureftpd
[INFO] service BIND not detected
[INFO] service MyDNS not detected
Configuring Apache
Configuring vlogger
[INFO] service OpenVZ not detected
[INFO] service Ubuntu Firewall not detected
[INFO] service Bastille Firewall not detected
[INFO] service Metronome XMPP Server not detected
[INFO] service Fail2ban not detected
Configuring Apps vhost
Installing ISPConfig
ISPConfig Port [8080]: <- enter

Admin password [admin]: <- enter

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

Configuring DBServer
Installing ISPConfig crontab
Installing ISPConfig crontab
no crontab for root
Detect IP addresses
Restarting services ...
Restarting Apache httpd web server: apache2.
Restarting ftp server: Running: /usr/sbin/pure-ftpd-mysql-virtualchroot -l mysql:/etc/pure-ftpd/db/mysql.conf -O clf:/var/log/pure-ftpd/transfer.log -b -8 UTF-8 -J ECDHE:AES256-SHA:AES128-SHA:DES-CBC3-SHA:!RC4 -H -C 64 -c 1024 -A -E -F /etc/pure-ftpd/welcome.msg -D -B
Installation completed.

3 Promuovi la crescita di ISPConfig

Eventuali feedback e contributi di qualsiasi tipo favoriranno la crescita di ISPConfig. Ci auguriamo che questa funzionalità sperimentale ti sia utile e proveremo ad aggiungere più pacchetti debian con le relative dipendenze.


Debian
  1. Come installare il server della comunità MySQL su Debian 9 Stretch Linux

  2. Il server perfetto - Ubuntu 15.10 (nginx, MySQL, PHP, Postfix, BIND, Dovecot, Pure-FTPD e ISPConfig 3)

  3. Il server perfetto - Ubuntu 16.04 (Nginx, MySQL, PHP, Postfix, BIND, Dovecot, Pure-FTPD e ISPConfig 3.1)

  4. Il server perfetto - Ubuntu 18.04 (Nginx, MySQL, PHP, Postfix, BIND, Dovecot, Pure-FTPD e ISPConfig 3.1)

  5. Come installare LAMP (Apache, MySQL, PHP) su Debian 11

Come installare Apache, MariaDB e PHP (LAMP) su Debian 11

Come installare e configurare Apache Web Server su Debian 11

Come installare LAMP (Apache, MySQL, PHP) su Debian 9 Stretch

Come installare LAMP (Apache, MySQL, PHP) su Debian 8 Jessie

Come installare LAMP (Apache, MySQL, PHP) su Debian 10

Come installare Apache, MySQL e PHP su AlmaLinux 8