Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Chmods and permissions


SoloStar

Recommended Posts

Posted

Hi all,

 

I come back to find a solution about a pb.

 

I have many error in the error_log like this :

 

[Wed Jul 21 16:06:22 2010] [error] [client 78.114.xx.xx] PHP Warning:  imagejpeg() [<a href='function.imagejpeg'>function.imagejpeg</a>]: Unable to open 'images/products/dir/file.jpg.thumb_1280x625.jpg' for writing in /var/www/vhosts/site.com/httpdocs/product_thumb.php on line 363, referer: http://www.site.com/popup_add_image.php?pID=453&osCsid=j325petsmcepse5meuq5605fa7&products_id=453&cPath=25
[Wed Jul 21 16:06:34 2010] [error] [client 80.12.xxx.xxx] PHP Warning:  imagejpeg() [<a href='function.imagejpeg'>function.imagejpeg</a>]: Unable to open 'images/products/dir/dir/file.jpg.thumb_160x86.jpg' for writing in /var/www/vhosts/site.com/httpdocs/product_thumb.php on line 363, referer: http://www.site.com/dir/products_id-1371.html?osCsid=hq99up40vssi7spq07visis1j2

 

And another one when i try to upload a file when i add a new product via admin :

 

Erreur This: /var/www/vhosts/site.com/httpdocs/images/products/dir/ directory is not writable. Attempting to correct...
Succès Directory permissions on /var/www/vhosts/site.com/httpdocs/images/products/dir/ was set successfully.
Erreur Error returned from alterimage class: 1
Erreur Thumb file: /var/www/vhosts/site.com/httpdocs/images/products/dir/dir/smallllls.jpg could not be created.
Erreur Error returned from alterimage class: 1
Erreur Products Info file: /var/www/vhosts/site.com/httpdocs/images/products/dir/dir/smalllllm.jpg could not be created.

 

I think all of theses error are linked but i tried everythings i don't understand.

 

images directory is chmoded 777 and all of his subdir.

 

The contrib i use is "On the Fly Auto Thumbnailer using GD Library" (GD lib installed)

 

 

Thx a lot for ur help

Posted
/var/www/vhosts/site.com/httpdocs/images/products/dir/dir/

are you sure that your product images stored in above directory?

 

images directory is chmoded 777 and all of his subdir.

what about

/products/dir/dir/

directories are they chmoded?

 

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Posted

Thx for ur reply Web-project.

 

Yes i have chmoded all subdir and i see something new : all subdir created by the admin are owned by apache / apache.

And the new dir are with permissions 755.

 

ok it seems to be normal but it don't work till i change the owner from "apache / apache" to "myadminaccountname / psacln" (plesk grp). Then after changes all works fine. :huh:

 

The account is the one used to login by ftp, and the group is created by plesk.

Archived

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

×
×
  • Create New...