Page tree

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

SELinux enabled

If SELinux is enabled, the corresponding ACL labels has to be added to the 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/images/imageTags

The existing imageTags should also be writeable, since updates will perhaps 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 above 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!

PHP Log

If no errors are logged in the configured PHP Log file, the reason is probably the same as above, so call also chcon on the php log file and add it to the persistent file_contexts list.

Using .htaccess is not configured

 

  • No labels