I run openSUSE Tumbleweed
Operating System: openSUSE Tumbleweed 20260214
KDE Plasma Version: 6.5.5
KDE Frameworks Version: 6.22.0
Qt Version: 6.10.2
Kernel Version: 6.18.9-1-default (64-bit)
Graphics Platform: Wayland
Graphics Processor: Intel® Iris® Xe Graphics
with SELinux enabled
# sestatus
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: enforcing
Mode from config file: enforcing
Policy MLS status: enabled
Policy deny_unknown status: allowed
Memory protection checking: actual (secure)
Max kernel policy version: 35
#
apache and PHP is installed and apache starts on system startup
> systemctl status httpd
* apache2.service - The Apache Webserver
Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; preset: disabled)
Active: active (running) since Tue 2026-02-17 17:11:50 CET; 4min 28s ago
Invocation: e2878fb194294bec92a7cb7d9e445544
Main PID: 1342 (httpd-prefork)
Status: "Total requests: 0; Idle/Busy workers 100/0;Requests/sec: 0; Bytes served/sec: 0 B/sec"
Tasks: 6
CPU: 160ms
CGroup: /system.slice/apache2.service
|-1342 /usr/sbin/httpd-prefork -DSYSCONFIG -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "I>
|-2257 /usr/sbin/httpd-prefork -DSYSCONFIG -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "I>
|-2258 /usr/sbin/httpd-prefork -DSYSCONFIG -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "I>
|-2259 /usr/sbin/httpd-prefork -DSYSCONFIG -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "I>
|-2260 /usr/sbin/httpd-prefork -DSYSCONFIG -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "I>
`-2262 /usr/sbin/httpd-prefork -DSYSCONFIG -C "PidFile /run/httpd.pid" -C "Include /etc/apache2/sysconfig.d//loadmodule.conf" -C "I>
Feb 17 17:11:30 SYSTEM01 systemd[1]: Starting The Apache Webserver...
Feb 17 17:11:40 SYSTEM01 start_apache2[1342]: AH00557: httpd-prefork: apr_sockaddr_info_get() failed for SYSTEM01
Feb 17 17:11:40 SYSTEM01 start_apache2[1342]: AH00558: httpd-prefork: Could not reliably determine the server's fully qualified domain name, usi>
Feb 17 17:11:50 SYSTEM01 systemd[1]: Started The Apache Webserver.
>
apache is listening to localhost only
> cat /etc/apache2/listen.conf
Listen 127.0.0.1:80
<IfDefine SSL>
<IfDefine !NOSSL>
<IfModule mod_ssl.c>
Listen 127.0.0.1:443
</IfModule>
</IfDefine>
</IfDefine>
>
There are no SELinux-related errors after startup.
# ausearch -m avc,user_avc,selinux_err,user_selinux_err -ts boot
<no matches>
#
Even when I access some of my self-designed WEB-pages there will be no SELinux-related errors.
However I do have dokuwiki installed and setup in /srv/www/htdocs/dokuwiki (its data comes from a backup of my servers dokuwiki).
All data in /srv/www does have system_u:object_r:httpd_sys_content_t:s0 set. But when I try to access the dokuwiki I get an error page saying
DokuWiki Setup Error
The datadir ('pages') at /srv/www/htdocs/dokuwiki/data/pages is not found, isn't accessible or writable. You should check your config and permission settings. Or maybe you want to run the installer?
and there is an SELinux error
# ausearch -m avc,user_avc,selinux_err,user_selinux_err -ts boot
----
time->Tue Feb 17 17:34:01 2026
type=AVC msg=audit(1771346041.141:184): avc: denied { execmem } for pid=2257 comm="httpd-prefork" scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:system_r:httpd_t:s0 tclass=process permissive=0
#
audit2allow suggests
# ausearch -m avc,user_avc,selinux_err,user_selinux_err -ts boot | audit2allow
#============= httpd_t ==============
#!!!! This avc can be allowed using the boolean 'httpd_execmem'
allow httpd_t self:process execmem;
#
I did
# semanage boolean --modify --on httpd_execmem
After that calling dokuwiki will still result in the error page shown above while there are no further SELinux-related errors registered.
When I set
semanage permissive -a httpd_t
I can access my dokuwiki as expected.
As I’m not familiar with SELinux at all any help would be appreciated.
Thank you.