I’ve got PHP working without issue. I can see phpnfo. I’m still trying to get to the initial setup page, but I get:
“Matomo couldn’t write to some directories (running as user ‘apache’).
Try to Execute the following commands on your serer, to allow Write access to these directories:
chown -R apache:apache: /opt/rh/httpd24/root/var/www/html/matomo…”
I’ve tried:
running all of the commands listed with 0755 (for assets, cache, logs, tcpdf, templates_c)
changing the whole matomo directory to 0777
Running apachectl (syntax OK)
Made all the directories manually in RHEL and updated the permissions as above (owner apache, group apache, permissions 0777)
If the permissions are definitely correct (you could try a sudo -u apache touch /opt/rh/httpd24/root/var/www/html/matomo/tmp/somefile, then I guess there might be something else causing the write to fail. Is the disk maybe out of space? Is there some other permission framework that denies the access.
So I copied some files to different parts of the directory strucutre and changed the permissions to be owned by the apache user with CHOWN then ran the touch command you suggested without any issue.
So as you say, there must be some other thing preventing it from working.
Hopefully the Internet will supply the required knowledge. This definitely isn’t the only time this has happened, so I should be able to find documentation.