Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Catalog images directory not writeable


bthurston

Recommended Posts

Posted

I am getting an

error: Catalog images directory is not writeable: /home/chris2/public_html/images

 

I have reviewed the threads on this subject and am confused. I am getting this error with the directory set to 777. I only set it to that for testing. I dont understand what the issue is. Can someone help me out?

Posted

I change the permissions via cpanel. I change the permissions for the directory that is given in the error, which is what is stated above. I don't see how to change permissions via the file manager in OScommerce. While checking this I just noticed that the backup directory is not writeable. I am also seeing another error when I click into the file manager for oscommerce. At the top it says "Deprecated: function ereg() is deprecated in /home/chris2/public_html/HAWKadmin/file_manager.php on line 57". I am not sure if the additional info helps. Is it possible that this is a configuration issue somewhere and not a permission issue? Im at total loss.

Posted

Sigh. 777 is not necessarily writable! Your server might be configured with security software such as suPHP, which blocks access to "world writable" directories or files. Always start with 755. If osC complains that it can't write, try 775. Only as a last resort try 777, as that's a potential security hazard. Once you've learned what permissions are needed for PHP (osC) to write to a directory or file, you can remember that for the future.

 

From the file path you gave, I presume you're on Linux. Double check that when you changed permissions via your hosting control panel > File Manager, that it actually did change the permissions. Some File Managers, such as the one in cPanel, are quirky (you have to check/uncheck boxes, NOT type in the new numbers). Many servers ignore permission changes from FTP clients.

 

ereg problems are a separate issue (shows up with PHP 5.3 and up). Do a search on this forum and you'll find plenty of discussion on it.

Archived

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

×
×
  • Create New...