Editer le fichier sshd_config :
nano /etc/ssh/sshd_config
Ajouter :
Authentification PermitRootLogin yes
Puis faire la commande :
/etc/init.d/ssh restart
export http_proxy=http://192.168.0.1:3128
Acquire::http::Proxy "http://192.168.0.1:3128";
http_proxy = http://192.168.0.1:3128
Editer le fichier /etc/apt/apt.conf
nano /etc/apt/apt.conf
Exemple :
Acquire::<protocole>::proxy "<protocole>://<utilisateur>:<mot-de-passe>@<adresse-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/";
Editer le fichier :
nano /etc/apt/sources.list
Et commenter le ligne commençant par :
deb cdrom:
du -a -m / | sort -n -r | head -n 10
sudo apt install sudo apt install libapache2-mod-php
sudo apt update sudo apt upgrade -y
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
sudo apt update sudo apt -y install php7.3
Check/Test version
php -v
Exemple :
sudo apt install php7.3-<entension-name>
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
apt install apache2
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