24

Moving DAP From One Host (or Domain) To Another

NOTE: We do not provide support for server or domain moves as part of Standard DAP Support that you get with your purchase of DAP. Please see our Terms Of Support which explains why. If you want our help with moving a DAP installation, you may purchase Premium Support slots from http://DigitalAccessPass.com/buynow.php#store (see “Installations & Support” tab)

Moving a DAP installation

DAP does not store the domain name anywhere in the database. So if you want to move an existing installation to a new domain, the only place where you need to change your domain name in the DAP installation (if you’re moving across domains) is in the dap-config.php file.

Moving a DAP installation consists of basically moving the files, and moving the database. Only 2 components.

  • Log in to your web hosting control panel, go to “phpMyAdmin”, select your WordPress database (which is where the DAP tables are also installed, by default)
  • Do an “Export” of just the DAP tables. Select the “SQL” option and select “Save as File”. All DAP database tables start with the text “dap_”. Save this file on your desktop – let’s say you call it “dapexport.sql” (it could also be “dapexport.txt” – does not matter what the exact extension is – .txt or .sql).
  • Make a back up of the dap-config.php file (located in the “dap” directory on your old site/domain) on your desktop
  • At your new site, install WordPress (if not already installed)
  • Log in to your web hosting control panel of your new site, go to “phpMyAdmin”, select your WordPress database, go to the “SQL” tab, open the export file from above (dapexport.sql), copy the contents, paste into the SQL tab and hit “Go”. All dap data from your old site is now on your new site.
  • Copy the database credentials (db name, db username, dp password and db host) from your new blog’s “wp-config.php” to the “dap-config.php” file stored on your desktop.
  • If you’re also changing domain names, then open dap-config.php, and modify SITE_URL_DAP to point to your new domain name.
  • Upload all dap files to your new site (don’t do full installation – just upload the files).
  • Upload the DAP-WP-LiveLinks folder to wp-content/plugins/
  • Upload the modified dap-config.php file from your desktop to the “dap” folder on your new site.
  • Log in as WP admin, and activate the DAP-WP-LiveLinks plugin. It should give you a warning that DAP is already installed. That’s ok – that’s what we want it to say.
  • That’s it. DAP is now moved over from your old site to your new site.
  • Log into your DAP Dashboard using your old DAP admin login info, and you’re all set.

 

Click Here to Leave a Comment Below 24 comments
Peretz - June 28, 2010

Exactly what I needed!
Thanks, Ravi.

Reply
Karen Tax - September 3, 2010

I’m in a catch-22 situation w/ a DAP move: I’ve got my license key for the newly moved DAP, but I can’t log into admin to set the license key because there is no license key! How do I get around this?!
–Karen

Reply
Rogier - September 16, 2010

Could you indicate which options should be selected in phpMyAdmin? Apparently different versions have different options (checked) by default. For example, in version 3.2.4, do we need to select “Add DROP TABLE “? What about “Add IF NOT EXISTS” ?

Reply
Russell - April 18, 2011

Hi Ravi,
I am moving my DAP installation to a new host. I think I have it mostly complete, but when trying to activate the plugin I get the following error. Can you help me please?

Plugin could not be activated because it triggered a fatal error.

Fatal error: Cannot redeclare myErrorHandler() (previously declared in …/globalsitesecrets.com/dap/dap-settings.php:110) in …/globalsitesecrets.com/dap/dap-settings.php on line 124

Thanks,
Russell

Reply
Veena Prashanth - April 18, 2011

You are probably on a different version of WP on this host.
Download latest version of DAP Live Links plugin and upload to your site and the error will go away.
Or use the same version of WP that’s currently working on current host.

Reply
Russell - April 18, 2011

Thanks Veena,
I am going to start a ticket.

Reply
Lia Huber - October 4, 2011

Is it possible to merge two DAP databases? I have DAP on two sites and am creating one ‘delivery’ site that I’d like to merge all products onto.

Help?

Reply
Gareth - October 13, 2011

Worked a treat – thanks guys 🙂

Reply
Gabe - December 2, 2011

Any reason why I would need to do this export process separately from the rest of the WP tables in a host & domain migration?

It looks like no processing is being done to the SQL export in the procedure above.

Reply
Ravi Jayagopal - December 2, 2011

Gabe,

If you’re moving your entire WP database, which would include the DAP tables too, then no need to do this separately.

Reply
melanie - March 30, 2012

After completing the entire website / dap project for my client she came back to me six months later saying she has to change her domain name so she can trademark the name but she wants to keep the other site/domain name. I’ve read the moving directions above and they seem fairly straight forward. It will be on the same web server so will I need to set up a new cron job?
The new site is up and running with the new look, logo etc and all the same content from the old site rebranded. I’ve also recreated all 136 html emails with the new logo and artwork. I will recopy and paste these into their respective products in DAP once it is moved.
I plan on sending out an email to all the users next week talking about the move in service and the “new Look” of the emails.

Is there any steps I seem to be missing?

Reply
Veena Prashanth - April 2, 2012

>>It will be on the same web server so will I need to set up a new cron job? << Correct. If the database remains the same and just the site name changes, after you upload dap files to the new site, copy over /dap/dap-config.php to new site and just update the SITE_URL_DAP to point to the new domain. This way dap will continue to connect to the old/existing database but from the new site.

Reply
Melanie - April 2, 2012

Thanks. I will have to copy the Dap tables over. The dev site isn’t using the same db.

Reply
Evelyn - February 19, 2013

HI,
My new client has DAP installed and running in the root of the domain. We want to create a new website while leaving the old one up. I’m going to do this in an add on domain folder to start. Then we’ll redirect the domain to point to that folder. What is the best way to connect dap to the new website/folder (the domain temporarily will be an IP test domain.) So the installation where DAP is currently being used will sort of be ignored in the root folder as we make the new folder the main version running the site.
Thanks,
Evelyn

Reply
Veena Prashanth - February 20, 2013

Hi Evelyn,

You just need to install dap in the root folder of the add-on-domain.

Pls see:

http://www.digitalaccesspass.com/forums/threads/756-Subfolder-installation

Reply
Dan - July 9, 2013

Just made a move of DAP from one domain to another, it war relatively smooth. The one thing you need to remember is to update your payment processor info (like your IPN at Paypal) and also update your cronjobs. Otherwise, great instructions and no major issues.

Reply
Julie - July 10, 2013

Hi Veena

I have a weird problem where my new DAP installation is referring to the old site for any of the processing like payment processing and affiliate registration. I have checked the database and the dap-config file and there is definitely no reference to the old site. Any ideas?

thanks

Reply
Veena Prashanth - July 10, 2013

Hi Julie,

Are you sure SITE_URL_DAP in your dap-config.php is pointing to the right site?

Are you using a dap-generated payment button? Please check the button code and make sure there are no references to the old site.

If it is not resolved, please open a support ticket with us and we will take a look.

Thanks,
Veena

Reply
Paul Dunstan - December 16, 2014

I have an installation of DAP, with one membership site live and full of customers. Unfortunately, it is built on OptimizePress v1, which is now not functioning with the latest versions of WordPress. I would like to create a new version of the membership site, on a new WordPress install, with a new theme. I would like then to sell this to my new customers, rather than keep selling the old one.

I have just bought a new domain, which is now assigned as an addon (subdomain) of the main domain.

I know I can put a new updated WordPress on this new domain.

The question is:

Can I install DAP livelinks on this new WordPress install (withougt buying it again)? Will it access the existing DAP install and my existing product and payment buttons etc.?

Is there anything else I need to know?

Thanks,

Paul

Reply
Veena Prashanth - December 16, 2014

The add-on domain needs to have it’s own installation of DAP. The DAP installation at the root folder of your site will not be able to manage WP installed in the add-on domain.

You can install DAP on the add-on domain and then update the /dap/dap-config.php file (in your add-on domain) to point to the original database (main domain). This way the dap on the add-on domain can access the existing products/users. Make sure to remove dap from the main domain otherwise you will have 2 installations of dap pointing to the same database and it will mess up the tables.

Thanks,
Veena

Reply
Micah - March 29, 2018

If you are on a subdomain like “members.website.com” you’ll probably need to change/update wp-config.php as part of your server move. This info was in DAP-WP-LiveLinks.php, but someone else may find it useful as I would have if it were here on this page 😉

————————————————–

For sites that have a sub-domain problem, do the following:

1. Go to the folder where dap is supposed to be installed. Do a getpath in that folder. Get the path (let’s call it NEWPATH)
2. Add these two lines of code somewhere towards the middle, after any existing similar if(!defined…) statement, within wp-config.php
if ( !defined(‘SITEROOT’) )
define(‘SITEROOT’, ‘/home/content/html’);
3. Try to activate LiveLinks.
4. If you get an error saying NEWPATH/dap/dap-config.php cannot be found,
then create dap-config.php manually by copying db settings from wp-config.php,
and upload to dap folder, and now try activating LiveLinks again.

That’s it!

Reply
Veena Prashanth - March 29, 2018

Hi Micah,

This is only required if the “path to site root” on your site does not match the “document root”.
On most sites, this is not a required step. Just visit http://yoursite/dap/siteroot.php and if the siteroot and docroot don’t match, only then you need to add the SITEROOT definition in wp-config.php.

-Veena Prashanth

Reply
Nicholas Bugeja - April 2, 2018

Hello,

I am moving my entire site from one host to another, and then I will be changing domain names as well. I have no customers active at the moment and not using DAP. Do I still have to follow the instructions above or can I just reinstall the plugin on the new domain with my previous license key and start anew?

Thanks very much!

Reply
Veena Prashanth - April 2, 2018

Hi Nicholos,

You can install DAP on the new domain. Don’t have to move tables or files. And if you run into any license issues, please open a support ticket.

-Veena

Reply

Leave a Reply: