Guest Posted December 2, 2006 Posted December 2, 2006 When I click on my site the following is the message that I am getting at the very top. Can someone please help me with this? What do I do? I am new to all of this website thing Thanks Warning: I am able to write to the configuration file: /home/shorelig/public_html/oscommerce/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.
ecopeia Posted December 2, 2006 Posted December 2, 2006 You need to change the file permissions. Go to your file manager and change this in the properties area to "read only" or CHMOD 644 My Contributions
ecopeia Posted December 2, 2006 Posted December 2, 2006 sorry... change the properties for this file. /home/shorelig/public_html/oscommerce/includes/configure.php My Contributions
Guest Posted December 2, 2006 Posted December 2, 2006 sorry... change the properties for this file. /home/shorelig/public_html/oscommerce/includes/configure.php And HOW do I do this exactly? Im sorry, I am new to all of this. Thanks
Guest Posted December 4, 2006 Posted December 4, 2006 And HOW do I do this exactly?Im sorry, I am new to all of this. Thanks Bumping up...Still need the help. Thanks
Guest Posted December 4, 2006 Posted December 4, 2006 You need to change the file permissions. Go to your file manager and change this in the properties area to "read only" or CHMOD 644 Ok I am copying and pasting everything I see in configure.php Now where am I to add "read only"? Thanks / Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://shorelightcandles.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://shorelightcandles.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'shorelightcandles.com'); define('HTTPS_COOKIE_DOMAIN', 'shorelightcandles.com'); define('HTTP_COOKIE_PATH', '/oscommerce/'); define('HTTPS_COOKIE_PATH', '/oscommerce/'); define('DIR_WS_HTTP_CATALOG', '/oscommerce/'); define('DIR_WS_HTTPS_CATALOG', '/oscommerce/'); 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', '/home/shorelig/public_html/oscommerce/'); 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', define('DB_SERVER_PASSWORD', define('DB_DATABASE', 'shorelig_osc1'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?>
Guest Posted December 4, 2006 Posted December 4, 2006 You need to change the file permissions. Go to your file manager and change this in the properties area to "read only" or CHMOD 644 Ok I am copying and pasting everything I see in configure.php Now where am I to add "read only"? Thanks / Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://shorelightcandles.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://shorelightcandles.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'shorelightcandles.com'); define('HTTPS_COOKIE_DOMAIN', 'shorelightcandles.com'); define('HTTP_COOKIE_PATH', '/oscommerce/'); define('HTTPS_COOKIE_PATH', '/oscommerce/'); define('DIR_WS_HTTP_CATALOG', '/oscommerce/'); define('DIR_WS_HTTPS_CATALOG', '/oscommerce/'); 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', '/home/shorelig/public_html/oscommerce/'); 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', define('DB_SERVER_PASSWORD', define('DB_DATABASE', define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?>
digipete Posted December 4, 2006 Posted December 4, 2006 Ashlie, When you install OSC, certain files, including the configuration files need to have full permissions enabled, so that OSC can write some changes to itself. Full permissions means the file must be CHMOD to 777 and it's done using your FTP program. This also means that people can access this file, read it and write changes to it themselves - not good. When your installation is complete, you need to change the file permission to lock everyone out. Follow these instructions and that message should go away. Post-Installation After installing osCommerce 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). The store admin directory on your server needs to be password protected using .htaccess. Most of the time the server you are hosting your store on has the ability to password protect directories through the server administration area so check with your host. Pete
Recommended Posts
Archived
This topic is now archived and is closed to further replies.