====== Debian ====== ===== Activer la possibilité accès Root en SSH ===== Editer le fichier sshd_config : nano /etc/ssh/sshd_config Ajouter : Authentification PermitRootLogin yes Puis faire la commande : /etc/init.d/ssh restart ===== Définir un proxy pour apt sous Ubuntu/Debian ===== ==== Ajouter /etc/profile.d/proxy.sh contenant : ==== export http_proxy=http://192.168.0.1:3128 ==== Ajouter /etc/apt/apt.conf.d/99HttpProxy contenant : ==== Acquire::http::Proxy "http://192.168.0.1:3128"; ==== Editer /etc/wgetrc et ajouter : ==== http_proxy = http://192.168.0.1:3128 ==== Proxy permanent ==== Editer le fichier /etc/apt/apt.conf nano /etc/apt/apt.conf Exemple : Acquire::::proxy "://:@:port>/"; Acquire::http::proxy "http://192.168.0.1:3128/"; Acquire::https::proxy "https://192.168.0.1:3128/"; Acquire::ftp::proxy "ftp://192.168.0.1:3128/"; ===== Change sources install paquet CD/DVD list ===== Editer le fichier : nano /etc/apt/sources.list Et commenter le ligne commençant par : deb cdrom: ===== Connaitre les tailles / stockage des dossier à la racine ===== du -a -m / | sort -n -r | head -n 10 ===== Install Apache2 on Debian 9 / Debian 8 ===== sudo apt install sudo apt install libapache2-mod-php ===== Install PHP 7.3 on Debian 9 / Debian 8 ===== ==== Step 1: Update system and Install add-apt-repository ==== sudo apt update sudo apt upgrade -y ==== Step 2: Add PHP 7.3 PPA repositor ==== Once the add-apt-repository command is available, add PHP 7.3 PPA repository sudo apt -y install lsb-release apt-transport-https ca-certificates sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php7.3.list ==== Step 3: Install PHP 7.3 on Debian 9 / Debian 8 ==== sudo apt update sudo apt -y install php7.3 Check/Test version php -v ==== Step 4: Installing PHP 7.3 Extensions ==== Exemple : sudo apt install php7.3- sudo apt install php7.3-cli php7.3-json php7.3-pdo php7.3-mysql php7.3-zip php7.3-gd php7.3-mbstring php7.3-curl php7.3-xml php7.3-bcmath php7.3-json php-pear php-cas sudo apt install php7.3-fileinfo php7.3-mysql php7.3-session php7.3-zlib php7.3-ldap php7.3-imap php7.3-apcu php7.3-xmlrpc sudo apt install php7.3-fpm A voir \\ [[https://forum.ubuntu-fr.org/viewtopic.php?id=2033801]] \\ [[https://forum.glpi-project.org/viewtopic.php?id=166238]] \\ [[https://forum.glpi-project.org/viewtopic.php?pid=360583#p360583]] \\ apt install apache2 php php-ldap php-imap php-cas php-mysql php-curl php-mbstring php-gd php-xml php-apcu php-xmlrpc To install Apache Module for PHP, run: sudo apt install libapache2-mod-php7.3 Vérifier quel "php.ini" est utilisé : php --ini | grep "Loaded Configuration File" Result : Loaded Configuration File: /etc/php/7.3/cli/php.ini ==== Install Apache2 ==== apt install apache2 ==== Install MariaDB ==== apt install mariadb-server systemctl status mariadb mysql -V mysql_secure_installation (Toutes les étapes sont expliquées en détail et il est recommandé de répondre «Oui» à toutes les questions.) root@debiancanumglpi1:/# mysql_secure_installation Enter current password for root (enter for none): (pas de password par défaut) Set root password? [Y/n] Y New password: Re-enter new password: Remove anonymous users? [Y/n] Y Disallow root login remotely? [Y/n] n Remove test database and access to it? [Y/n] Y Reload privilege tables now? [Y/n] Y root@pixelabs:~# mysql_secure_installation Enter current password for root (enter for none): (pas de password par défaut) Set root password? [Y/n] (Entrer un mot de passe fort) 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 ==== Sources : ==== [[https://computingforgeeks.com/how-to-install-php-7-3-on-debian-9-debian-8/]] \\ [[https://www.cyberciti.biz/faq/linux-check-disk-space-command/]] \\ [[https://juliend.github.io/linux-cheatsheet/]] \\ [[https://www.howtogeek.com/409611/how-to-view-free-disk-space-and-disk-usage-from-the-linux-terminal/]] \\