Tags:
create new tag
view all tags
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

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2006-05-06 - CrawfordCurrie
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.