This is likely to be a SELinux-related issue. Try
sudo sestatus
to see if it’s enabled. If yes, try
sudo ls -lZ /var/lib/egroupware/default
or whatever you path might be. The Z options shows the security context. For httpd to be able to write to it, it should be httpd_sys_rw_content_t
. If you find it to be httpd_sys_content_t
instead, then that’s your problem.
To fix you would do
sudo chcon -R -t httpd_sys_rw_content_t <path_to>/files
sudo chcon -R -t httpd_sys_rw_content_t <path_to>/backup
This fix may or may not survive a reboot, depending on your configuration. You may have to look here for more info.