You are not logged in.

#1 2026-11-29 20:23:28

CJSHayward
Member
Registered: 2026-11-25
Posts: 3

Apache says it can't read DOCUMENT_ROOT.

I've gotten past the sticking point in https://bbs.archlinux.org/viewtopic.php … 6#p2315026, but Apache at http://dev.orthodoxchurchfathers.com says:

Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.

If you think this is a server error, please contact the webmaster.

Error 403
dev.orthodoxchurchfathers.com
Apache/2.4.71 (Unix)

I checked the directory and all of its parent directories besides / are mode 755 (/ is a default 555). The document root contains an index.cgi file, and I have specified a DirectoryIndex of index.cgi index.html. If I point my browser to http://dev.orthodoxchurchfathers.com/index.cgi, I get:

Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.

Error 403
dev.orthodoxchurchfathers.com
Apache/2.4.71 (Unix)

When I try to execute index.cgi from the command line, I get what appears to be appropriate output that makes sense as a successfully loaded webpage.

The Directory block in httpd.conf is:

<Directory /var/www>
        Options ExecCGI FolllowSymLinks Indexes Multiviews
</Directory>

What should I be doing to provide useful diagnostics?

TIA,

Offline

#2 2026-11-29 21:37:22

cryptearth
Member
Registered: 2024-02-03
Posts: 2,443

Re: Apache says it can't read DOCUMENT_ROOT.

although i usually recommend against A-not-I you should search for some config validator, as, from your other post, the

<Directory />

looks wrong in two ways:

- syntax: in XML any tag that ends with "/>" is seen as closed tag - so the following "block" would be illegal, if, at all, it needs to be

<Directory "/">

so the "/>" not breaking the XML syntax

- security: you add the very root "/" of your file system to the config - which is a huge red flag and potential security issue

overall, as mentioned in the other topic, too, your configs look quite old 2.2 style - the order access directive is something from the past - today the modern way is the require directive
you should update your configs overall

so, tl;dr: your issues seem to be rooted in both outdated and invalid config

Offline

#3 2026-11-29 21:48:13

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,142

Re: Apache says it can't read DOCUMENT_ROOT.

https://wiki.archlinux.org/title/Apache … ed_options

Make sure to have worked through the entire article.

Offline

Board footer

Powered by FluxBB