Wordpress - Clone plugins (with settings) to new WP install - wordpress

Is there a way to clone a Wordpress website but keep all the plugin settings etc for a completely new website?
I've turned Wordpress into a cms with the help of some plugins and some of my own tweaks. I want to roll this out as the cms I use for every website I create so therefore don't want to have to install all the plugins each time and adjust their settings.
I don't want to copy the content of the site just the plugins.
It's not as simple as ftp'ing all the files down then up to some new hosting space.
How can I go about cloning the website?
Would wordpress multisite work for this? I know it does sub domains etc but can I use multisite over several different domains?

A backup of the database, and a copy of the files in the wordpress directories. On the new site, you would need to have changed the URL in the config database, which if you backup the database you could change in the text file you backed up to, before uploading to the new site.
Also http://codex.wordpress.org/Changing_The_Site_URL suggests you could set a setting and any chances will be auto reflected when you load it somewhere else.

Have you checked if the copy wasn't corrupted?
Please check if the /home/biologic/public_html/wp-includes/load.php file is there.
Or maybe the ABSPATH above is wrong... if it is, then check if you have this on your wp-config.php file:
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
if it is there, replace dirname(__FILE__) . '/' with the actual absolute path, hardcoding it.

I've figured out the process:
Ftp down the files from your existing site.
Change the wp_config to the new details of the database.
Ftp up the files to the new site.
Download the database of the old site.
Import into the database of the new site. Change the wp_options siteurl to the new site address.
Login to the admin and change the site address to the new domain.
Update the permalinks.
The site is cloned successfully.

Related

Moving wordpress installation to localhost

I moved my live Wordpress site from my hosting provider to localhost but when I go to load the website it takes me to the wordpress installation page. When I try to go to wordpress install I am hit with an 403 Forbidden message.
I moved wordpress by downloading the FTP files.
I am running XAMPP on windows. I have edited the wp_options database table and changed references from the live site to localhost. I have also updated wp_config.php.
very easy to move wordpress from one server to another
Install clean wordpress on your new destination (make sure to set-up the databse also)
Copy the wp-content folder from your source, and replace the wp-content folder of your destination
Export the database of your source, drop all the tables in your destination, and import that database from your source to your destination.
update site_url and home_url inside wp_options table in your destination
DONE!
in case you want to update all URLs from your source to the URLs of your destination.
You can simply edit the sql file before importing to your destination database using something like notepad++ and find replace
e.g.
find yoursource.com
replace all with yourdestination.com
or you can use update url plugin,
The easiest way is to install the "Duplicator" plugin in your working Wordpress installation. From within that you can easily create a ZIP package and an installer file, copy that to any other server (including localhost) and install your Worpress site there after you filled in the settings of your local database.
Hi You need to change wp_options table in your database, In wp_options siteurl and home option value to your localhost url.
also check wp_config.php file if it contain your live url. After changing those url run your site on localhost, it will fix your problem, if still you get 403 error then check file permission.
You have to migrate your database from your local server to Live server.
Can also Edit wp-config.php File.
define( 'WP_HOME', 'http://yourWebsitleURL.com' );
define( 'WP_SITEURL', 'http://yourWebsitleURL.com' );
You can do one more thing, Update your website URL in wp_options Table.
The last thing we need to do is verify the changes. Open the wp_options table and check the option_value of siteurl and home. You should see your new URL.
Also can take backup using WP-All in One
Install wp-AllInOne
Create Backup and download it
Install a clear Wordpress on your cpanel web url (make sure your php and Wordpress versions are same)
install wp-AllInOne Plugin on your clear new wordpress
Import your Backup
your Website will be ready no need to do any king of configuration.
Easy way to migrate WordPress hosting to localhost.
You can install the "All-in-One WP Migration" plugin on your website and export the data then you can install WordPress on your localhost and also install the "All-in-One WP Migration" plugin then import the export file.
Please take backup of the live Wordpress website using duplicator plugin https://wordpress.org/plugins/duplicator/
After backup you can download installer.php & .zip file
Then new Wordpress installation in localhost after new installation is done then simply go to localhost wp-config.php file and copy hostname, database name, username name, password and save in safe place then put the duplicator plugin backup file on that localhost wordpess installation directory and remove the localhost new wordpress installation files not duplicator plugin backup files
open localhost/directoryname/installer.php further implemention of the backup please check the plugin guidence https://wordpress.org/plugins/duplicator/
You have two main options:
Use a duplicator plugin, and install it on both servers. Then export the data and reupload it. https://wordpress.org/plugins/duplicator/
If not, make a copy of your WordPress directory, and database for WordPress. Then reupload them both to localhost.
Hope it helps!
Check $table_prefix value in your wp-config.php file. You are seeing installing page most likely because of this.
Let's say your production has a table prefix of $table_prefix = 'asdf_'; and your local has $table_prefix = 'wp_'; Then you will see the WordPress installation page even if you did the rest correctly.

wordpress database not showing in PhpMyAdmin

I am new to wordpress and have bought udesign theme from themeforest. from my Plesk I have installed WP and then from the dashboard of WP tried to upload the theme, but failed. hence went directly to dedicated server and hosted on the root folder.
Theme started reflecting on the dashboard and I have started customization. Once site completes I need to move the site to production server. When I check PhpMyAdmin from the plesk, it shows there is no DB table. how do I copy/move the site without DB?
Can i manage site without PhpMyAdmin? like copying the entire assets to new server and it starts working automatically?
Please help me to find DB or Let me know how to work with the themes to make sure everything in right place.
Many Thanks,
Gururaj
If you’ve ever had the need to find the name of your WordPress database, then there’s an easy way to do that – simply look for it in your wp-config.php file located in the root folder of your WordPress install.
Accessing Your WP-Config.php File
If you are doing something where you need the name of your database, then I’m assuming you have access to your server.
Simply go to the main folder of your WordPress install and locate the file called wp-config.php.
Edit file and find name in:
define('db_name','your database here');

How to upload wordpress theme to sub domain

In my localhost(xampp) wordpress themes are installed. I activate one of them And create user name and password for the wp-admin.
And I backup database and wordpress site and upload it to subdomain(live site). After upload all content will load without CSS style-sheet. And wp-admin also not working. And url as same baseurl twice.
Question is How to upload my wordpress site to my subdomian. Clear me out. Am i missing some thing??
This is pretty much what you are looking for: Moving WordPress
It´s a quite detailed manual how to move WordPress Sites/Blogs from one server to another and moving from localhost to a live server is not much different.
If you are trying to move a complete Wordpress site from one server to another I would recommend using the plugin Duplictor.
https://wordpress.org/plugins/duplicator/
Really easy to use and does the job excellent!
I do blogging a bit. I found this video tutorial, I have used this one to successfully set up a new subdomain and install Wordpress sometimes ago.
STEPS::
Use cpanel to create the subdomain
Download the latest version of wordpress to your local drive
Upload to subdomain folder on your host
Extract the files, and move them into the subdomain folder
Use cpanel DB Wizard to create a new data base
Make a note of the username, db name and db password
Copy wp-config-sample.php to wp-config.php in the subdomain folder
Edit wp-config.php to add the username, db name and db password
Open the URL "your-subdomain.your-domain.com/wp-admin/install.php"
Fill out the fields on the form and press "install wordpress"
After creating the a subdomain, use WP clone to create and install a backup of my live site into the new subdomain. The clone site allows you to verify updates before deploying them to your public site.
Hopefully the issue has resolved already, but maybe this will be of use to others.
Thanks.
If you are trying to move a complete Wordpress site and is without plugin,
copy all the wordpress files in the htdocs/project-name to the
subdomain folder.
Then export the db from phpmyadmin,open it in an editor
Change all the url of the format 'http://localhost/your-project-name'
to the subdomain link(http://eg.example.com).
Save it and import the sql file to the subdomain's db
Change the database,username,password in wp-config of the subdomain
with subdomain's db details.
http://codex.wordpress.org/Installing_WordPress#In_a_Subdirectory
Wordpress codex gives you the steps for doing this.

How to install WordPress in subdomain?

At the moment I have a WordPress installation in a subfolder of my current site (example.com/wordpress). How do I make it so that wordpress is accessible from a subdomain?
I.e. I would like wordpress to be accessible from this address: wordpress.example.com, and that all the links, posts and pages will still work flawlessly, e.g. wordpress.example.com/my-wp-post/
If it makes a difference which host one is with, I am asking specifically about 1&1.
Thank you
I am not a big fan of video tutorials, but I used this one to successfully set up a new subdomain and install wordpress.
Here is an overview of the process
Use cpanel to create the subdomain
Download the latest version of wordpress to your local drive
Upload to subdomain folder on your host
Extract the files, and move them into the subdomain folder
Use cpanel SQL Wizard to create a new data base
Make a note of the username, db name and db password
Copy wp-config-sample.php to wp-config.php in the subdomain folder
Edit wp-config.php to add the username, db name and db password
Open the URL "your-subdomain.your-domain.com/wp-admin/install.php"
Fill out the fields on the form and press "install wordpress"
After creating the a subdomain I use WP clone to create and install a backup of my live site into the new subdomain. The clone site allows me to verify updates before deploying them my public site.
Hopefully the OP has resolved this issue, but maybe this will be of use to others.
I think you have 2 options.
1) Manually:
Copy your wordpress install from the subfolder of your main domain to the subdomain's folder. Using a database editing tool (of your choice) go into the wp_options table and change the option_value of the option_name 'siteurl' and 'home'.
You might have a few other options that will need editing, but they are more often than not plugin specific.
2) A little better:
Create a new wordpress install in your subdomain. Copy your plugins, themes and uploads into it. Then, install the plugin wp-migrate-db-pro from https://deliciousbrains.com/wp-migrate-db-pro/ Use this plugin to copy the database from the subfolder install to the subdomain install. This plugin will globally search and replace the URLs and Folders for you.
I've been using this plugin for a while...and it saves me hours and hours of work.
Purchase your unique URL or subdomain or wherever you want the wordpress to live from your host provider.
wordpress.example.com
coolurl.cooltimes.com
upload Wordpress to that root. /
Or define a custom folder for it;
wordpress.example.com/partywp/
NOTE: If your looking for the free (no hosting required - though less custom website friendly) wordpress with similar URL, please use wordpress.com version and you don't need to do anything.
http://wordpress.com/ is different from http://wordpress.org/
Wordpress.com is like google blogger and you simply create an account and they give you a URL - and free blogging area with small templates. You can transfer your free wordpress.com to custom wordpress.org -- if you would like to use wordpress hosting naming convention, consult wordpress.
Added:
If you are changing the location from your original install; to a different path or location. You should then uninstall the Wordpress that is elsewhere or previous, and reinstall at where you want it to currently live to avoid any wholes or errors, etc.
So, if now it must be at: wordpress.example.com -- work with your host provider (hopefully not godaddy) locate the root to this domain, and reinstall with a fresh latest version and you should be OK. If you have further DNS issues, please try to describe your question more clearly.

Wordpress pages won't load after hosting transfer

I've just transfered a wordpress website to another domain.
For the transfer I've made the following steps:
Copied db and changed domainnames (http://olddomain.com to http://newdomain.com)
Imported db on new host (via phpMyadmin)
Changed wp-config to match new db settings
uploaded all wp files
So the homepage works, but I can't visit the other pages. However, they are showing up in my admin page.
The way I've done this in the past and have worked for me:
1- Export db from phpMyAdmin, then replace in the .sql file all references to old domain.
2- Imported db on new host (via phpMyadmin)
3- Changed wp-config to match new db settings
4- Uploaded all wp files
5- Regenerate .htaccess file, if you are using permalinks.
(you can do this the way #Riboflavin suggests)
Also, here you can find some additional information that could help:
http://codex.wordpress.org/Changing_The_Site_URL
If you are using permalinks you will need to regenrate them after the transfer. Go to Settings → Permalinks in your admin panel and choose the permalink option you would like to use and click Save Changes. This will regenerate the permalink portion of your .htaccess file for your new domain.
Are the links to those other pages still pointing to the old domain?
If so, you could try the Velvet Blues Update URLs plugin to update all the links in your site.
I've used this successfully in the past, but recommend that you back up your data fully before trying it yourself.
The fastest transfer from my experience is through cpanel using fantastico or something that installs wordpress quickly. The process is as following:
Install wordpress on new hosting through fantastico or similar app
Delete everything in installed directory except for wp-config
Copy everything from old wordpress data, except for wp-config
Paste/transfer all that data to the new host
Now export old database and delete tables on the new one then import from old db
Change site URL within database to new one
Using fantastico helps in setting up databases quickly and wp-config. No need to do it manually and waste time. Just make sure to leave the installed one and not transfer the old one.
The whole process takes me like 2-3 minutes, I think its the fastest once you get it.
You need just to adjust your new .htaccess by regenerating it
go to WordPress dashboard
Settings > permalinks
then save modifications
if it's work then well done else you need to manually change it :
you will find the .htaccess content after saving modification in permalinks page copy the contents and create the .htaccess file in the root directory

Resources