[mythtv-users] mythweb issue: data directory is not writable by apache. Please check permissions.data directory is not writable by apache. Please check permissions.
Gary Buhrmaster
gary.buhrmaster at gmail.com
Thu Sep 26 16:56:02 UTC 2013
On Thu, Sep 26, 2013 at 3:33 PM, Gabe Rubin <gaberubin at gmail.com> wrote:
....
> I thought Fedora 17 was still supported for a bit.
See: https://lists.fedoraproject.org/pipermail/announce/2013-July/003177.html
> I hate SELinux and did not have it running on the last system.
SELinux can be a positive thing, especially for public access
services such as Apache, since it can provide protection against
incorrect programming practices (i.e. as you see, it protects
against writing data that you should not be able to write). And
while there are potential issues with SELinux based on its
pedigree, there is currently no evidence that it is anything other
than a positive for most.
> Will need to disable it here, but unsure how.
Many possible solutions. Easiest is probably in /etc/sysconfig/selinux
> In the meantime, this is the output of the command (doesn't this mean apache
> can write to the data directory? and is that the correct user?):
No, the httpd_sys_content_t means read only content.
> So is the best solution to just move everything into the /var/www/html/
> directory?
I have not checked, but /var/www/html is likely set for
read-only (and/or no execute) SELinux policies (at least
it makes sense that html is read-only, and not executable).
Well, I believe the target (for RPMFusion) is to move the
data/cache directories to /var/lib/mythweb (an architecturally
appropriate location), create appropriate links, and then set
the permissions there.
Gary
More information about the mythtv-users
mailing list