0

I have small problem with Apache2 on my EC2 instance. I install LAMP but when I call apache2 I receive this:

[Thu Dec 03 22:06:56.100599 2015] [core:warn] [pid 31235] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined
[Thu Dec 03 22:06:56.100721 2015] [core:warn] [pid 31235] AH00111: Config variable ${APACHE_PID_FILE} is not defined
[Thu Dec 03 22:06:56.100777 2015] [core:warn] [pid 31235] AH00111: Config variable ${APACHE_RUN_USER} is not defined
[Thu Dec 03 22:06:56.100824 2015] [core:warn] [pid 31235] AH00111: Config variable ${APACHE_RUN_GROUP} is not defined
[Thu Dec 03 22:06:56.100871 2015] [core:warn] [pid 31235] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Thu Dec 03 22:06:56.105835 2015] [core:warn] [pid 31235] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Thu Dec 03 22:06:56.105971 2015] [core:warn] [pid 31235] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Thu Dec 03 22:06:56.106008 2015] [core:warn] [pid 31235] 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}

I try everything - apt-get update, install LAMP one more time but nothing are working. How can I set this config variables?

Yes I try to find solution in Internet, but I can't.

1

Calling Apache directly from the binary doesn't include the envvars which makes it throw your error.

Start, restart and stop Apache from the init script, either with

$ sudo service apache2 restart

OR

$ sudo apachectl restart
  • I have pastebin.com/4bQhAX5y – ventaquil Dec 3 '15 at 23:01
  • Which Apache version are you running? – James John Dec 3 '15 at 23:03
  • Server version: Apache/2.4.7 (Ubuntu) Server built: Oct 14 2015 14:20:21 – ventaquil Dec 3 '15 at 23:04
  • Restart with this $ sudo apachectl restart – James John Dec 3 '15 at 23:15
  • 1
    And that solves it :) – James John Dec 3 '15 at 23:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.