Date: Fri, 29 Mar 2024 04:45:51 +0000 (UTC) Message-ID: <1632778355.98.1711687551520@node2041-mqi-confluence.web.inetsolutions.cloud> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_97_1661392153.1711687551520" ------=_Part_97_1661392153.1711687551520 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
If AppArmor is running, and mysql or apache2 data directories are other = as the default, this must be changed in the apparmor config too.
See https://askubu= ntu.com/questions/916009/mysql-wont-start-because-of-apparmor
The sestatus
command provides a configura=
ble view into the status of SELinux. The simplest form of this command show=
s the following information:
[root@localhost ~]# sestatus SELinux status: enabled SELinuxfs mount: /selinux Current mode: enforcing Mode from config file: enforcing Policy version: 21 Policy from config file: targeted
If SELinux is enabled, the corresponding ACL labels has to be added to t= he translate5 writeable files/directories.
We assume the installation in /var/www/html and the DocumentRoot in /var= /www/html/public.
chcon -R -t httpd_sys_rw_content_t /var/www/html/data
chmod -R o+w = /var/www/html/data
chcon -R -t httpd_sys_rw_content_t /var/www/html/public/modules/editor= /images/imageTags
chmod -R o+w /var/www/html/public/modules/editor/image= s/imageTags
The existing imageTags should also be writeable, since updates will perh= aps manipulate the already existing images in the future.
To check for valid ACL context do the following (if httpd_sys_content_rw= _r is invalid):
semanage fcontext -l | grep http
Since chcon changes are only temporarily (the previuos =
values are restored with restorecon
) the abo=
ve changes made with chcon should be added to the definition list in
/etc/selinux/targeted/contexts/files/file_contexts
It is possible that the writeable folders needed for translate5 = will change in future!
If no errors are logged in the configured PHP Log file, the reason is pr= obably the same as above, so call also chcon on the php log file and add it= to the persistent file_contexts list.
If only index.php is working, but for example /login gives an 404 error,= check the apache config if using .htaccess files is enabled.
In the httpd.conf there should be something like that:
<Directory "/var/www/html/public">
Options= Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
Ensure that AllowOverride is All and n= ot None!