Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have been using the htpasswd generated in this question and it seemed to have been working well until recently.

Since yesterday, I am not able to access the newest file created in the folder ChatLogs(named 10_07_2012.txt). The server returns a 403 Forbidden error saying:

Forbidden

You don't have permission to access /ChatLogs/2012/07/10_07_2012.txt on this server.

I am still able to access older files(until 09 July, 2012). At first I thought it might be because of file permissions, but they are the same as on other 9 files in the folder.

What could be the problem? Please Help.

EDIT

As per w3d's suggestion, I completely removed my htpasswd and htaccess files. Restarted the apache2 server(using service apache2 restart) and I'm still getting the same 403 Forbidden error for all chatlogs created after 2012-07-10 00:00:00.

The chatlog files are created/modified using Lua and PtokaX. The chatlogging script is similar to this one

share|improve this question

closed as unclear what you're asking by Stephen Ostermiller Dec 4 '13 at 18:25

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Are you saying that new files in the same folder as older (accessible) files are not accessible? In which case I don't see how it can be a .htpasswd issue, as this would affect the entire folder? Are the file owners the same? –  w3d Jul 10 '12 at 11:33
    
@w3d Yes, the files are in the same folder. And yes, the file owner is root for the files as well as folders. I am able to access 09_07_2012.txt in the same folder. –  hjpotter92 Jul 10 '12 at 11:38
2  
Have you tried removing the password protection altogether, to see if that is indeed the problem? Delete caches, try another browser...? What are the file permissions? –  w3d Jul 10 '12 at 11:54
    
@w3d OK, restarted apache2 after removing the htpasswd file. And I am still unable to access files created/modified after 09th July. –  hjpotter92 Jul 12 '12 at 6:54
    
And... have you deleted caches, tried another browser, and what are the file permissions? Presumably you are attempting to access these files directly over HTTP? Are you able to access and download these files successfully over FTP? Is the content of these files as expected - no corruption? I'm not familiar with the scripting languages you mention unfortunately, but in the script you link to I cannot see how file permissions are specifically set on the written file, which presumably they would need to be if the script is running as root but the resulting file should be readable by everyone? –  w3d Jul 13 '12 at 0:56
show 2 more comments

Browse other questions tagged or ask your own question.