07-05-2020

-La section Distributions regroupe Solus, Mint et Debian
-Section Windows
This commit is contained in:
2020-05-07 13:43:00 +02:00
parent 7e64b5c348
commit 6103008715
39 changed files with 1198 additions and 59 deletions

View File

@@ -0,0 +1,88 @@
# Apache
#### Installer Apache
```bash
$ sudo eopkg install httpd
$ which apachectl
/usr/sbin/apachectl
```
#### Fichiers de configuration (par défaut):
```bash
/usr/share/defaults/httpd/httpd.conf
/usr/share/defaults/httpd/extra/httpd-vhosts.conf
/usr/share/defaults/httpd/extra/httpd-ssl.conf
```
#### Fichiers de configuration (personnel):
Créer le répertoire `/etc/httpd/conf.d/` puis y mettre ses propres *.conf
```bash
/etc/httpd/conf.d/httpd.conf
/etc/httpd/conf.d/httpd-vhosts.conf
```
User: httpd
Group: httpd
DocumentRoot (par défaut): /var/www/
#### Fichiers log:
```bash
/var/log/httpd/access_log
/var/log/httpd/error_log
```
#### Exécuter Apache:
```bash
$ sudo systemctl enable httpd # Enable on startup
$ sudo systemctl start httpd # Start the web server
$ sudo systemctl stop httpd # Stop the web server
```
Le service httpd a-t'il été activé au boot?
```bash
$ systemctl is-enabled httpd
enabled
```
Le service httpd est-il actif ?
```bash
$ systemctl is-active httpd
active
```
Status du service httpd:
```bash
$ systemctl status httpd
● httpd.service - Apache Web Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor prese>
Active: active (running) since Sun 2019-05-12 20:11:41 CEST; 26min ago
Main PID: 776 (httpd)
Tasks: 82 (limit: 4915)
Memory: 10.6M
CGroup: /system.slice/httpd.service
├─776 /usr/sbin/httpd -k start -DFOREGROUND
├─833 /usr/sbin/httpd -k start -DFOREGROUND
├─834 /usr/sbin/httpd -k start -DFOREGROUND
└─837 /usr/sbin/httpd -k start -DFOREGROUND
```