Page 1 of 1

apache2 -k restart nie dziala

Posted: Sat Jun 20, 2015 2:35 am
by qrdziel
zainstalowalem czysty linux mint 17.1
doinstalowalem apache2

Code: Select all

sudo apt-get install apache2
zainstalowalo i dziala sprawdzalem w przegladarce wpisujac localhost
ale gdy chce zrestartowac jako super user to wywala blad

Code: Select all

acer qrdziel # apache2 -k restart
[Sat Jun 20 07:42:31.001817 2015] [core:warn] [pid 3173] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined
[Sat Jun 20 07:42:31.002091 2015] [core:warn] [pid 3173] AH00111: Config variable ${APACHE_PID_FILE} is not defined
[Sat Jun 20 07:42:31.002200 2015] [core:warn] [pid 3173] AH00111: Config variable ${APACHE_RUN_USER} is not defined
[Sat Jun 20 07:42:31.002260 2015] [core:warn] [pid 3173] AH00111: Config variable ${APACHE_RUN_GROUP} is not defined
[Sat Jun 20 07:42:31.002378 2015] [core:warn] [pid 3173] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Sat Jun 20 07:42:31.012002 2015] [core:warn] [pid 3173] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Sat Jun 20 07:42:31.012826 2015] [core:warn] [pid 3173] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Sat Jun 20 07:42:31.012958 2015] [core:warn] [pid 3173] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
AH00526: Syntax error on line 74 of /etc/apache2/apache2.conf:
Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}
prosze o jakas prosta odpowiedz dla poczatkujacego

Re: apache2 -k restart nie dziala

Posted: Sat Jun 20, 2015 5:41 pm
by qrdziel
znalazlem rozwiazanie:
1 edytuj plik /etc/apache2/apache2.ini
i dopisz

Code: Select all

ServerName localhost
2 restartuj poleceniem:

Code: Select all

sudo service apache2 restart

Re: apache2 -k restart nie dziala

Posted: Thu May 10, 2018 6:51 am
by qrdziel
albo tak:
sudo systemctl restart apache2