Installation woes? Check SELinux

Requests, feedback, and general discussion about WoWRoster
DO NOT post topics about WoWRoster AddOns here!

Installation woes? Check SELinux

Postby ScratchMonkey » Tue Jan 27, 2009 1:57 am

I was installing the new Player Achievements addon and encountering a mysterious error message:

The install definition file for Player Achievements did not contain a correct installation class

Looking at the detailed error, it told me that it couldn't access the addon's inc/install.def.php file. Yet the regular Linux permissions all looked identical to those of working addons.

Then I remembered that I use SELinux in enforcing mode on a CentOS 5 system.

First I used "ls -Z" on a working addon to see what attributes the files there had. It turned out that the info addon had "user_u:object_r:httpd_sys_content_t" as the attribute on all files and directories. So then I used "chcon -R user_u:object_r:httpd_sys_content_t ." from the new addon's directory to apply that attribute to all of its files. That fixed it!
User avatar
ScratchMonkey Expert Expert
Posts: 212
Joined: Wed Jul 05, 2006 4:32 pm
Location: San Pablo, CA

Return to General Support & Feedback

Who is online

Users browsing this forum: No registered users and 1 guest