HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Can't access stats (http://www.howtoforge.com/forums/showthread.php?t=39077)

wxman 11th September 2009 20:28

Can't access stats
 
I've seen others asking this, but none of the solutions seem to work for me. I'm running a Drupal site, and I did make a stats password. When I go to the /stats directory I get a 403 error. The log says:
Code:

Directory index forbidden by Options directive
.

If I bypass the permissions in the apache conf file, opening up the directory for all to see:
Code:

    <Directory /var/www/www.domainame.com/web/stats/>
        Options Indexes FollowSymLinks
        AllowOverride None
    </Directory>

I can get to the stats pages. The look fine, and are updating as expected. All the permissions are set correctly too. What else do I need to do?

till 13th September 2009 13:31

Does accessing the stats directory work if you remove the drupal .htaccess file? if yes, you will have to find out which of the directives in the drupal file prevents the access to the stats directory.

wxman 13th September 2009 19:42

Even with the .htaccess file intact, I'm at least now getting a username/password request when I try to get in. The problem now is it shows me the directory structure instead of going to the index page.

till 14th September 2009 12:41

And you are sure that you removed the complete joomla .htaccess file as it might define a different DirectoryIndex then the default one? If yes, then then check your apache2.conf or httpd.conf file that the DirectoryIndex directive contains index.htm and index.html

juan_g 27th October 2010 01:34

Quote:

Originally Posted by till (Post 204297)
check your apache2.conf or httpd.conf file that the DirectoryIndex directive contains index.htm and index.html

Or editing this line of Drupal's web/.htaccess

Code:

DirectoryIndex index.php
to

Code:

DirectoryIndex index.php index.html index.htm
Other possibility is to add a similar line to web/stats/.htaccess


All times are GMT +2. The time now is 20:43.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.