I ran into an issue when installing TWiki on a Red Hat Enterprise Linux 4 server. I had installed TWiki to
/home/twiki
, and its scripts directory to
/var/www/cgi-bin/twiki/bin
. I set up paths appropriately in all config files, Apache config, etc, but still got an error at the end of the initial
configure
run:
Unable to write to file /home/twiki/lib/LocalSite.cfg
On a suggestion from the folks in IRC, I checked for SELinux on the system:
$ /usr/sbin/selinuxenabled
Which returned nothing, telling me that SELinux was enabled.
I then ran
$ /usr/sbin/setenforce 0
to disable SELinux enforcement until next reboot of the system. This allowed
configure
to access the files outside the
/var/www
directory tree, and the configuration completed successfully.
Of course, this is not a permanent solution, a better one might be to disable SELinux entirely (if security is not an issue) or configure access controls properly for the
/home/twiki
directory. Look at
http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/selinux-guide/rhlcommon-section-0068.html for a lot of information on SELinux on RHEL.
--
Contributors: MaxLemieux
CategoryCookbook