Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Copy site to new directory


Ronny

Recommended Posts

Posted

Hello.

 

question 1.

I have searched the forum and although it?s probably there I can?t find the sollution to my problem.

I have installed a oscommerce to a sub domain. I have redesigned the site, added modules and languages ect. It seames to work fine.

I would now like to copy the site to another sub domain in the same directory so that I can keep the design and moduls and such and not have to do it all again. I understand this should be relatively easy as I don?t need to do anything regarding the database (or so I understand).

From what I?ve been told I need to do something with the configure.php in the catalog and admin directory.

If this is so please tell me what and take it slow and gentle...

 

Question 2.

I found out how to to keep the store in www.mysite.com instead of www.mysite.com/catalog.

Is this to late after intallation? I nolonger have thi install directory (if that?s important).

 

Hope someone can help a beginner. :)

May life be good to you...

Sincerely, Ronny

Posted
Hello.

 

question 1.

I have searched the forum and although it?s probably there I can?t find the sollution to my problem.

I have installed a oscommerce to a sub domain. I have redesigned the site, added modules and languages ect. It seames to work fine.

I would now like to copy the site to another sub domain in the same directory so that I can keep the design and moduls and such and not have to do it all again. I understand this should be relatively easy as I don?t need to do anything regarding the database (or so I understand).

From what I?ve been told I need to do something with the configure.php in the catalog and admin directory.

If this is so please tell me what and take it slow and gentle...

 

Question 2.

I found out how to to keep the store in www.mysite.com instead of www.mysite.com/catalog.

Is this to late after intallation? I nolonger have thi install directory (if that?s important).

 

Hope someone can help a beginner. :)

 

 

To change the location of your site all you need to do when you edit your two configure.php files

 

includes/configure.php

admin/includes/configure.php

 

is change the paths to reflect the new location. ie: if moving from catalog to the root just remove all the catalog references.

 

If you want to copy your site so you have a test site etc. then you should create a new database and populate it with the info from your existing one. You will then need to change the database info in your configure.php files at the new location to reflect the new database info.

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

Thank you. I will try that.

Know very little about database and mysql, but I?ll try to figure it out.

Feel free to try and guide me step by step :-" allthough I?m pretty sure you have better things to do :)

 

Sincerely

Ronny

May life be good to you...

Sincerely, Ronny

Posted
Thank you. I will try that.

Know very little about database and mysql, but I?ll try to figure it out.

Feel free to try and guide me step by step :-" allthough I?m pretty sure you have better things to do :)

 

Sincerely

Ronny

 

 

You should be able to setup a new database in your hosting control panel. You can use the same user, just assign it to the new database.

 

Once that is done go ahead and do a backup of your database in your osC admin to your local computer. Then go to phpmyadmin (from your hosting control panel) and choose the new database and click on the sql tab at the top. You will see where you can browse to a sql file, go ahead and browse to the backup you just did and then run it. This will populate your new databse with all the info from you old one. You are now done. All you need to do now is make the changes to your two configure.php files and you have another copy of your store ready to go.

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

Thank you very much.

I think I?m gonna be able to do this now :D

 

Best wishes

May life be good to you...

Sincerely, Ronny

  • 9 months later...
Posted

Hi there

 

I've got a similar problem.

 

I'm trying to copy mysite to a new site, I have set up both config files with the new database files. No problem there.

 

Everytime I try to load my site it tells me I am trying to call to an undifined page.

 

The page it's telling me is undifined is the index.php - this is defined in filenames and it is loaded correctly.

 

Is there something I'm overlooking?

 

Cheers

Posted

please be a bit more specific in your error postings...

an undefined page is not a (complete) error...

undefined function... in ...php on line ... and so forth...

else I cannot help you

Posted
please be a bit more specific in your error postings...

an undefined page is not a (complete) error...

undefined function... in ...php on line ... and so forth...

else I cannot help you

 

Hi sorry for the delay the exact error is

 

Fatal error: Call to undefined function: tep_href_link() in /home/sites/simply-vibrators.co.uk/public_html/shop/includes/languages/english.php on line 333

 

this is the line in english.php

 

define('FOOTER_TEXT_BODY', 'All models on this site are at least 18<br>Copyright © ' . date('Y') . ' <a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . STORE_NAME . '</a><br>Powered by <a href="http://www.oscommerce.com" target="_blank">osCommerce</a>');

 

If I remove the line from english.php it gives the same error for application_top.php but on a different line. Again this is the line it mentions

 

  $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));

 

I'm sure that if I were to remove this line it would pick the next reference to FILENAME_DEFAULT and say error!

 

 

As I said before filename.php correctly defines default as index.php.

 

Hope this is enough info for you to help.

Thanks

Rob

Archived

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

×
×
  • Create New...