View Full Version : Help with chmod #2
Brian911
12-09-2001, 01:58 PM
ok I have some serious problem here..
my html files in one of my latest sub-dirs wont load (timeout) and the directory listing (/sub-dir/) returns a 403 error.
I tried like a dozen different combinations now but it just does not work anymore.
do I need to chmod the html files, images and .htaccess differently? :confused:
I am anything but a server expert and I have nobody to help me right now :(
please help me
toker
12-09-2001, 02:20 PM
DoH you dont #1 chmod graphics and #2 you dont need to chmod .htaccess so id say theres your problem.
The only reason you should even chmod anyting in the html or htdocs dir is if #1 its a script and or data for a script to output or #2 if its an html page that gets generated by a script like AGP.
Kill those files you chmod just re-upload them with no Chmod and you should be running again. If not then hit me up on ICQ i will have a look at the prob for you. :)
ProgGod
12-09-2001, 02:37 PM
go in the root dir.. like /usr/local/apache/www or something type the following
chmod -R a+r .
see if that fixes everything
Energy Hosting
12-09-2001, 04:36 PM
If ProgGod's suggestion does not work then you may have an error in your .htaccess file or you are missing an index page.
toker your #1 is one big bullshit. I can chmod what i like and when i like. There are lots of reasons why you would chmod or chown a multimedia file, i dont even feel that i should explain....
Brian, i have no idea why you have a timeout problem loading your pics. This does not have anything to do with chmod or htaccess.
One of the reasons why you see 403 error for listing is that the listing is not allowed by apache.
to fix your problem:
chmod 755 directory
chmod 744 all files there
make .htaccess in that dir
put "Options +Indexes" or something like that in .htaccess.
this will only work if indexes is one of allowoverride options in your virtual config.
Brian911
12-10-2001, 07:02 AM
thanks for your *free* support :)
my partner is away for 2 more weeks so I need to solve this alone obviously...
I tried to do what proggod said and deleted the .htaccess and at least the html and images load again now.
still cant get directory listing to run ("403" still) even with chmod 755 for the dir and 744 for the files (script is 755 by default) yet.. but that was just the minor problem of course :)
damn
Options +Indexes did i forget to mention that?
Brian911
12-10-2001, 10:29 AM
do I just add a line that says "Options +Indexes" ?
we just use the htaccess to prevent hotlinking I think, not very experienced with it too :(
yes
if you get err500 then the prob is in your virtual conf.
my icq is 42154853
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.