Stats 404 Error

Discussion in 'Installation/Configuration' started by swordsaint, Nov 14, 2010.

  1. swordsaint

    swordsaint New Member

    When I added a password to my stats for my site i get a 404 error.:confused:
     
  2. itsnedkeren

    itsnedkeren New Member

    Stats are only created once a day, what is the output of:

    Code:
    # ls -la /var/www/yourdomain.com/web/stats
    
     
  3. swordsaint

    swordsaint New Member

    root@web1:/var/www/dial4tech.com# ls -la /var/www/dial4tech.com/web/stats
    total 164
    drwxr-xr-x 2 web11 client1 4096 2010-11-14 13:34 .
    drwxr-xr-x 19 web11 client1 4096 2010-11-13 00:30 ..
    -rw-r--r-- 1 web11 client1 3051 2010-11-14 00:30 ctry_usage_201011.png
    -rw-r--r-- 1 web11 client1 2873 2010-11-14 00:30 daily_usage_201011.png
    -rw-r--r-- 1 web11 client1 1905 2010-11-14 00:30 hourly_usage_201011.png
    -rwxr-xr-x 1 web11 client1 117 2010-11-14 13:34 .htaccess
    -rw-r--r-- 1 web11 client1 4114 2010-11-14 00:30 index.html
    -rw-r--r-- 1 web11 client1 101762 2010-11-14 00:30 usage_201011.html
    -rw-r--r-- 1 web11 client1 2312 2010-11-14 00:30 usage.png
    -rw-r--r-- 1 web11 client1 17088 2010-11-14 00:30 webalizer.current
    -rw-r--r-- 1 web11 client1 40 2010-11-14 00:30 webalizer.hist
     
  4. itsnedkeren

    itsnedkeren New Member

    Hmm that seems fine to me.

    Any errors in the apache log?
     
  5. swordsaint

    swordsaint New Member

    Just this,

    [Fri Nov 12 17:17:09 2010] [error] [client 97.74.202.111] File does not exist: /var/www/clients/client1/web11/web/user
    [Sun Nov 14 00:56:13 2010] [error] [client 194.54.81.102] Invalid URI in request GET HTTP/1.1 HTTP/1.1
    [Sun Nov 14 07:26:06 2010] [error] [client 188.165.214.146] File does not exist: /var/www/clients/client1/web11/web/w00tw00t.at.blackhats.romanian.anti-sec:)
    [Sun Nov 14 07:55:35 2010] [error] [client 222.186.26.88] script not found or unable to stat: /var/www/clients/client1/web11/cgi-bin/textenv.pl
    [Mon Nov 15 10:52:57 2010] [error] [client 88.191.64.28] File does not exist: /var/www/clients/client1/web11/web/w00tw00t.at.blackhats.romanian.anti-sec:)
    [Mon Nov 15 18:14:30 2010] [error] [client 38.100.41.67] File does not exist: /var/www/clients/client1/web11/web/component, referer: http://www.dial4tech.com/component/poll/15-your-most-frequented-personal-browser
    [Mon Nov 15 20:21:12 2010] [error] [client 122.70.185.117] File does not exist: /var/www/clients/client1/web11/web/includes/general.js
    [Mon Nov 15 20:21:13 2010] [error] [client 122.70.185.117] File does not exist: /var/www/clients/client1/web11/web/zencart
    [Mon Nov 15 20:21:14 2010] [error] [client 122.70.185.117] File does not exist: /var/www/clients/client1/web11/web/admin
    [Mon Nov 15 20:21:15 2010] [error] [client 122.70.185.117] File does not exist: /var/www/clients/client1/web11/web/zen
    [Mon Nov 15 20:21:16 2010] [error] [client 122.70.185.117] File does not exist: /var/www/clients/client1/web11/web/cart
    [Mon Nov 15 20:21:17 2010] [error] [client 122.70.185.117] File does not exist: /var/www/clients/client1/web11/web/ZenCart
    [Tue Nov 16 05:50:20 2010] [error] [client 38.100.21.238] File does not exist: /var/www/clients/client1/web11/web/component
     
  6. willko

    willko New Member

    Maybe this will help...?

    Error message:
    POSSSIBLE SOLUTION - 2 Parts - seems to work ;)

    1 - If a site has "Apache Directive" directory overide for default files, make sure index.html is listed as well as the home page file.

    2 - .htaccess files need execute permissions for directory search
     
  7. swordsaint

    swordsaint New Member

    I made the .htaccess file executable but its not working still.

    I dont have any override directives. I us joomla and have sef urls and mod_rewrite enabled but i dont think thats the problem.
     
  8. willko

    willko New Member

    What about the ownership? I use joomla as well with ISPC3 and the ownership should something like root:clientX (where X is the appropriate client number).

    So for instance,

    Code:
    find . -type f -name ".htaccess" -exec chown -hR -v -f root:client8 {} \;
    Make sure you run this from the terminal of the directory CONTAINING the "/web" - e.g. "/var/www/clients/client8/web18" - so terminal prompt reads "[root@host web18]" for example
    Also make sure the CLIENT is correct before pasting this script!

    then the permissions can be set with,
    Code:
    find . -type f -name ".htaccess" -exec chmod 755 {} \;
    again, make sure you run it as above, i.e. in the right directory!
     
  9. swordsaint

    swordsaint New Member

    I have suphp enabled isn't it supposed to be web8:client8?
     
  10. swordsaint

    swordsaint New Member

    I tried it but its still not working.
     
    Last edited: Nov 24, 2010

Share This Page