So I want to enable .htaccess files which for some (probably security related) reason is disabled.
I found this site claiming to have the solution and executed the following commands as root.
(tried to do the "run SuSEconfig to update the apache configuration files" .. but suseconfig isn't an existing command it seems)
- a2enmod rewrite (it put rewrite at the end of APACHE_MODULES)
- rcapache2 restart (instead of /etc/init.d/apache2 restart)
So I kept looking and found some post about about the same problem and thought bingo.. that must be the solution...
So I edited /etc/apache2/httpd.conf to look like this:
Restarted Apache2PHP Code:
# forbid access to the entire filesystem by default
Order deny, allow
Deny from all
Result: Nothing again.
So what's going on? how do I enable it.. and how many steps did I take for nothing and might even have to undo?
I tested by making a test directory file with a bunch of files and a .htaccess file who's contents are: (which should give an error of sort as I understand it)
I'm getting the result:Code:Options +Indexes dsadsad IndexOptions +FancyIndexing hjvbhjvjhvjv
(index.php is read if it's in the dir so can't imagine it's a permissions problem)Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster.
Sat Dec 27 23:40:03 2008