Wanwan Posted August 19, 2005 Share Posted August 19, 2005 hi there, I have successfully install the osCommerce using XAMPP. The next step is follow these steps for post-installation: 1. Rename the catalog/install folder or delete it. 2. Reset the permissions on catalog/includes/configure.php to 644 (if you are still getting the warning message at the top of the page after setting this configure.php files to 644 then set the catalog/includes/configure.php file to 444 which is read only - this happens on some servers that have been updated for security reasons). 3. Set the permissions on catalog/images directory to 777 4. Set the permissions on admin/images/graphs directory to 777 5. Create the directory admin/backups and set the permissions to 777 (this is the folder to store the database backup of your store in the "Tools" section of the store admin). I don't know why we have to rename the catalog/install folder or delete it? I don't know where to find the permissions on catalog/includes/configure.php? Instead I know where to get the configure.php file open. this is example of my configure.php file <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'localhost'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/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', 'C:/XAMPP/apachefriends/xampp/htdocs/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'admin'); define('DB_SERVER_PASSWORD', 'admin'); define('DB_DATABASE', 'osCommerceTest'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> Where to reset the permission to 644??? :blush: Wanwan -- %_%_ Link to comment Share on other sites More sharing options...
Guest Posted August 19, 2005 Share Posted August 19, 2005 On Windows right click the file>>properties>>check 'read only' Renaming or deletion of the install directory is a security measure - if somebody accessed it on a live server they could mess up your entire installation :blink: Matti Link to comment Share on other sites More sharing options...
Guest Posted August 19, 2005 Share Posted August 19, 2005 The permissions apply to the file itself, you want to make it read only for everybody but you. (security) if your on a testing server, right click the files, and made them read only. a webserver, you must chmod the installation folder is a security issue also, nothing to do with the operation of your cart. It simply has no purpose after it has done its job, and if you have a live shop, and someone is familiar with osCommerce, they would be able to type your Url/install, and take your shop from you, just like that..its a good idea for it to be gone or renamed. Link to comment Share on other sites More sharing options...
Wanwan Posted August 22, 2005 Author Share Posted August 22, 2005 I have tried to change the permission to 644 but I still can't make it work. Now I end up this warning message on top of my catalog/index.php Warning: chmod() [function.chmod]: No such file or directory in C:\XAMPP\apachefriends\xampp\htdocs\catalog\includes\configure.php on line 52 I have used this chmod syntax on my "catalog/includes/configure.php " chmod("catalog/includes/configure.php", 0644); So??? Anyone know? I am surprise that most likely people can solve this problem, I guess that is why I didn't see anyone asking the same question. B) Wanwan -- %_%_ Link to comment Share on other sites More sharing options...
Wanwan Posted August 22, 2005 Author Share Posted August 22, 2005 I have tried to change the permission to 644 but I still can't make it work. Now I end up this warning message on top of my catalog/index.php Warning: chmod() [function.chmod]: No such file or directory in C:\XAMPP\apachefriends\xampp\htdocs\catalog\includes\configure.php on line 52 I have used this chmod syntax on my "catalog/includes/configure.php " chmod("catalog/includes/configure.php", 0644); So??? Anyone know? I am surprise that most likely people can solve this problem, I guess that is why I didn't see anyone asking the same question. B) <{POST_SNAPBACK}> I have solved that problem... Thank you ! :P Wanwan -- %_%_ Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.