Tuesday, June 3, 2008

SELinux: PERMISSION DENIED!!!!

Doing a Rails app installation on Fedora Core 8, I kept getting "Permission Denied" errors.

I checked file permission, wept, begged and even went on a holy walk to try massage this problem into oblivion.

As it turns out, there's this dear little linux feature that came free of charge with my fedora installation: SELinux (Pronounced "seeeed-OF-eeviel"). This gem of a feature enforced security policies, which need to take your rails app's location into account, which you can do as follows:

chcon -R -t httpd_sys_content_t /path/to/your/app

No comments: