File does not exist: /etc/apache2/htdocs (in your apache error.log file)

The problem

/var/log/apache2/error.log has these annoying message every 5 minutes: [Wed Mar 30 18:12:34 2016] [error] [client 127.0.0.1] File does not exist: /etc/apache2/htdocs [Wed Mar 30 18:17:35 2016] [error] [client 127.0.0.1] File does not exist: /etc/apache2/htdocs [Wed Mar 30 18:22:36 2016] [error] [client 127.0.0.1] File does not exist: /etc/apache2/htdocs [Wed Mar 30 18:27:36 2016] [error] [client 127.0.0.1] File does not exist: /etc/apache2/htdocs [Wed Mar 30 18:32:37 2016] [error] [client 127.0.0.1] File does not exist: /etc/apache2/htdocs [Wed Mar 30 18:37:37 2016] [error] [client 127.0.0.1] File does not exist: /etc/apache2/htdocs [Wed Mar 30 18:42:38 2016] [error] [client 127.0.0.1] File does not exist: /etc/apache2/htdocs [Wed Mar 30 18:47:39 2016] [error] [client 127.0.0.1] File does not exist: /etc/apache2/htdocs

The solution

Create the file /etc/apache2/conf.d/default-documentroot and have it contain this single line: DocumentRoot /var/www Then restart the apache2 service: service apache2 restart

Leave a Reply

Your email address will not be published. Required fields are marked *