Hi! The obligatory: I’m a little new to linux, pardon my ignorance c:
How I got here: I’m trying to set up nextcloud, and going along this guide, I’m first trying to set up an Apache2 server, using the linked guide there about setting up LAMP.
Error I’m trying to solve right now: I’ve installed apache2 and set it up, however at http://localhostI get a 403 / access forbidden error.
In /var/log/apache2/error_log, I see the following upon connecting:
[Sun Mar 01 14:32:30.781698 2026] [core:error] [pid 45675:tid 45675] (13)Permission denied: [client 127.0.0.1:51996] AH00035: access to /index.html denied (filesystem path '/srv/www/htdocs/index.html') because search permissions are missing on a component of the path
I’ve eventually learned from the apache docs that this is a permission issue and usually occurs when apache doesn’t have access to the directory declared in /etc/apache2/default-server.conf (which is /srv/www/htdocs for me - the default).
But I’ve went through and made sure it should have - here’s the output of namei:
# namei /srv/www/htdocs/index.html -m -o
f: /srv/www/htdocs/index.html
drwxr-xr-x root root /
drwxr-xr-x root root srv
drwxr-xr-x root root www
drwxr-xr-x root root htdocs
-rwxr-xr-x root root index.html
the /srv directory was assigned to root:root by default, but while troubleshooting I’ve found that apache has it’s own user/group, in /etc/apache2/uid.conf - by default, this was user wwwrun and group www.
Changing the owner to wwwrun:www on /srv/www/htdocs doesn’t seem to change anything, but just in case, here’s the output once i do:
# namei /srv/www/htdocs/index.html -m -o
f: /srv/www/htdocs/index.html
drwxr-xr-x root root /
drwxr-xr-x wwwrun www srv
drwxr-xr-x wwwrun www www
drwxr-xr-x wwwrun www htdocs
-rwxr-xr-x wwwrun www index.html
Lastly, here’s the versions stuff, for OpenSUSE:
NAME="openSUSE Tumbleweed"
# VERSION="20260128"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20260128"
and Apache:
Server version: Apache/2.4.66 (Linux/SUSE)
I imagine i’m doing something trivial wrong - will be grateful for any help or pointers.