Bug 588995
Summary: | SELinux prevented httpd (/usr/sbin/httpd) write access to settings.php. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | speamr18 |
Component: | selinux-policy | Assignee: | Daniel Walsh <dwalsh> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 13 | CC: | dwalsh, krishnandu.sarkar, mgrepl, teva.riou |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | setroubleshoot_trace_hash:c8bbc0215058a0d3a79cd0fc4ee72506786414b1a330f94aeb9a4085575ba0b1 | ||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-05-05 15:18:46 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
speamr18
2010-05-05 04:23:02 UTC
Where is the settings.php file located? It should be labeled as httpd_sys_content_rw_t. (In reply to comment #1) > Where is the settings.php file located? It should be labeled as > httpd_sys_content_rw_t. /etc/drupal/default/settings.php This is the default location of the file when drupal in installed via yum. Not sure if putting the file in /etc by default is an over-site or not but drupal will not work with selinux running. p.s. I also tried another drupal install with he settings file at /var/www/html/sites/default/settings.php with the same outcome. Ok, what is your output these commands? # ls -Z /etc/drupal/default/settings.php # matchpathcon /etc/drupal/default/settings.php restorecon -R -v /etc/drupal Will fix the labels. Similarly restorecon -R -v /var/www/html/sites speamr18 SELinux is all about the labels not necessarily the location. man httpd_selinux Will explain the labels httpd expects. |