Duplicate Wordpress Site - wordpress

I am writing to see if anyone has any tips on how one might be able to duplicate a Wordpress site.
We have branded and designed a research study site, and would like to copy this site entirely and rebrand it for a different study.
Does anyone know what might need to go into this to do so? Having trouble figuring this out!
Best,
Taylor

I guess it depends on what you mean by "rebrand". To just duplicate the site should be a relatively easy job to do. You will have to download everything from you public_html and also get a backup of your database. Then upload the files from public_html to a new hosting and also import the database.
After that part now arise some more things. First of the domain name. You will need to change the domain name to reflect a new one you want to use -- i will not get into details about that since you can find lots of good tutorials on how to do that with simple googling. If you need to change any pictures/logos and anything else since you designed it you should know what to change.
Then if there are remaining parts that need to be changed, for example there are many cases in texts fields where the brand of the previous research site is mentioned then I can suggest using a tool like wp-cli which is the only tool currently that comes to my mind for such a cache. It is a really useful and powerful tool but it requires you to have access to ssh to the hosting.
If i come up with something else as well, I will update this.

Related

Where did utils.php come from, TinyMCE hack

Last Wednesday a variety of the WordPress sites I manage got hacked, they were infected with a Viagra link (malware is so original).
I noticed in the wp-includes directory a file called utils.php (wp-includes/js/tinymce/utils/utils.php), also an addition to my general-template.php for the get_footer function.
This hack seems to only affect Google search results for sites, not the site when directly viewed by entering the URL, i.e your cached site will show a malware infested mess and lose ranking, meanwhile you will wonder why due to the site looking fine when viewed.
My host (TSO Host) have cleaned up the sites, didn't even need to ask, but I have no idea how the infection got there in the first place.
So my question is, does anyone know how the breach happens and what I can do to prevent it, other than the usual security tips?
This happened to a site that I spent weeks cleaning up. I can give you a few pointers:
Go through the Wordpress core files (under wp-admin and wp-includes) and delete all files that you don't see in the default wordpress instillation. I've never seen a plugin create a file in one of those 2 directories. After this, it'd be a good idea to re-install Wordpress, just in case they changed any of the existing files.
After that, change your Wordpress/FTP/SSH passwords as they've likly been cracked. Install WP Better Security. It seems a little annoying at first, but you can monitor everything with it, change the login slug, remove version info hackers can use to find security holes, black-list known hackers, and so much more.
Finally, this last one will take some time. Google your theme and each one of your plugins, and see if Wordpress has stopped using them because they were a security vulnerability. You'd be surprised at how many plugins haves holes. Try to avoid really new plugins, and try to use the same plugin for as many different sites as you can. If you're hosting more than one site on the same server and one of the sites gets hacked, they're all hacked.
It sounds like a pain, and it is a little bit, but after you're done you'll feel so much better knowing that you're in control of everything. Trust me.

Setting up multiple small sites

I have no experience with Drupal.
I'm looking to use a cms but I have a requirement that, while it sounds simple, I'm not sure how easy, or possible, the implementation will be.
I have many small sites (let's say 100). Each site is basically setup the same way except the content and images are different. Each site would need an admin(s) that would manage content and have the ability to add new pages where needed.
Is Drupal the kind of cms that could handle requirements like this or is there another cms that is more suited for this kind of implementation?
Drupal is definitely suited to this, you should use the latest version (Drupal 7) and perform a multisite installation. That way you can keep the same core code base (which will make updating Drupal a cinch across 100 or so sites).
Have a look in the /sites/default/example.sites.php file for instructions on how to set it up, and if you get stuck post another question on here and I'm sure someone will be able to help.
EDIT
In fact there's a guide to the installation here.

Architecture ideas to allow customers to build their own site, based off external site's data?

I'm not entirely sure how to properly ask this, so please bear with me.
I have an idea for a site I would like to build, which would basically be a site for members to create some data and have it housed in my database. I would like to offer a value-add to the site which would allow people to spin off their own website via my own "website builder" tool (probably some sort of CMS). Their website would be able to communicate with my master database to display their data.
Getting down to the crux of the topic, I'm looking for architectural advice/ideas/etc. regarding what services I could use to do this. I'm not looking a 100% automated solution, but something along these lines (which may not be completely correct, I admit):
Customer puts in an order to create their own site, using my tools.
I setup a separate domain for them, roll out the CMS foundation to the site, and the customer has full editing control of the CMS to design it however they would like.
The CMS would have some customizations so that it includes functionality to call APIs located on the master site, which would return the relevant data.
In the research I have done on SO, I've seen a lot of mentions of Umbraco which honestly looks like a good start. I'm just worried that when I go to upgrade a version, I have to deal with overwriting my custom API functionality. I'm guessing this is the nature of the beast, and requires me to accept/plan for it.
Does anyone have any thoughts about this? Some high-level starting points? Thanks!
I've been thinking about this same issue for my customers.
It is not hard to automatically roll out a stock cms such as Wordpress or Joomla. This sort of thing is done all the time by "1 click installers" that DreamHost and others have.
Including custom widgets or plugins for the CMS that can connect to your main app is also not hard.
For dns, you can use Amazon Route 53 or other DNS services that include a good api at the dns management level.
I suggest that you focus on using a CMS that is very popular (eg Wordpress or Joomla) rather than something less well known such as Umbraco. Using a more popular system will drastically reduce your training costs--remember that if you supply the CMS to your customers, then they'll also expect you to supply the support for it...

Managing Multiple Wordpress Sites

Not sure if this is the right place to ask, sorry if its not. I build a lot of Wordpress sites. My problem is, the number of them is getting big and harder to update them all when new releases come out.
I have written an app that will download the latest Wordpress release, and manually ftp the new files to all the clients, but this takes forever... need a new way.
I wanted to restructure this while I can or start a new process at least. Whats the best way to manage multiple Wordpress sites and keep them all updated? Some people have said 1 DB and modded config, others I have seen said to keep all installs separate and use plugins to automatically upgrade, but I don't know whats best to do. Ideas? Thanks :)
If these were all sites you managed on your own server, I'd recommend using a Multisite installation rather than separate instances of WordPress. This way you only have one set of themes, one set of plug-ins, and one copy of WordPress to maintain.
If these sites are on different servers (i.e. you're maintaining sites for clients remotely), I'd recommend you look in to a beta account with WP Remote. This is a service specifically built to allow you to remotely monitor and update multiple WordPress installations. It might be the best solution for you because it allows you to use the one-click update rather than manually downloading/FTP-ing the new files.
You can use this free self hosted app http://infinitewp.com
No limitation in number of sites being managed. You can update WP/plugin/themes, do backups, one click login to your WordPress admin panel.
EAMann is right, especially with the new Multi Site features in Wordpress 3.0, there is no better way to manage multiple sites under one umbrella. Being a developer myself, I know the pain of having to login to all those different accounts!
The way to set it up is create a "master domain name" that you will log into. Place this in your WP Config:
define('WP_ALLOW_MULTISITE', true);
Then login to your admin panel, navigate to TOOLS>Network.
After you've set everything up, copy/paste what it tells you to your HTAccess and WP Config file.
The next step, especially if you are putting clients on this network, is they will want their own domain name, not AIBot.com/theirname right? Thats where Domain Mapping comes in:
http://ottopress.com/2010/wordpress-3-0-multisite-domain-mapping-tutorial/
Check that out and good luck!
What you need is www.managewp.com it can do all of that for you plus a ton of other excellent features.

new wordpress design over an existing complicated one?

Hey folks, I got a project from a firm program out a Wordpress design. 80% into it I learn that the client already have an existing one, a robust one, with subsrciptions, blogs, forums, newsletter mailers and so on. Turns out there is a discrepancy bettweent design and old wp structure which I will work on resolving.
I have been developing in on my own server for the time being.
At this point I am not clear on what the strategy should be.
1.) Export out the current wp site out to a different server, duplicate it and then reskin/rework the frame work.
2.) The firms hope was that I would be able to go in and add a new theme, but am not convinced that doing this live will be a good idea since I am using a different theme so all the hooks will be different then the current one.
3.) There is already a large amount of users etc that have signed up to the existing newletter, forum etc. Not sure how to carry this forward?
Any insights are greatly appreciated.
Definitely make a copy of the existing environment. Check it into a version control system (if it's not already the case) and work on that.
Try to put all your work into a new theme: That will make installing the changes on the production server super-easy.
Be careful about any notifications and pings that your development copy may send to the outside world. Be especially careful about the newsletter.

Resources