SFTP
This commit is contained in:
62
apache.md
Normal file
62
apache.md
Normal file
@@ -0,0 +1,62 @@
|
||||
# Apache
|
||||
|
||||
Installer le [paquet logiciel](package.md) apache
|
||||
|
||||
```shell
|
||||
apt install --no-install-recommends apache2
|
||||
```
|
||||
|
||||
> Fondamentalement, le serveur Apache n'exige pas seulement des autorisations de lecture de tous les fichiers qu'il dessert, mais l'autorisation d'exécution de tous les répertoires dans le chemin de votre hôte virtuel.
|
||||
|
||||
|
||||
### PHP 8.4
|
||||
|
||||
```shell
|
||||
apt install --no-install-recommends php-fpm
|
||||
|
||||
a2enconf php8.4-fpm
|
||||
a2enmod proxy_fcgi
|
||||
|
||||
a2dismod autoindex
|
||||
a2enmod rewrite
|
||||
```
|
||||
|
||||
## optionnel
|
||||
|
||||
|
||||
### Mbstring
|
||||
|
||||
```shell
|
||||
apt install --no-install-recommends php-bcmath
|
||||
```
|
||||
|
||||
apt install --no-install-recommends memcached libmemcached-tools
|
||||
apt install --no-install-recommends php-memcached
|
||||
apt install --no-install-recommends php-imagick
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Caddy
|
||||
|
||||
gpg: no valid OpenPGP data found
|
||||
apt install ca-certificates
|
||||
|
||||
apt install --no-install-recommends debian-keyring apt-transport-https ca-certificates
|
||||
apt install --no-install-recommends curl
|
||||
apt install --no-install-recommends gpg
|
||||
|
||||
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
|
||||
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | tee /etc/apt/sources.list.d/caddy-stable.list
|
||||
chmod o+r /usr/share/keyrings/caddy-stable-archive-keyring.gpg
|
||||
chmod o+r /etc/apt/sources.list.d/caddy-stable.list
|
||||
apt update
|
||||
apt install caddy
|
||||
|
||||
a2enmod remoteip
|
||||
|
||||
### SMTP
|
||||
|
||||
apt install --no-install-recommends msmtp-mta
|
||||
systemctl enable msmtpd
|
||||
Reference in New Issue
Block a user