Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning :: Pls help


Guest

Recommended Posts

Posted

I just installed OSCommerce.

On the index page, there is this warning,

 

"Warning: I am able to write to the configuration file: /home/vision/public_html/store/includes/configure.php. This is a potential security risk - please set the right user permissions on this file."

 

How do i edit the configure.php?

 

*/

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://visionlux.com.sg');

define('HTTPS_SERVER', 'https://visionlux.com.sg');

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'http://visionlux.com.sg');

define('HTTPS_COOKIE_DOMAIN', 'https://visionlux.com.sg');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/store/');

define('DIR_WS_HTTPS_CATALOG', '/store/');

define('DIR_WS_IMAGES', '/store/images/');

define('DIR_WS_ICONS', '/store/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/');

 

// define our database connection

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'vision_osc2');

define('DB_SERVER_PASSWORD', 'f0RXi4lWtf');

define('DB_DATABASE', 'vision_osc2');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql');

?>

 

Thank you... *really lost* Hope you all can guide me along.

Posted

You don't have to edit the configure.php. You just have to CHMOD the file permission to 444.

Posted

Have you looked at the knowledge base yet??

 

If not then you should do so, the answer to this question and many others can be found there. You will find that osC does have a bit of a learning curve and reading the documentation provided will make your life much easier.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Posted

and to Chmod the file as stated above you'll need an ftp program, e.g cute ftp or WS ftp - normally you'll find the remote file and right click it and look for the CHMOD command - this will bring up the chmod dialog box. theres three sections with three options in each. the Chmod number is effectively the number that is goten depending on the options you out in.

 

to see more info on Chmod and work out the numbers go to http://www.webweaver.nu/html-tips/chmod.shtml

 

hope that helps.

Posted

Thank you for your replies. I have sort out the problem. It lies with the hosting side issue.

Archived

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

×
×
  • Create New...