Apache 403 Forbidden

Apache

Apache web server returns HTTP 403 Forbidden for a directory or file that exists — a permissions or configuration issue prevents access.

Check your exact device first. Codes and procedures vary by model and software version. Back up important files before recovery. Stop if a device is overheating, smells burnt, or has a swollen battery.

CHOOSE HOW YOU WORK

Clear help. Useful detail.

Start with the checks below. Tick a step after you try it, and keep a note of what changed. You can stop as soon as the original task works.

What can cause it?

  • Wrong file/directory permissions (too restrictive)
  • Wrong file ownership (not www-data/apache)
  • Apache config missing 'Require all granted'
  • SELinux denying httpd from accessing files

What to try

Work through one step at a time
Your troubleshooting progress0 steps tried
  1. Check File and Directory Permissions

    Web files typically need 644 for files and 755 for directories: sudo chmod -R 755 /var/www/html and sudo chmod 644 /var/www/html/*.html

  2. Check Apache Ownership

    Run: ls -la /var/www/html. Files should be owned by www-data (Ubuntu/Debian) or apache (Fedora/RHEL). Fix with: sudo chown -R www-data:www-data /var/www/html

  3. Check Apache Config for Directory Rules

    In the VirtualHost config, ensure the directory has: <Directory /var/www/html> Options Indexes Require all granted </Directory>

  4. Advanced recovery or service

    This step depends on the exact model and can affect data, security, or hardware. Back up your files and use the official support instructions for your device. Ask a qualified technician if you are unsure.

How did it go?

Test the original task again. A completed checklist doesn’t by itself mean the problem is fixed.

If the error comes back

Record the full error, your exact model, software version, and the steps you tried. Share these with the manufacturer or a qualified technician. A repeated code needs a diagnosis, especially if it involves storage, heat, or power.

Find the instructions for your model

Apache official support

This is a general support link. This reference guide has not been checked against a model-specific source in this update.