Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

What security contexts need to change to allow phpBB to write to directories.

I am trying to install phpBB 3.1.9 on Fedora 23 with the current php runtime installed by dnf.

There is a preInstall check that phpBB does that makes sure phpBB can write to certain directories and update certain files.

phpBB must be able to write to the below directories. /var/www/html/usque/bb /var/www/html/usque/bb/files /var/www/html/usque/bb/cache /var/www/html/usque/bb/store /var/www/html/usque/bb/store/images/avatars/upload All users can write to these directories because that have the drwxrwxrwx but the preinstall test still says it can not write to the directories. The idea was brought up that it may be a SELinux security contexts issue. I have never even heard of the SELinux security context before. After reading up on it I still don't see how to change the setting, or which ones to change.

/var/www/html/usque/bb/files
unconfined_u :object_r :httpd_sys_content_t :s0 index.htm unconfined_u :object_r :httpd_sys_content_t :s0 . unconfined_u :object_r :httpd_sys_content_t :s0 ..

phpBB must be able to update below file. How to change the SELinux security context settings, or which ones to change?

/var/www/html/usque/bb/config.php /var/www/html/usque/bb/phpbb/db/migration/tool/config.php /var/www/html/usque/bb/phpbb/config/config.php /var/www/html/usque/bb/phpbb/di/extension/config.php /var/www/html/usque/bb/phpbb/search/sphinx/config.php