Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Catalog images directory is not writeable


Guest

Recommended Posts

Posted

I've got message ''Error: Catalog images directory is not writeable".

Where should I change?

Please,somebody help me :(

I can't upload my image......

Posted

chmod 777 your images directory which should be in you catalog directory where you installed OSC.

Posted

with 777 couldn't any tard that knows what they are doing edit the images and put anything they want? like click a toaster and up pops some porn?

Posted

How can I change to 755?

I used FTP but it didn't show anything CHMOD on the catalog/images 's folder.

So, which should I touch and where should I change?

:?

Posted

What FTP software are you using?

 

Do you have shell access to your webserver? TElnet access perhaps?

Posted

Thank you Ryan Brown.

 

I'm using 'Smart FTP'.

Now, I can see all permission.

I understand what do you mean now. :D

 

So, permission of 'catalog/images' is 755 now.

Do I have to change from 755 to 777?

 

if so, Do I need to change back to 755 after upload my images?

 

Thank you.

Posted

as 755 I was still getting an error......any ideas?

 

does that mean it has to be set to 777?

 

anyone else still got the problem when dir mode is 755?

Posted

According to post-installation docs , it should be chmod to 777

 

Regards

Posted
does that mean it has to be set to 777?

 

I dont know how many times this has been ecplained, but here we go again.

 

The images directory is owned by your user on the server system. When you use osCommerce to upload pictures this action will be performed by the PHP-process, which is a subprocess of the webserver (apache) process. This process does not run under your user-id but as the webserver user (usually nobody or httpd or apache). This user is normally an unprivileged user meaning it is no groupmember etc.

 

So when the webserver process wants to write to a directory owned by you there is a permission problem. The directory is yours und normally only you and the group members of your group are allowed to write there. The server process is not alowed to write here.

 

The solution is to make this directory writable for the server process. If the webserver process is member of your group (usually not as explained above) it would be sufficient to give your group the write permission.

 

Normally you will have to enable world-write access to this directory (as explained in the INSTALL file btw) to make sure that the server process can store the images here.

 

Security risk? Well - sort of. World-writable means that every allowed user on that system can upload and delete files in your images directory. But only allowed users of that system. Not everyone form anywhere. "World" here means the "world" of all users on this system.

 

HTH

You can't have everything. That's why trains have difficulty crossing oceans, and hippos did not adapt to fly. -- from the OpenBSD mailinglist.

Archived

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

×
×
  • Create New...