Many people want to have a duplicate Wordpress site for testing or development purposes. There are several steps to take to achieve this outcome. This tutorial will outline the steps for making a copy of a Wordpress site for testing. Click here to learn more about WordPress Hosting.

Copying a Wordpress site from one location to another

  1. Log into your cpanel
  2. Create a subdomain. that is used for accessing the testing site. For example testsite.yourdomain.com.
  3. Go to your File Manager. Make sure that you select Show Hidden Files when you select the directory to be opened.
  4. Copy your Wordpress Files from your current directory to the document root directory created for your subdomain. The root directory usually is the same name as the subdomain that was created. Also, click in the folder that contains your WordPress installation and copy the .htaccess file. This file needs to reside in the same location where you have copied your WordPress files or at the root of the new location. The .htaccess file may contain important references to your current Wordpress installation. Depending on your installation setup, you may need to look for this file in the root of the account. For example, InMotion Hosting normally uses a document root of "public_html." Check this location for the .htaccess file if you did not find one in the original installation location for your WordPress site.

    duplicate-wordpress-site-for-testing-select-all 4.1 Select all the Wordpress files.


    Important! When selecting all your Wordpress Files, make sure the folders for the subdomains/addon domains, or any other non Wordpress folders, are not selected. After selecting all, hold the Ctrl key on the keyboard and click the folders that are not being moved so the are not highlighted blue before copying the files. Otherwise, there will be duplicates of those folders in the testing site.

    duplicate-wordpress-site-for-testing-copy-files 4.2 Click Copy at the top right side of the File Manager


    duplicate-wordpress-site-for-testing-click-copy 4.3 Type the path to the Document Root folder for the Sub Domain.


  5. Create a database This will be used to separate the test site from your main site. If you use the same database for the test site, the live site will reflect the changes that are made on the test site. Importing the existing database to the test site database will prevent this.
  6. Export your current database
  7. Import your Database to the new database you created.
  8. Configure the Test Wordpress wp-config.php file for the test site. This needs to be done or the test site will use the main Wordpress site database.
  9. Change the site URL for the test site - The site URL is stored in the Wordpress database. in order for the site to load as a test site, the site url will need to be changed to the subdomain url. For example http:// testsite.yourdomain.com.
  10. Correct image links - Lastly, ensure that image links in your pages and posts are also changed. These are in the database and not connected to the site URL so they will need to be changed separately.

This concludes the tutorial for duplicating your Wordpress  for testing.

Support Center Login


Social Media Login

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question
n/a Points
2014-07-06 11:44 pm

Great tutorial!  So after the "test site" is complete how do you copy it back over to replace the original site?  Do I just follow essentially these same steps again?  Thanks!

Staff
9,968 Points
2014-07-07 3:49 am
Hello Joey,

I would recommend that you copy all of your WordPress files in the main /public_html directory to a new one such as /wordpress-backup. Then move all the WordPress files from the sub-directory WordPress installation into the /public_html directory.

Once that is complete, you now have the same core WordPress files in your /public_html directory that were in your /public_html/wordpress directory. The wp-config.php file from that sub-directory installation is pointed still at the new database you crated for the copy site as well.

You will then want to change the WordPress address directly in the database, and modify the siteurl and home rows in the wp_options table to read just your main directory instead of the sub-directory address.

That should be all there is to it. You might also find my guide on how to easily move WordPress helpful in the future, especially the 2nd video and steps. In your case of moving from a sub-directory to the main root would get to skip the exporting and importing the database section, as well as modifying your wp-config.php file, as that's not necessary when doing a WordPress move on the same server.

Please let us know if you had any other questions at all.

- Jacob
n/a Points
2014-09-11 5:04 pm

Unfortunately, this did not work for me.  Followed instructions carefully and appears as if everything is moved over, but when i go to the new URL (subdomain), I am told the page is unavailable or does not exist.  Thoughts?

Staff
21,727 Points
2014-09-11 5:53 pm
Hello Sean,

Sorry to hear that you're having problems with duplicating your site. It would help to be able to see your URL or account, so that we can take a look to see what you've done. Instead of us guessing at the problem, please provide us a little more information and we would be happy to look further into the issue for you.

Kindest regards,
Arnel C.
n/a Points
2014-10-02 7:07 am

Http://josh.thekoreanwave.org

Http://thekoreanwave.org/josh

Warning: define() expects at least 2 parameters, 1 given in /home/content/10/7441410/html/josh/wp-config.php on line 28Warning: Cannot modify header information - headers already sent by (output started at /home/content/10/7441410/html/josh/wp-config.php:28) in /home/content/10/7441410/html/josh/wp-includes/functions.phpon line 2973

Error establishing a database connection

Please help

 

Thanks in advance.

 

Josh

Staff
11,156 Points
2014-10-02 9:39 am
It looks like you made an error when editing your wp-config.php file on like 28. Could you provide exactly what you have on that line?
n/a Points
2014-09-28 8:55 pm

Awesome tutorial. This really helped me out. Thanks!

And Sean, I had the same issue initially. Turns out I copied all the files to the wrong test folder. It's case sensitive, so make sure the folder is public_html/Test not public_html/test or vice versa.

Don't know if that was your issue, but I got hung up because of that. Best of luck!

Jamon

n/a Points
2014-10-02 4:37 am

It worked for me. How do i acces wp-admin to make the changes i want and keep the live site working

Staff
24,272 Points
2014-10-02 9:00 am
Hello Tejas,

If you moved your site to a subfolder, for instance, from example.com to example.com/test, then the wp-admin URL for the test would be example.com/test/wp-admin.

Kindest Regards,
Scott M
n/a Points
2014-10-06 10:14 pm

great tutorial, although once i'm done setting up my test site and try to log-in I receive the following error. Any ideas?

Fatal error: Cannot redeclare jetpack_is_mobile() (previously declared in /home4/vince06/public_html/wp-content/plugins/jetpack/class.jetpack-user-agent.php:3) in /home4/vince06/public_html/test/wp-content/plugins/jetpack/class.jetpack-user-agent.php on line 59

Staff
11,156 Points
2014-10-07 7:52 am
It appears that your site is attempting to load the Jetpack plugin from both your testing environment as well as your main site, on the same site. I recommend checking through your wp-config.php file as well as your database of your testing environment for any old references to your main production site.
n/a Points
2014-10-07 9:48 pm

I searched for my website through my php admin and changed all the websites to the test version within the wp options of my test site. I also went into the config (codex) of my website to see line 59 (assuming that is what its refereing to) and tried removing it, still same error. I just started my website, www.vincenzocutrone.com and have limited coding and web creation knowledge. The test site is www.test.vincenzocutrone.com. I also tried de-activating Jetpack from the main site, still getting the error. Is there something else that i'm doing wrong?

 

Thanks again for the help, I apologize for my lack of knowledge on the subject matter.

Staff
21,727 Points
2014-10-08 9:46 am
Hello Vince,

Sorry to hear you're still having the problem with Jetpack. If you're still seeing that error, then it's most likely because that plugin is still loaded somewhere on that site (or at least a piece of it is). You need to remove it completely in order to clear the error. If you need more information on troubleshooting plugins, check out troubleshooting WordPress plugins. You will need to remove Jetpack from your duplicate install.

If you are a customer of InMotion, we can also look at the files directly, but we need your account info and a little time to work on your web site. I hope this helps you to move forward. Please let us know if you have any further questions or comments.

Regards,
Arnel C.
n/a Points
2014-10-12 12:10 pm

Hi there, thanks so much for the vid. Pretty easy to follow. My website has the suffusion theme. However, when I go to the test site, a lot of the suffusion styling isn't there - and there are some text widgets missing in the left hand column? Can you please advise?

www.cleaningafrica.co.za and 

www.test.cleaningafrica.co.za 

Many thanks,

Alison

 

Staff
11,156 Points
2014-10-13 11:29 am
Depending on how your theme is coded, you may have additional hard-coded links in there which can cause issues. To check for this, you may do a full search on your database within PHPMyAdmin by clicking the Search button up top and entering in your domain.
n/a Points
2014-10-27 4:29 am

Great tutorial.

If i create my duplicate website in a subdomain, will my username and password to access wp-admin be the same as the root domain?

I'm afraid that Google will read my test website as duplicate content. How can i prevent Google from reading my test website?

 

Ori

Staff
13,760 Points
2014-10-27 8:55 am
Hello Ori,

Thank you for your WordPress question. Yes, your duplicate website will use the same username and password as the original. You can always change WordPress password, and username.

You can stop Search Engines from crawling specific folders, by using a robots.txt file. For example, you could stop them from searching the folders containing your duplicate site.

You could also password protect the folder containing the duplicate site, then it will only be accessible via username and password.

Thank you,
John-Paul
n/a Points
2014-11-09 8:28 pm

Hi All,

THanks for posting this tutorial. It is very helpful and easy to follow.

I almost got it right however I must have meesed sth up because it does not entirely work.

 

My original site:

example.mydomain.eu available under www.example.pl

My test site:

mydomain.eu/exampletest

 

When I enter this URL: mydomain.eu/exampletest/wp/wp-admin I can actually log into it.

However when I want to bring it up: mydomain.eu/exampletest/wp it redirects me to the original www.example.pl

I have now run out of options as to what I am doing wrong.

Any help will be greatly appreciated.

 

regards,

Peter

Staff
21,727 Points
2014-11-10 3:12 pm
Peter,

Thanks for the question. If your installation of WordPress was going to a particular path but it's a sub-directory under another website installation, then you need to make sure that none of the applied re-direct rules are applying to your current URL. Re-direct rules are generally found in the .htaccess file. Since you have not provided us any information on your account we cannot check this for you. You can see an example of a re-direct by going to this article. Click on the link for more help on finding and editing the .htaccess file, please.

If you have any further questions or comments, please let us know.

Regards,
Arnel C.
n/a Points
2014-11-23 2:03 am

thanks for a really good tutorial, very clear instructions. I've followed the instructions and the test site is there but it's not showing the theme installed in the original site. I'm also not sure how to get in to the dashboard on the test site

url is test.*************.com.au (original is *************.com.au)

Staff
13,760 Points
2014-11-24 9:53 am
Hello SIri,

Thank you for your question. Please make sure you have completed Step 9, which changes the domain to the new test URL.

This should fix the styling of the site and allow it to resolve at the new test URL. For example: https://test.*************.com.au

Then, you would login to the dashboard using the test URL, for example:
https://test.*************.com.au/wp-admin

Thank you,
John-Paul
n/a Points
2014-11-27 12:17 am

It's working :)

Thanks for your help

2014-11-27 12:37 am
Thanks John-Paul, I can see the site with proper styling now but I can't seem to get into the dashboard. I tried redirecting in the general settings (after I had done the config) to see if this would work and now i can't get in as it won't recognise my password. o'oh :/
2014-11-27 12:47 am
Ha the site locked me out! all good now, back in and can get into the test backend, phew :)
n/a Points
2014-11-28 1:12 am

Hi John-Paul,

My site is working, I can see both the main site and the test site just fine and I can get into the backend of the test site, but I can't seem to get in to the backend of the main site anymore. I really need to be able to get in there to add content etc to the main site, the test site I was setting up as a play and learn area so while I do want to be able to try stuff out there, I want to be able to add to the main site as well. Is there a way to switch the dashboard back to the original site dashboard? (there's already stuff I cant access because it was posted after I copied the database over to the test site).

Thanks for your help

Siri

Staff
13,760 Points
2014-11-28 11:31 am
Hello Siri,

Thank you for contacting us today. We are happy to help, but will need some additional information information.

What happens when you attempt to login to the backend of the main site?

Are you getting any errors? What are they?

Thank you,
John-Paul
n/a Points
2014-12-01 3:58 am

Hi John-Paul,

Mostly I'm not getting errors, it loggs in but redirects to the test site backend. I've noticed too that the website pages seem to be opening as either the original site or the test site, mostly it is redirecting to the test site. I was thinking about retracing my steps and undoing the setup of the test site up to adding te database then trying again. What do you think?

Siri

Staff
24,272 Points
2014-12-01 12:03 pm
Hello Siri,

Undoing and retracing would be what I would do. There should be no effect on the main site during or after the process, so it is likely that something got changed that maybe shouldn't have. That should reset you so you can try again. Believe me, we have to do that all the time so do not be afraid to do that when needed.

Kindest Regards,
Scott M
n/a Points
2014-12-02 4:56 pm

Thanks for the tutorial.  Unfortunately, I have made a mess of it.  I attempted to carefully follow each step, but keep getting a 'Server Not Found' message (http://test.mcfarlandeye.com/).  In my attempt to go back through the steps and correct anything I may have missed, I now have created a messy file directory that I just need to delete. How can I delete and start over?  Any ideas on why I'm receiving this message?

Thank you!

Sara

Staff
11,156 Points
2014-12-02 5:08 pm
It sounds like the subdomain you are referring to has not been fully created. Be sure you create the subdomain as well as allow up to 24 hours for propagation.
n/a Points
2014-12-02 5:10 pm

Thanks, Jeff!  I'll walk away from it for now and check back tomorrow to see if it has propogated. 

n/a Points
2014-12-04 5:09 pm

Hi All,

aplus.net is my hosting site and my control panel is not as user-friendly; also the domain name is a bunch of numbers and letters.  Does anyone know how to clone a wp site in the aplus environment?

Thanks

Staff
13,760 Points
2014-12-04 5:19 pm
Hello YB,

Thank you for contacting us today. You can still make a copy of your WordPress site without utilizing the cPanel tools.

I found a helpful post in the Official WordPress forums, where they discuss Copying a WordPress site.

I also found an older post specifically covering Aplusnet, but I am not sure how accurate it still is.

Thank you,
John-Paul
n/a Points
2014-12-05 1:27 pm

If only it was that easy.  Aplus doesn't have tutorials nor do they provide cloning assistance over the phone.  I think... I need... to switch hosting companies.

Thanks

Staff
13,760 Points
2014-12-05 2:29 pm
Hello YB,

Sorry to hear about your experience. Feel free to reach out to our Sales team, and discuss if we can meet your needs.

We would be happy to help you migrate your WordPress site to our servers.

If you have any further questions feel free to post them below.

Thank you,
John-Paul
n/a Points
2014-12-13 2:12 pm

Thanks for tutorial.  I tried following the exact instructions to set up a subdomain but I get the following error when I try and access the test site:

"The server at '...' can't be found, because the DNS lookup failed."

What have I missed?

Staff
24,272 Points
2014-12-15 9:29 am
Hello Laura,

If you have followed the instructions on creating a subdomain properly, you should be fine. If you tried to access it just after creating the subdomain you may get the error. This is due to propagation time. After a bit of time, (I'd give it up to 4 hours) it should work for you.

Kindest Regards,
Scott M
n/a Points
2014-12-22 5:27 pm

Hi,

Great tutorial, thanks!

Everything seems to be working except when I try and install a new plugin I'm getting the following error(has happened for 3 plugins):

 

Downloading install package from https://downloads.wordpress.org/plugin/wordpress-automatic-image-hotlink-protection.zip

Unpacking the package…

Installing the plugin…

Could not create directory. /home/getnat6/public_html/staging/wp-content/plugins/wordpress-automatic-image-hotlink-protection/

Plugin install failed.

 

Any thoughts? Thanks!!

 

Staff
11,156 Points
2014-12-22 5:32 pm
It sounds like your wp-content folder has incorrect permissions. Set your permissions for the wp-content folder as well as the plugins folder inside it to 755 and that should do the trick.
n/a Points
2014-12-22 6:09 pm

Thanks for the quick reply Jeff. Apparently the plugin folder didn't get copied to the new test directory... Not sure how that happened, so I added the folder. But now when I add a plugin the admin section goes blank and I have to use cPanel to manually delete the plugin folder before I can access the admin section... I must have messed something up...

Any thoughts?

Thanks again

Staff
11,156 Points
2014-12-22 6:12 pm
Ensure the permissions are correct, and if it still gives you issues, try deleting all of the content from the plugins folder. This will ensure that any broken plugins are completely deactivated.
n/a Points
2014-12-27 1:46 pm

I created my testsite duplicate of my domain. All works fine except when I set the static home page in my theme customization settings it changes both my domain and testsite home page. Not what I want and I have not found anything online suggesting a fix for this.

Temp URL for my domain is http://198.46.81.188/~sfxcat5/      and I am using Word Press 4.1 and the Avada Theme package.

Does anyone have any suggestions? Thanks.

Staff
21,727 Points
2014-12-29 2:07 pm
Hello Stevejal,

It sounds like your installation for the temp is in the same place as your primary domain. By default, the primary domain would use a URL (e.g. yourdomain.com), but the files all get saved into the PUBLIC_HTML folder. If you were using the temp URL, the files all go to the same location (public_html). So, if you want to separate the installations, you would need to have one of the WordPress installs set in a subfolder or a different URL. For example: http://198.46.81.188/~sfxcat5/test. At this point though,you're referencing the installations with two different URLS, you're using the same files. Try using a different install directory with your test install, and then you shouldn't have the problem that you're currently seeing.

I hope this helps to answer your question, please let us know if you require any further assistance.

Kindest regards,
Arnel C.
n/a Points
2014-12-29 9:30 pm
this already perfect with youtube steps by steps demo :)
n/a Points
2015-01-05 10:13 pm

Hi there,

Thanks for the great instructions! I'm with BlueHost. I followed everything but in the end the test site turned out to be the WP default theme, not a copy of my WP theme. What did I do wrong?

Thanks again!

Staff
24,272 Points
2015-01-05 10:15 pm
Hello Annie,

Check and see if your theme is available to select from the dashboard.

Kindest Regards,
Scott M
n/a Points
2015-01-09 6:22 am

Hi, great tutorial, worked a charm :)

Where can I find the tutorial that reverses the process? 

Thanks,

Dave 

Staff
24,272 Points
2015-01-09 12:17 pm
Hello Dave,

Reversing the process would simply be removing the testing site. Is that what you mean?

Kindest Regards,
Scott M
n/a Points
2015-01-11 12:05 am

Hey guys

I followed the video closely and it was going fine until about 4:50 on the video.  I couldn't export anything because there was nothing in the test folder.   "No tables found in database."

I'm using my main account url, so am wondering if this was the issue, because I noticed all the other domains had folders inside this folder in file manager .

any suggestions?

Thanks,

Cara

Staff
24,272 Points
2015-01-11 10:17 am
Hello Cara,

If you received "No tables found in database." you may have been trying to export the wrong database. The original database has at least 10 tables in it, so you should not get that error when exporting the source database.

As for the other domain folders being under the public_html folder, this is perfectly normal structure for the cPanel, so nothing to worry about.

Kindest Regards,
Scott M
n/a Points
2015-01-14 4:47 pm

Hi, just wondering: Can I use the same steps to test locally with WAMP?

Staff
21,727 Points
2015-01-14 11:11 pm
Hello Luan,

WAMP was made so that you could emulate running a web server on a Windows server. If you are running WAMP, then you should be able to do the steps for duplicating a WordPress site. I hope that answers your question. Please let us know if you have any further questions or comments.

Regards,
Arnel C.
n/a Points
2015-01-19 5:25 pm

This is a really useful tutorial but I have a problem: When I try to login at test.mydomain.com/wp-login.php, the login submission takes me to www.mydomain.com/wp-admin.

I checked every www entry in the database and changed to 'test'. Any help would be hugely appreciated.

Staff
24,272 Points
2015-01-19 5:34 pm
Hello Dan,

You can modify the wp-config.php file and that should cause it to work properly. Then you can formally check and set them if needed from inside the admin dashboard.

Kindest Regards,
Scott M
n/a Points
2015-01-20 6:19 am

Thanks Scott, but after following the steps in the link you provided I can now no longer log into my live-site wordpress dashboard, despite only altering my subdomain/subfolder test wp-config.php file :(

n/a Points
2015-01-20 8:51 am

Please ignore my last comment - I have it working now. Thank you for your help Scott - editing the config file as suggested worked!

n/a Points
2015-01-27 2:32 pm

Scott,

If I am using a wordpress site, can I just "clone" the site to a subdomain using a program or plugin like ManageWP...and then go from there?

Thanks!

Don

Staff
11,156 Points
2015-01-27 2:46 pm
You can indeed clone the site using another program such as ManageWP or BackupBuddy.
n/a Points
2015-02-16 3:25 pm

I am getting a DNS error when I try to pull up my subdomain.

Staff
13,760 Points
2015-02-16 4:20 pm
Hello Heather,

Thank you for your question. We are happy to help, but will need some additional information.

What DNS errors are you getting?

Is this a new subdomain? If so, keep in mind new domains/subdomains can take up to 24 hours to update globally (propgate).

Thank you,
John-Paul
n/a Points
2015-03-02 11:24 pm

Hi,

Excellent tutorial. I did create 2 new subdomains for 2 new websites. Everything is working fine, able to access, able to login etc etc. I have used search&replace, to replace URL's to new locations including images, attachments etc. I have the below issues :

1) Image links broken : Though files and folders are there as per the locations required, still image display is not happenning.

2) Some of the plug-ins are broken/not working : Though files/folders exist for the respective plugins and there and ACTIVE.

3) Plugin icons not displaying : Same problem like (1), though all files/folders exist.

Can you help in this regard.

Staff
2,264 Points
2015-03-03 12:13 pm
Hello Rama,

I have found a wordpress forum thread that goes over the same exact issue you are having.
https://wordpress.org/support/topic/how-to-change-image-urls-after-wp-move

As for the plugins I would suggest uninstalling then re-installing them.

Best Regards,
TJ Edens
n/a Points
2015-03-11 5:24 pm

Very helpful tutorial. Followed it and was able to get a duplicate test website, up and running, in no time on a separate sub domain.

the only problem is that I lost the customized fonts. They do appear in the original wp website but not on the duplicate.

 

Any hints or pointers/suggestions to overcome this and make the fonts show up in the new sub domain duplicate the same way they are in the original version ?

Staff
24,272 Points
2015-03-16 10:41 am
Hello NASinc,

You may want to check for css for the pathing. That may be the issue with the fonts.

Kindest Regards,
Scott M
n/a Points
2015-03-12 4:19 pm

Hi, Great video! All is working perfectly on new test site except abiltiy to upload and display images. I am able to see all of the images in the media library that were on my production site prior to copying it, but when I upload new images, I only see an icon for them. In media library, if I click to edit the image, it will load the full image but once I save it is back to just the icon.

I am wondering if it is my theme or if I missed something in the duplication process. I am using WP 4.1.1 and Customizr theme. 

 

Staff
24,272 Points
2015-03-16 10:44 am
Hello MK,

Does the image upload work with the site you duplicated from? Have you changed the theme since you duplicated? If so, have you tested the by resetting it to the original theme?

Kindest Regards,
Scott M
n/a Points
2015-03-12 4:43 pm

How do I know what database is the "productin" database? I have the _test set up, but there are 5 other databeses on the list.

_06

_78

_97

_wp37

_wp960

 

Step 2: Click the database you are working with in the left menu.

How do I know which one to select?

Thanks,

 

Tim

 

Staff
24,272 Points
2015-03-16 10:46 am
Hello Tim,

Look into the wp_config.php file and you will find the database information such as name, user, and password.

Kindest Regards,
Scott M
n/a Points
2015-03-16 10:57 am

Thank you Scottt.

I resolved this on the support phone line. Terrific support as usual!

Test site is up and running, learned a lot from this video and from the guys on the phone.

Thanks!

 

Tim

n/a Points
2015-03-19 3:30 pm
Great video!! So simple and easy to follow. I was trying to do this myself but didn't know I had to make changes in the wp-options file. Thanks man!
n/a Points
2015-03-23 6:48 pm

Hello,

The problem that I have with this method is that I do not know how to update and change the URL's of the images.

I also found that several of my plugins no longer worked because the URLs were still pointing to old directories as well.

This did move all of my pages and posts however there were some big gaps in my site. Much of it no longer worked and I had links that were pointing to the old site.

Can you tell me how to fix this?

I was thinking of using this tool: http://www.backupcreator.com 

Will this work for me?

Thanks!

Eliz

Staff
24,272 Points
2015-03-24 10:18 am
Hello Eliz,

You will need to go through your settings and database to change any hard set URLs to the new URLs. You can view our article on correcting image links in WordPress for more information on that.

I am not sure about the tool you listed. We cannot endorse any particular tool especially if we have not tested it.

Kindest Regards,
Scott M
n/a Points
2015-03-24 1:55 pm

Thanks for the reply Scott.

YIKES! This is getting a little to technical for me. I am going to try that plugin. Hopefully it will work for me. 

Thank you so much for your post and help, I just get really scared and confused once it gets technical.

I will report back and let you know how it goes.

Thanks again! You are great!

Eliz

n/a Points
2015-03-24 5:09 am

Hai,

I just seen this video and I followed all the instructions.But the test site seems to be distorted and i cant able to login to the dashboard. please help me to run this site.

 

Thankyou!

 

Staff
2,264 Points
2015-03-24 2:12 pm
Hello Azmi,

Can you provide us the domain of your test website so we may look into the issue?

Best Regards,
TJ Edens
n/a Points
2015-03-26 4:47 pm

Hi There,

After having much troubles with a transfer, I have gone through your article in great detail and found it a great tutorial, however unfortunately I am still having troubles with copying my site to a subdomain. 

I have definitely completed step 9 and completed a search and changed my home & site url.

I am trying to duplicate www.orbinox.co.uk to www.2015redesign.orbinox.co.uk/wp-config.pho

If I try to visit my new website I get a blank screen. If I browse directly to the wp-config bt going to http://2015redesign.orbinox.co.uk/wp-config.php

I get the following error:

Warning: require_once(/web/sites/_o/_r/_b/orbinox.co.uk/public/2015redesign/wp-settings.php) [function.require-once]: failed to open stream: No such file or directory in/web/sites/_o/_r/_b/orbinox.co.uk/public/2015redesign/wp-config.php on line 91Fatal error: require_once() [function.require]: Failed opening required '/web/sites/_o/_r/_b/orbinox.co.uk/public/2015redesign/wp-settings.php' (include_path='.:/usr/local/share/pear') in/web/sites/_o/_r/_b/orbinox.co.uk/public/2015redesign/wp-config.php on line 91

 

I am really lost as to what to do now and have been at it for 3 days now. Any help or advice would be appreciated. 

Thanks

Staff
24,272 Points
2015-03-27 10:57 am
Hello Jesse,

You may need to search your database to see if this path exists. You will need to replace the current path with the new one within the database.

Kindest Regards,
Scott M
n/a Points
2015-03-27 11:15 am

Hi Scott,

I have search my SQL database and it cannot find the location. The only place it finds 2015redesign is in the home and site URL which I was meant to change.

Is it nothing to do with line 90 on the wp-config.php? (I dont see why as its a direct copy with just the database details changed). 

Line 90 in wp-config.php is this:

require_once(ABSPATH . 'wp-settings.php');

Staff
24,272 Points
2015-03-27 2:20 pm
Hello Jesse,

The ABSPATH variable is defined somewhere either in the database or in the files. This is where the path is coming from that the error message cannot find. You will want to find out where this is defined and ensure it grabs the proper path.

Kindest Regards,
Scott M
n/a Points
2015-03-30 5:22 pm

hi im from Brasil and thank you for this tutorial that help me a lot

n/a Points
2015-03-31 3:33 pm

Thank you for this excellent tutorial.

My site is sunrisetosunsethomeschool.com.

My testsite is testsite.sunrisetosunsethomeschool.com

I followed the instructions, but I received the following errors when I tried to view my testsite.

 

Warning: require_once(/home/sunris26/public_html/testsite/wp-load.php) [function.require-once]: failed to open stream: No such file or directory in /home/sunris26/public_html/testsite/wp-blog-header.php on line 12Fatal error: require_once() [function.require]: Failed opening required '/home/sunris26/public_html/testsite/wp-load.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sunris26/public_html/testsite/wp-blog-header.php on line 12

Staff
2,264 Points
2015-03-31 5:31 pm
Hello Kristen,

That error is specifically saying it is looking for a file, wp-load.php and it is not able to find it. You could copy the file from your main website files.

Best Regards,
TJ Edens

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

86 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!