Wednesday, March 23, 2011

Drupal and Drush - Problems on Fedora 14

Oh man!!!! what a pain in the @ss this was!
My problem: Using Drush to download Drupal and other modules, I continually received issues where it seemed like Drupal or the module wasn't there.  I would go to the site, and either the Drupal install wasn't recognized or the module wasn't recogized AT ALL.  I could install, update and even enable/disable modules with Drush, but they would never show up in the website.

SOLUTION:  not sure if this is with Fedora only or what (I'm on Fedora 14) but here is the command
chcon -Rt httpd_sys_content_t folder

folder, for example, might be the module you just downloaded.

It seems like Apache doesn't recognize or read the files unless the label is correct.  use "ls -Z" to see the labels.  This is something to do with SELinux.

Thanks to Madeye on this find (http://drupal.org/node/1044454).