Jump to content

[SOLVED] Need help to duplicate site on HostGator.com...


Recommended Posts

I am using 1.4.4.0 and HostGator.com and I have my shop at iHeartBlingBling.com. I want to make an exact duplicate on another domain name I host in this account and use both shops. I need help on the steps to do so as I am new to PrestaShop and just happy I made it this far.

 

I just do not want to re-do all that I did to get my shop where it is now, but instead make some changes to the duplicate.

 

Thanks,

Barb

Link to comment
Share on other sites

Porting PrestaShop 1.4.5 To Another Host

 

Requires MYSQL dump (export) and root (httpdocs) of your existing image that you want to move.

  • FTP or with other means, load all your new site files to new image
  • PHYMYADMIN or other means, load your new site DB from your image
  • Edit your new site DB

Changed the following fields in the new remote mysql db table (yoursiteprefix)_configuration:

 

PS_SHOP_DOMAIN yourwebsite.something

PS_SHOP_DOMAIN_SSL yourwebsite.something

  • Update the /config/settings.inc.php as follows:
    • define('_DB_SERVER_', 'your DB SERVER name, ex: localhost';
    • define('_DB_PASSWD_', ‘yourpassword’);

Link to comment
Share on other sites

I am not familiar with cPanel but with Plesk what you are trying to achieve is very easy.

 

You can simply go to the database section for your domain in Plesk and in a couple of clicks can make a copy of your database. During the copy you provide a name for it. The you can provide the copy with a new username and password.

 

After that you use the file manager in Virtuozzo and copy all the files from onedomain.com to otherdomain.com, this only takes a minute of so, unlike FTP that takes forever.

 

Then updating the settings in the otherdomain.com/config/settings.in.php is the final step. You can have your duplicate up and running in no time.

 

I don't know if cPanel allows you to manage files above domain level.

Link to comment
Share on other sites

dave L, you missed the DB updates in your post, and the particulars in the config/settings.inc.php. Did you see an error with the update requirements that I posted?

 

Before making a flippant post regarding my input you should check your own for accuracy.

 

I didn't go further as the OP is using cPanel and not Plesk.

 

Actually, as you ask I saw more than one error with the update requirements that you posted.

 

The OP is asking about creating a duplicate of his site on a new domain hosted on the same account, NOT 'Porting PrestaShop 1.4.5 To Another Host'.

 

I did not miss the DB updates as you do not need to do these. They can be done in the BO Preferences>SEO & URL's without having to start playing with the database.

 

You had already stated the particulars for the edit of settings.inc.php but after reading your post again you missed some.

 

However, I will restate these changes and will include the three settings that you missed in your advice:

 

define('__PS_BASE_URI__', '/folder_name/');

define('_DB_NAME_', 'database_name');

define('_DB_SERVER_', 'localhost');

define('_DB_USER_', 'database_username');

define('_DB_PASSWD_', 'database_password');

Link to comment
Share on other sites

  • 2 weeks later...

I did it! Wanted to document the steps I used for anyone that may need it in the future that uses HostGator or this version of cPanel. I may have done some extra steps, but this is how I finally got it to work. Now iHeartBlingBling.com and FairyDreamLand.com are the same with my basic design I had in mind and I can just make the necessary changes to each sites. Thanks for the help! :)

 

1. I installed PrestaShop on new domain via Quick Install.

2. Made a new database via MySQL.

3. Copied all Presta files from current domain to my hard drive via ftp.

4. Backed up the Database via MySQL Database Wizard.

5. Renamed the backup DB file to new DB name.

6. Uploaded the renamed DB to new DB via phpMyAdmin.

7. Copied all presta files from new install to my hard drive via ftp (Just to be Safe)

 

8. Changed the following in presta/config/settings.inc.php via Crimson Text Editor.

 

define('__PS_BASE_URI__', '/folder_name/');

define('_DB_NAME_', 'database_name');

define('_DB_SERVER_', 'localhost');

define('_DB_USER_', 'database_username');

define('_DB_PASSWD_', 'database_password');

 

9. Uploaded the changed settings.inc.php file via ftp to presta/config/ folder.

 

10. Uploaded the following folders (from current domain) to new domain via ftp.

img

modules

themes

 

11. Went to admin and changed the following:

Preferences > SEO & URLs (to the new domain name)

 

NOTE: Admin user/password were that of the old domain.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...