Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ERRORS


stefan290875

Recommended Posts

Hi all.

 

I have just installed oscommerce. How do I stop the contents of the folders being displayed in the browser. For example if I go to www.anything.co.uk/images i get a list of all the images contained in the folder. Same for www.anything.co.uk/includes. In the broswer a list of the contents is brought up. How do I stop this from happening because the public could also see the contents of the folder if they typed the above into the browser.

 

Also my permissions are not set correctly as I am getting an error cannot write to images directory message (and others). Is there any sort of general permissions list available or can anyone tell me what all the permissions should be?

 

Many thanks folks

 

SJC

Link to comment
Share on other sites

Hi all.

 

I have just installed oscommerce.? How do I stop the contents of the folders being displayed in the browser.? For example if I go to www.anything.co.uk/images i get a list of all the images contained in the folder.? Same for www.anything.co.uk/includes.? In the broswer a list of the contents is brought up.? How do I stop this from happening because the public could also see the contents of the folder if they typed the above into the browser.

 

 

Just load up a index.html to your images directory. You can eather put a link in that index page - or a redirect code that automaticaly returns the user to the homepage or something.

 

 

Also my permissions are not set correctly as I am getting an error cannot write to images directory message (and others).? Is there any sort of general permissions list available or can anyone tell me what all the permissions should be?

 

 

Not sure if this will help - but i started with osCommerce today - and had to find out to.

I found out you have to use 3 digits to set permissions. ex. 777

 

Dont look at it like sevenhoundredandzeventyzeven - but seperate.

The first digit stands for User, the second for Group and a third for World

 

Read has a value of 4

Write has a value of 2

eXecute has a value of 1

 

so if you would like to set the value to Read-Write-Execute for the Uer then you would have to do: 4+2+1 = 7

 

So, in my example i used 777 that means everybody has Read-Write-Execute permission.

 

 

 

So, just to be sure - if you wanted to set the all three to read and execute and only user to write then you would have:

 

733

 

 

I'm writing this out of my head - so i'm not that sure anymore about weather Read was 4 or write - but you might wanna change it a bit around - and normaly - if you rightclick the file you can view its propertys - it should be saying what the permission currently is.

hope you understand - my english aint to well - but i'm trying ;)

hope this helps.

Even in this dark place, yes, I am afraid of my own shadow.

 

 

 

Contributions | KnowledgeBase | osCommerce 2.2 pdf

Link to comment
Share on other sites

Hi all.

 

I have just installed oscommerce.  How do I stop the contents of the folders being displayed in the browser.  For example if I go to www.anything.co.uk/images i get a list of all the images contained in the folder.  Same for www.anything.co.uk/includes.  In the broswer a list of the contents is brought up.  How do I stop this from happening because the public could also see the contents of the folder if they typed the above into the browser.

 

Also my permissions are not set correctly as I am getting an error cannot write to images directory message (and others).  Is there any sort of general permissions list available or can anyone tell me what all the permissions should be?

 

Many thanks folks

 

SJC

 

 

if you are running apache server :

 

use Options -Indexes

 

<Directory "your server directory">

Options -Indexes FollowSymLinks

AllowOverride none

Order allow,deny

allow from all

</Directory>

Treasurer MFC

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...