Daemon1
08-06-2004, 11:32 PM
Hi,
Currently I am unable to list the contents of any folder via http:// due to restricted permissions. Can someone tell me how to enable a particular directory to be able to be displayed in the browser? thanks
AceBS.com
08-07-2004, 12:25 AM
Give read permission to your folders
linux: chmod 755 <foldername>
Windows: enable directory browing in IIS manager.
Daemon1
08-07-2004, 01:11 AM
Directory already is set to 755, still doesnt work...
RaviSharma
08-07-2004, 02:13 AM
remove the .htaccess if u are getting 500 errors.
Bashar
08-07-2004, 02:21 AM
you need to have all parent directories also set to 755 for example /home/login/public_html/some/where is where u want to list then dirs some and public_html need to be chmoded to 755 too
Daemon1
08-07-2004, 03:20 AM
Im getting 403 Forbidden Errors, and ALL folders to the path of the directory I am trying to view in my browser are already set to 755 and there is no .htaccess file... Any other ideas anyone?
Bashar
08-07-2004, 03:24 AM
hmm should work though
check your /home/login is it 755 ?
who is the owner:group of that dir?
Daemon1
08-07-2004, 03:33 AM
The owner is set right, all directorys including the home and login are 755... I have no idea why it aint working for this particular domain. It works on others on the same server.
Bashar
08-07-2004, 04:21 AM
check all directories for .htaccess file?
can you PM me the directory to see if it works from here or not too
also look at error_log file might find something useful about this error
Dylan
08-07-2004, 07:49 PM
Are you trying to get a listing of all the files and folders within a folder through your browser?
Create a .htaccess file with the following in it:
Options +Indexes
Upload it in ASCII mode to the folder in question and make sure there is no index file within said folder. If you want it to apply to all folders within your site that don't have index files then upload the .htaccess to the folder where your sites main index page is.
Daemon1
08-07-2004, 08:25 PM
You champion! That did the trick! Thanks heaps to those of you who helped me out, but that .htaccess file done the trick perfectly! Hopefully this helps someone else in the future who needs to know this aswell...
Bashar
08-08-2004, 01:15 AM
the option Indexes should be global setting on the httpd.conf, asj your hoster todo it to avoid putting a .htaccess file in each dir
or yeah u can put one .htaccess file on the root dir :)
Daemon1
08-08-2004, 02:40 AM
yeah, only I needed it applied to 3 folders.... using the htaccess file is perfect for what i needed. Thanks again