apache2 -k restart nie dziala

Polish Forum
qrdziel
Level 1
Level 1
Posts: 3
Joined: Sat Jun 20, 2015 1:53 am

apache2 -k restart nie dziala

Postby qrdziel » Sat Jun 20, 2015 2:35 am

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

qrdziel
Level 1
Level 1
Posts: 3
Joined: Sat Jun 20, 2015 1:53 am

Re: apache2 -k restart nie dziala

Postby qrdziel » Sat Jun 20, 2015 5:41 pm

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


Return to “Polski (Polish)”