Wordpress duplicator moving from subdomain to root/domain - mysql

I created Wordpress website on localhost. I moved wordpress with duplicator plugin to subdomain for testing (dev.example.com). I created new mysql database and user for subdomain. Everything works fine.
Now, I would to move my wordpress from subdomain to main domain/root. On existing root there is still old website. I am going to delete everything in public_html.
Can i create new mysql database and user for root/domain; and move wordpress with duplicator plugin... just like i did moving from localhost to subdomain (I created new database for subdomain).
Is the process the same? Or is there better way moving from subdomain to root.
Best,
Klemen

Essentially yes you can do this, just make sure you backup the live site before overwriting it.
I use Duplicator all the time for migrating local dev sites to live domains.
Good luck!

Related

Wordpress Duplicator from MAMP to local LAMP server - Links broken

I developed a Wordpress site locally using MAMP.
I'm trying to transfer it on my home server to show to the client, so I used the plugin "Duplicator".
Everything seemed to work fine but all the links are now broken.
I put the .zip archive and the installer.php inside a folder inside the "html" folder of apache and run installed.php from the browser.
I'm not familiar with the 'duplicator' plugin, but when you transfer a Wordpress site to a new server, you usually have to do three things.
Edit the wp_options table and change the siteurl and home field to the URL of the new site.
Update the wp-config.php file to have the correct settings for the new server.
Use a search and replace tool to bulk replace the old URL with the new URL in all your posts and pages. The best tool I have found is to install wp-cli (http://wp-cli.org/) and then run:
wp search-replace oldurl.com newurl.com
You obviously need to use wp search-replace carefully, as you could mess up a lot of posts if you do it wrong. So obviously keep a backup around.

WordPress Access

I'm working on a website with a friend using Wordpress and we are trying to access the same WordPress account from both mine and his computer, so that we can work on the website together. We have tried to add each other as admins but can only access the new account from the computer the admin has been created on. Does anyone know how to do this?
By the way wordpress is run on wampserver
WAMP server is for local development (like XAMP, LAMPP and MAMP). When you install WAMP and install Wordpress inside it, it can be only accessed from that computer. You can create multiple admin accounts on single Wordpress installation. (Do not use single admin account for both of you.)
However in this case, you can't access the local Wordpress installation with multiple computers. to do that you may have need to buy a domain and a hosting from a hosting provider. Then you can create two admin accounts and start developing.
Or, as JJJ suggested you can convert WAMP+Wordpress installed computer to a server, but its hard and I do not think it'll be a good idea for this.
WAMP is local. You can move the WordPress install onto a shared hosting relatively painlessly and cheaply then can collaboratively work on it.

How to create a wordpress database file with existing files in my site directory?

I have a live wordpress website, due to some problem my database table become empty. Now I have only files and folders of my website. So please guide me how to create a clone of my website in my wamp server localhost with existing file/folders in root directory without database file?
This plugin is an excellent tool to migrate from live to local and vice versa All in one wp migrator copies all files and database. But in your case not sure if it will help .
To copy the files locally all you need is filezilla and the ftp credentials which may be the same as cpanel credentials. Then copy all files to local folder for website of your wamp. Php myadmin on your live site dump the sql and import into your local wamp php .
Can you check if you have a back up via the cpanel under softaculous installer you may be able to restore a back up of the site.
If your database is empty and there is no backup then all the contents of your website (except for photos) are lost.
Your hosting company may have made automatic backups and you ought to contact them right away.
You can make a MAMP clone using your current files and images, but none of your old content will appear and your images will not appear in the Media Manager. The images will need to be re-imported.
To make a local MAMP site with your existing files, first create a new blank Wordpress installation using the following instructions:
https://codex.wordpress.org/Installing_WordPress_Locally_on_Your_Mac_With_MAMP
A new contentless Wordpress database will be created in this process.
Then remove all the Wordpress files except wp-config.php and copy all your old live site's files into the folder. When you reload Wordpress it will be running off the live site's code and plugins.

How to use Wordpress with localhost and a preexisting database on another server

I've been working on a Wordpress website on my web hosting server. But I wanted to start doing the Wordpress changes locally, while still using the database with all the posts and stuff that's already on the server.
I installed Wordpress on my computer, and had it connect successfully to that database, but going to localhost/website/wp-admin would redirect me to www.site.com/website/wp-admin, and then proceed to do everything on the server again, which I didn't want, and localhost/website would just appear blank.
I tried having Wordpress use a new test_database on the server, and it was happy with that. Wordpress started to run locally, localhost/website wasn't black, while using a database on the server. Even when I wiped out my local Wordpress and reinstalled it connecting to test_database, all the posts remained intact, and Wordpress was still running locally.
How come I was unable to get Wordpress running locally when I tried to connect to the first database?
You're trying to use the same WordPress database instance on two different URLs. You Can't Do That™. Someplace in the options table is the database's URL. It's used to construct many links in WordPress. That's why you're jumping back to the production server.
You can use a plugin like Duplicator to make a copy of your production web site to use as a staging server, or vice versa.

WordPress - can´t login with the admin account after restoring MySQL DB

I've got a Wordpress blog hosted on Linode under Cherokee web server, but the performance has been problematic the last weeks and I'd like to give a chance to Nginx.
So I've made a DB backup of the current site, setup a LEMP platform, installed wordpress, and the "new" wordpress, with no articles (yet) on it works as expected.
But when I restore the mysql database from the current blog, the site shows a blank page. I've copied all the wp-content directory onto the new WordPress directory, and I've tried to disable all the plugins, but nothing changes.
In fact, there's an even more important problem: I can't login with my old admin/pass account, that should be inherited from the old database. In fact when I do a SELECT on the wp_users table, everything seems to be fine (equal to the old installation), but I can't login no matter what I do.
I've even tried to change the admin password with an UPDATE and the MD5 function under mysql, and although the table is updated, the pass does not work either.
So all I get is a restore I can't access
The issue causing the blank page is likely that your old install used a theme other than the default, and since you haven't copied wp-content over, it's looking for a theme that doesn't exist. I find that with importing an installs database, this happens rather than it just reverting to a default theme, as it does when you delete the current theme on an active install.
Something you may consider trying to get around the login problems is doing a WordPress export (Tools -> Export). This will work if you don't have much media attached to your current posts, as it will only copy post contents, and not attachments. Import that export to a fresh WP install on your new platform and both problems should be solved.
Could be a plugin problem; rename your plugin folder to "oldplugins" and see what happens.
Reupload fresh copies of all WO core files/folders, except for wp-config.php and wp-content
Could be a permissions problem; check http://codex.wordpress.org/Changing_File_Permissions
And: did you change DB table prefixes?
I had this problem but eventually successfully restored it by trial and error.
The steps that worked were something like this:
uninstalled wordpress
installed a version that was working before the upgrade
activated same plugins (same version) that were installed before
restored the database
here's where it gets fuzzy, but had login problems and content would show but no theme, and admin login redirected to root site
did this procedure for changing site URL:
http://codex.wordpress.org/Changing_The_Site_URL
don't know why that was necessary but after a few minutes, the links started working. And after having to request a new admin login by email several times throughout the process, I was able to admin login again.