# Apache: AH00112: Warning: DocumentRoot [/var/www/example.com/public_html] does not exist

**Code:** `AH00112: DocumentRoot does not exist` · **Category:** Nginx / Apache · **Seen on:** Apache, Linux

A virtual host points to a directory that doesn't exist.

## Meaning

Create the directory (`mkdir -p`) or fix the `DocumentRoot` path/typos. Apache warns at startup; requests to that vhost then return 404/403. Check symlinks and mounts (unmounted storage).

## Common causes

- DocumentRoot typo
- Directory not created or mount missing
- Deployment renamed the folder (symlink `current`)
- Wrong vhost copied from another server
- Permissions on parent

## Quick fix

1. `sudo mkdir -p /var/www/example.com/public_html`
2. Correct the `DocumentRoot`
3. Verify symlinks/mounts exist at start

## Detailed fix by platform

### Linux

1. `ls -ld /var/www/example.com/public_html && sudo apachectl -S`

## How to diagnose

1. **Path** — Exists?
2. **Mount** — Present?
3. **Vhost** — Correct?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/nginx-apache/apache-ah00112-documentroot-does-not-exist)
