AH00526: Syntax error on line 74 of / etc / apache 2 / apache2.conf: Invalid Mutex directory in arguments file: $ {APACHE_LOCK_DIR}

I am new to Apache2 and I am trying to get Apache2 running on my local Linux (linux mint 17). When I try: sudo apache2 it gives me the following error:

[Mon Jul 20 16: 15: 30.785526 2015] [core: warn] [pid 14221] AH00111: Config variable $ {APACHE_LOCK_DIR} is not defined [Mon Jul 20 16: 15: 30.785602 2015] [core: warn] [pid 14221] AH00111: The config variable $ {APACHE_PID_FILE} is not defined [Mon Jul 20 16: 15: 30.785618 2015] [core: warn] [pid 14221] AH00111: The config variable $ {APACHE_RUN_USER} is not defined [Mon Jul 20 16:15: 30.785627 2015 ] [core: warn] [pid 14221] AH00111: Config variable $ {APACHE_RUN_GROUP} not defined [Mon Jul 20 16: 15: 30.785644 2015] [core: warn] [pid 14221] AH00111: Config variable $ {APACHE_LOG_DIR} not defined [Mon Jul 20 16: 15: 30.787550 2015] [core: warn] [pid 14221: tid 140466817042304] AH00111: Config variable $ {APACHE_LOG_DIR} is undefined [Mon Jul 20 16: 15: 30.787686 2015] [core: warn] [ pid 14221:tid 140466817042304] AH00111: Config variable $ {APACHE_LOG_DIR} not defined [Mon Jul 20 16: 15: 30.787703 2015] [core: warn] [pid 14221: tid 140466817042304] AH00111: Config variable $_ {APACHE_LOG_DIR} not defined on line 74 in / etc / apache 2 / apache2.conf: invalid Mutex directory in Argument file: $ {APACHE_LOCK_DIR}

Then I searched for some similar problems on the net and tried: sudo / etc / init.d / apache2 restart , it gave me:

  • Restarting web server apache2 AH00558: apache2: Could not reliably determine the fully qualified domain name of the server using 127.0.1.1. Set the global "ServerName" directive to suppress this message.

Again, I tried to find a solution online that adds: servername localhost at the end of /etc/apache2/apache2.conf

Now the sudo / etc / init.d / apache2 restart command works, but sudo apache2 still gives the same error.

Can anyone help me?

+3


source to share


2 answers


try: sudo service apache2 {command} where instead of {} you enter one of the following:



  • start
  • reboot
  • stop
  • Status
0


source


Try the following commands using the following thread , which require the use of a "service":



sudo service apache2 status
sudo service apache2 start
sudo service apache2 stop
sudo service apache2 reload

      

0


source







All Articles