Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to change back from dev


mrpolka

Recommended Posts

Posted

Hi all,

 

I have close to nothing expirience with osCommerce so please help me. A former colleague changed the location of some files in the libery. Now I can't log in as admin.

 

I'm trying to log in here: /admin/login.php

 

but gets forwarded to this site when I try to log in: /dev/admin/login.php?action=process

 

What can I do?

 

best regards

MrPolka

Posted

looks like your configure.php is either now wrong or you are trying to log into a store in the wrong location

 

the admin is pointing to www.yoursite.com/dev/admin

you are trying to access www.yoursite.com/admin

IF you are using the correct url then log in via ftp of your web hosting control panel and go to admin / includes / configure.php there are two lines in there that point to your admin all you need do is remove the dev from the line

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Posted

Thanks for your fast reply.

 

I have entered the ftp server, but when I go to admin / includes / configure.php I just gets a blank page.

 

What to do?

Posted

You should not get a blank page via FTP, unless there is actually nothing in the file!

Please define what you call FTP so i know if its correct or not.

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Posted

Yes thats correct, you do have a file in your admin / includes / configure.php with contents and this is the one you need to edit as it now points to as you say dev/admin.

I cant say why you do not see it but its there and it has information in it otherwise you would get another cant connect error, what are you using for your FTP?

Nic

 

 

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Posted

thought you had as i managed to get to the login page, went to

http://www.helsegrossisten.dk/admin/login.php

and it sent me to

http://www.helsegrossisten.dk/dev/admin/login.php

i removed the dev from the url and got your admin.

Is there anything in your htaccess about redirects either your catalog (root) or admin?

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Posted

I think that you ftp is not working, the file in admin is there but for some reason your ftp isn't showing you. Why not try FileZilla if you Google it you will find it, use that and try again.

I'm sure the files contain info or you would have errors!

 

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Posted

Okay,

 

I'm not using a FTP program atm. Now I have downloaded the FileZilla client.

 

Should I use the Website Manager?

 

I really appriciate your help Nic.

Posted

Okay,

 

I'm not using a FTP program atm. Now I have downloaded the FileZilla client.

 

Should I use the Website Manager?

 

I really appriciate your help Nic.

 

Oh you said earlier you were, i would use filezilla to connect to your web space, you will always have it ready then.

Also im sure that once you have connected and opened the file you will see it right away

and you are welcome

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Posted

Got it.

 

This is what I get from the file:

 

<?php

define('HTTP_SERVER', 'http://www.helsegrossisten.dk/dev');

define('HTTP_CATALOG_SERVER', 'http://www.helsegrossisten.dk/dev');

define('HTTPS_CATALOG_SERVER', 'http://www.helsegrossisten.dk/dev');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/var/www/vhosts/helsegrossisten.dk/httpdocs/dev');

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

define('DIR_FS_ADMIN', '/var/www/vhosts/helsegrossisten.dk/httpdocs/devadmin/');

define('DIR_WS_CATALOG', '/');

define('DIR_FS_CATALOG', '/var/www/vhosts/helsegrossisten.dk/httpdocs/dev');

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('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'XXXXXXX');

define('DB_SERVER_PASSWORD', 'XXXXXXXXX');

define('DB_DATABASE', 'helse');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

Posted

OK change it to

 

<?php
define('HTTP_SERVER', 'http://www.helsegrossisten.dk');
define('HTTP_CATALOG_SERVER', 'http://www.helsegrossisten.dk');
define('HTTPS_CATALOG_SERVER', 'http://www.helsegrossisten.dk');
define('ENABLE_SSL_CATALOG', 'false');
define('DIR_FS_DOCUMENT_ROOT', '/var/www/vhosts/helsegrossisten.dk/httpdocs/');
define('DIR_WS_ADMIN', '/admin/');
define('DIR_FS_ADMIN', '/var/www/vhosts/helsegrossisten.dk/httpdocs/admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_FS_CATALOG', '/var/www/vhosts/helsegrossisten.dk/httpdocs/');
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('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'XXXXXXX');
define('DB_SERVER_PASSWORD', 'XXXXXXXXX');
define('DB_DATABASE', 'helse');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'mysql');
?> 

 

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Posted

It worked! Thanks a lot Nic.

 

You have solved my problem. Do you know how, I can make the site inactive / or something different, so they can't access it.

 

thanks again!

Archived

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

×
×
  • Create New...