Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Acessing the Admin after editing both configure.php files


Recommended Posts

Posted

I started with a temporary URL during the initial install. Then when the nameserver propagation was completed, I edited the admin/includes/configure.php and the catalog/configure.php to reflect the new URL. When I try to go to the admin section it says Server not found and it still wants to go to the old URL. Is there any other file which will need editing to be able to get into the admin section?

Posted

Look in your /admin/includes folder.

 

In there is a folder named "local".

 

In this local folder see if there is a configure.php file in it.

 

If so check it's contents.

 

osC will use data from it if it is present.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
Look in your /admin/includes folder.

 

In there is a folder named "local".

 

In this local folder see if there is a configure.php file in it.

 

If so check it's contents.

 

osC will use data from it if it is present.

 

Thanks for the tip. I checked this folder and the onlu file there was a readme file there was no configure.php file present. I figured it out what happened was the permissions which I thought were set were NOT in the admin/includes/configure.php so when I edited this file it never wrote the file to the server. After changing the permissions to allow writing the edits were fine.

 

One tidbit of info I used Filezilla to edit and change permissions (chmod) and found that it didn't work as expected. I used cpanel and that seems to work much better. Hopefuly this will help others when editing files. Moral of the story is used cpanel and you permissions and edits will work much better. Peace

Posted

Change the permissions from cPanel of your web hosting service for

 

 

 

1) /public_html/catalog/admin/includes/configure.php

 

2) /public_html/catalog/includes/configure.php

Posted

your admin/includes/configure.php should reflect as follows

 

<?php

/*

$Id: configure.php 1739 2007-12-20 00:52:16Z hpdl $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

define('HTTP_SERVER', 'http://www.yourserver.com');

define('HTTP_CATALOG_SERVER', 'http://www.yourserver.com');

define('HTTPS_CATALOG_SERVER', 'http://www.yourserver.com');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/');

define('DIR_WS_ADMIN', '/admin/');

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

define('DIR_WS_CATALOG', '/');

define('DIR_FS_CATALOG', '/');

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', 'mysql');

define('DB_SERVER_USERNAME', 'your_phpmyadmin_login');

define('DB_SERVER_PASSWORD', 'your_phpmyadmin_password');

define('DB_DATABASE', 'yourdatabasename');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

Remember if you changed your password,login, or database name, you have to change it here too

Archived

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

×
×
  • Create New...