Welcome on my blog

We use cookies to ensure you get the best experience on our website.

Apache – Apachectl – Aktualna konfiguracja Apache

Autor: chmajster 12.09.2022

Apachectl – jest interfejsem do serwera Apache HyperText Transfer Protocol (HTTP). Został zaprojektowany, aby pomóc administratorowi kontrolować funkcjonowanie demona Apache httpd.

apachectl -S
pi@chris:~ $ sudo apachectl -S
VirtualHost configuration:
*:81                   chris.home (/etc/apache2/sites-enabled/000-default.conf:1)
*:83                   chris.home (/etc/apache2/sites-enabled/chris.com.conf:1)
*:82                   chris.home (/etc/apache2/sites-enabled/local.com.conf:1)
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex default: dir="/var/run/apache2/" mechanism=default
Mutex watchdog-callback: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33
pi@chris:~ $

Testowanie konfiguracji apache

apachectl configtest

root@chris:~# apachectl configtest
Syntax OK

Źródło : https://httpd.apache.org/docs/2.4/programs/apachectl.html

Dodaj komentarz

Search
Categories
O Blogu

Cześć Podróżniku!

Ta strona ma nie być typowym poradnikiem w IT, Głównym jej cel to zapisanie krótkich notatek, które mogą się przydać w codziennym życiu podczas korzystania/konfiguracji różnych urządzeń np. Ustawienia DHCP na Routerze Cisco, Ustawieniu Karty sieciowej na Linuxie itp.

Buy me A coffee
[Empty]

Wszelkie prawa zastrzeżone