Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Request: Someone willing to help me with configure.php


i2yan

Recommended Posts

Posted

Hello, im having trouble with admin/includes/configure.php, Ive tried setting it up with the proper info but i always get problems when i try to use any admin functions. For example, from the main admin page, when i click on Configuration, or basically any link, the page doesnt load and gives me this error, Firefox can't find the server at www.nobscomputer.ca.

I've tried lots of different things and am pretty sure im just setting up the configure file incorrectly. Is anyone willing to help me with this problem? If so post here, or PM me you're aim or msn's.

Thanks,

 

Ryan.

Posted

This will give you an idea of how mine looks.

 

Naturaly the sensitivesections have been edited.

 

Hope it helps.

 

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://mywebsite.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://mywebsite.com');
 define('HTTPS_CATALOG_SERVER', 'http://mywebsite.com');
 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/home/myusername/public_html/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/home/myusername/public_html/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/'); // absolute path required
 define('DIR_FS_CATALOG', '/home/myusername/public_html/'); // absolute path required
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 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 . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

// define our database connection
 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'myusername_osc1');
 define('DB_SERVER_PASSWORD', 'mypassword{');
 define('DB_DATABASE', 'myusername_osc1');
 define('USE_PCONNECT', 'false'); // use persisstent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

Posted

maybe putting 'register_long_arrays = On in php.ini' will solve part off your problem?

 

if you post your configure.php file in this topic, maybe someone else can help

Posted
// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

define('HTTP_SERVER', 'http://www.example.ca'); // eg, http://localhost or - https://localhost

 

should not be NULL for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.example.ca');

define('HTTPS_CATALOG_SERVER', 'http://www.example.ca');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', '/public_html/catalog/'); // 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_WS_ADMIN', '/catalog/admin/');

define('DIR_FS_ADMIN', '/public_html/catalog/admin/');

define('DIR_WS_CATALOG', '/catalog/');

define('DIR_FS_CATALOG', '/public_html/');

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

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

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 . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

// define our database connection

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', '[user]');

define('DB_SERVER_PASSWORD', '[pass]');

define('DB_DATABASE', '[dbname]');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

 

Ive changed it to how oblongpeg's configure file is and im still having the same problem. Can anyone see where the problem is in my config file? Sensitive info has been changed.

Posted

Hi Ryan,

 

Sorry I haven't been able to get back to you earlier. Got your pm.

 

A couple of things that I can see that may be the problem.

 

Firstly, I have noticed that you have www. in the server description. Try using http://yourwebsite.com, and the same with the HTTP_SERVER and HTTPS_SERVER.

 

By the way that you have set up configure, it appears that all the files are still sitting in the catalog folder. If you do not have the index.php file in public_html folder (or www folder) the site will not be found.

 

My suggestion would be to take all files and folders out of the catalog folder and place them all directly into the public_html folder (or www folder) as they are the document root.

 

You will then have to change some of the paths in the configure file to reflect the changes.

 

Hope that kicks it off for you.

 

Mark

Posted

thanks for the help oblongpeg i moved the files out of /catalog and everything started to work. BTW youre lucky to be living in cairns, i was there once for a few days about 5 years ago and the place is amazing. The whole of queensland is spectacular.

Posted

Glad I could help.

 

Just to make you a little more jealous, I drive a dive charter vessel these days.

Archived

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

×
×
  • Create New...