[clug-talk] Drupal .htaccess error
Doug Boyd
douglasboyd at shaw.ca
Tue Apr 11 04:17:28 PDT 2006
Hi,
I decided to give drupal a try on Fedora Core 5.
After configuring apache and mysql and unpacking drupal I receive an error when visiting http://localhost
ERROR
Forbidden
You don't have permission to access / on this server.
Looks like an issue with .htaccess ....
LOGS
tail -2000 /var/log/messages
2 scontext=system_u:system_r:httpd_t:s0 tcontext=user_u:object_r:user_home_t:s0 tclass=file
Apr 11 04:56:48 mylab kernel: audit(1144753008.688:37): avc: denied { read } for pid=2233 comm="httpd" name=".htaccess" dev=dm-0 ino=6723
2 scontext=system_u:system_r:httpd_t:s0 tcontext=user_u:object_r:user_home_t:s0 tclass=file
Apr 11 05:00:21 mylab kernel: audit(1144753221.562:38): avc: denied { read } for pid=2234 comm="httpd" name=".htaccess" dev=dm-0 ino=6723
2 scontext=system_u:system_r:httpd_t:s0 tcontext=user_u:object_r:user_home_t:s0 tclass=file
I used the default (unmodified) .htaccess provided with drupal. Received the error.
Tried modifying .htaccess per http://www.howtoforge.com/forums/showthread.php?t=38
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]
</IfModule>
Same issue.
Perhaps I need to modify http.conf? Perhaps I just need to sleep ..... :)
Suggestions welcome.
Cheers,
Doug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://clug.ca/pipermail/clug-talk_clug.ca/attachments/20060411/f78ed790/attachment.htm
More information about the clug-talk
mailing list