GNU/Linux >> Tutoriales Linux >  >> Debian

El servidor ISPConfig experimental:Debian Stretch (Apache, MySQL, PHP 7, Pure-FTPD e ISPConfig 3.1)

Este tutorial explica cómo instalar la última versión de desarrollo de ISPConfig 3 usando un repositorio Debian stretch con sus respectivos paquetes Debian.

El objetivo de este tutorial es más para fines experimentales y de prueba que para entornos productivos.

Esta característica experimental es proporcionada por ncomputers.org como un intento de contribuir a la mejora continua de ISPConfig.

Si esta característica tiene éxito, podría haber posibilidades de extender su soporte y eventualmente ISPConfig podría tener bases sólidas para solicitar la distribución de ISPConfig a través de los repositorios oficiales de Debian.

En caso de que desee instalar más funciones que las proporcionadas en este tutorial, consulte la documentación oficial de ISPConfig.

Se recomienda utilizar una instalación nueva de debian stretch, debido a estos consejos:

  1. ispconfig-git El paquete instala el contenido de la rama maestra ISPConfig git dentro de /root/ispconfig3 carpeta.
  2. ispconfig-apache el paquete deshabilita todos los archivos y módulos de configuración dentro de /etc/apache2 .

Este tutorial debería proporcionar una implementación completamente productiva de ISPConfig con:servidor HTTP apache, servidor FTP pure-ftpd, certificados SSL Let's encrypt, servidor PHP 7 con Fast-CGI, servicios NTP, servidor de base de datos MySQL, servicios WebDAV e interfaz ISPConfig.

1 Preparar el sistema

1.1 Instala tu editor favorito

Si ya está instalado, puede omitir este paso.

apt-get install editor

1.2 Configurar el nombre de host

El nombre de host está compuesto por dos partes:un subdominio y un dominio. En el siguiente ejemplo, 1a corresponde a la parte del subdominio y ncomputers.org a la parte del dominio. Reemplácelos según corresponda en /etc/hosts archivo y comandos a continuación.

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

Actualizar el nombre de host

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

1.3 Instalar GNU wget

En caso de que su sistema ya tenga wget , puede omitir este paso.

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

1.4 Instalar llavero

Este paquete de debian incluye la clave pública del repositorio de debian stretch ncomputers.org.

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

1.5 Lista de fuentes de instalación

Este paquete de debian incluye la lista de fuentes del repositorio de debian stretch ncomputers.org.

Nota :También es posible escribir la línea comentada a continuación en /etc/apt/sources.list , en lugar de instalar el siguiente paquete de Debian, pero si esta lista de fuentes cambia en el futuro, deberá actualizarlas manualmente.

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

1.6 Actualizar lista de fuentes

Una vez que el conjunto de claves y la lista de fuentes estén instalados.

apt-get update

2 Instalar las características de ISPConfig

2.1 Instalar el servidor MySQL y sus dependencias

Este metapaquete instala todas las dependencias de ISPConfig para el servidor MySQL y realiza algunas tareas de configuración.

Nota :el servidor MySQL se reiniciará y luego escuchará en todas las interfaces de red.

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 Instalar el servidor Apache y sus dependencias

Nota :Se deshabilitarán todas las configuraciones y módulos de apache, excepto los requeridos por ISPConfig.

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

2.3 Instalar archivos de rama maestra ISPConfig git

Este paquete instala todos los archivos de rama maestra de ISPConfig git en /root/ispconfig3

Nota :Si está utilizando la carpeta anterior, se recomienda cambiarle el nombre antes de ejecutar el siguiente comando.

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

2.4 Instalar ISPConfig

Nota :si desea agregar más funciones a su implementación de ISPConfig, como funciones de seguridad, almacenamiento, virtualización, DNS, HTTP, IMAP, POP y SMTP, debe instalarlas antes de ejecutar este comando. Más detalles en la documentación oficial de 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 Impulsar el crecimiento de ISPConfig

Cualquier comentario y contribución de cualquier tipo impulsará el crecimiento de ISPConfig. Esperamos que esta función experimental le sea útil e intentaremos agregar más paquetes de Debian con sus dependencias correspondientes.


Debian
  1. Cómo instalar el servidor de la comunidad MySQL en Debian 9 Stretch Linux

  2. El servidor perfecto:Ubuntu 15.10 (nginx, MySQL, PHP, Postfix, BIND, Dovecot, Pure-FTPD e ISPConfig 3)

  3. El servidor perfecto:Ubuntu 16.04 (Nginx, MySQL, PHP, Postfix, BIND, Dovecot, Pure-FTPD e ISPConfig 3.1)

  4. El servidor perfecto:Ubuntu 18.04 (Nginx, MySQL, PHP, Postfix, BIND, Dovecot, Pure-FTPD e ISPConfig 3.1)

  5. Cómo instalar LAMP (Apache, MySQL, PHP) en Debian 11

Cómo instalar Apache, MariaDB y PHP (LAMP) en Debian 11

Cómo instalar y configurar el servidor web Apache en Debian 11

Cómo instalar LAMP (Apache, MySQL, PHP) en Debian 9 Stretch

Cómo instalar LAMP (Apache, MySQL, PHP) en Debian 8 Jessie

Cómo instalar LAMP (Apache, MySQL, PHP) en Debian 10

Cómo instalar Apache, MySQL y PHP en AlmaLinux 8