Solution 1:

I think for some reason you deleted envvars config file

Jul 06 10:34:49 archisman-HP-ProBook-440-G2 apache2[8899]: /etc/init.d/apache2: 64: .: Can't open /etc/apache2/envvars
Jul 06 10:34:49 archisman-HP-ProBook-440-G2 apache2[8899]: /etc/init.d/apache2: 76: .: Can't open /etc/apache2/envvars

So you have to create it and paste the content from here (default content for this file)

sudo touch /etc/apache2/envvars
sudo nano /etc/apache2/envvars

Then restart apache service as usual

sudo service apache2 restart

Solution 2:

I had the same problem, I made changes in apache.conf file for some reason, which leads me to the same error as you.

I have reinstalled Apache server, now everything is working fine.

Use the following commands:

  1. Uninstall Apache:

    sudo apt-get remove apache2*
    
  2. Install Apache

    sudo apt-get install apache2
    
  3. Restart server

    sudo service apache2 restart