clambake Posted April 29, 2006 Posted April 29, 2006 **** Attention: this is not a directory permission problem. If your suggestion **** is to chmod the directory to 777, please ignore this post. **** Hi, I'm getting this error on my site. I've installed it on linux box over which I have control: Error: Catalog images directory is not writeable: /opt/www/webserver/yellow/catalog/images/store/ This is not a permissions problem on the directory, as is shown below: [me@webserver site]$ ls -ld /opt/www/webserver/site/catalog/images/store/ drwxrwxrwx 2 me admin 4096 Apr 28 22:56 /opt/www/webserver/site/catalog/images/store/ I have tried changing the owner to apache:apache, which is the user that runs Apache, but that does not help. Here are some other directories that I understand should be writable: [me@webserver yellow]$ ls -ld /opt/www/webserver/site/catalog/pub/ drwxrwxrwx 2 me admin 4096 Apr 12 20:40 /opt/www/webserver/site/catalog/pub/ [me@webserver yellow]$ ls -ld /opt/www/webserver/site/catalog/images/ drwxrwxrwx 15 apache apache 4096 Apr 28 20:41 /opt/www/webserver/site/catalog/images/ [me@webserver yellow]$ ls -ld /opt/www/webserver/site/catalog/download drwxrwxrwx 2 me admin 4096 Apr 12 20:40 /opt/www/webserver/site/catalog/download I can not add images to products or catagories. Not only that, it doesn't even store the image path in the database, and all catalog images show up like this: <img src="images/" border="0" alt="3 Month Wall Calendar" title=" 3 Month Wall Calendar " width="100" height="80">. The standard OSCommerce images all display fine. Here are some config settings: /site/includes/configure.php: define('HTTP_SERVER', 'http://webserver.company.local/site/'); //define('HTTP_CATALOG_SERVER', 'http://webserver.company.local/site/'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'http://webserver.company.local/site/'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'company.local'); define('HTTPS_COOKIE_DOMAIN', 'company.local'); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', '/catalog/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); /admin/site/includes/configure.php: define('HTTP_SERVER', 'http://webserver.company.local/'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://webserver.company.local/site/'); define('HTTPS_CATALOG_SERVER', 'https://webserver.company.local/site/'); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module // define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) define('DIR_FS_DOCUMENT_ROOT', '/opt/www/webserver/site'); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) define('SITE_NAME', 'site'); define('DIR_WS_ADMIN', 'admin/' . SITE_NAME . '/'); //define('DIR_WS_ADMIN', '/admin' . '/' . SITE_NAME); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', 'site/'); define('DIR_FS_CATALOG', '/opt/www/webserver/site/catalog/'); define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/store/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . ''); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . ''); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/store/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); I would be grateful for any help on this problem. Regards, Paul M.
uconline Posted April 30, 2006 Posted April 30, 2006 on a FTP client change the CMOD properties for catalog/images to 777...i think
Recommended Posts
Archived
This topic is now archived and is closed to further replies.