how can i working on a site without localhost? - wordpress

Hello,
Our site design is complete and open to visitors. Now we want to fix our site bugs, or add new features. And we want to upload the new version of the site whenever we are sure of the changes. The problem is that we can't use localhost because we're two people working on this project and we're far from each other. what is your suggestion? Can copying the original site on a subdomain (which is closed on search engines) be the solution? Sorry if my English is weak :)

use GitHub or some "Team Code Engines" like Floobits...
You can use a FTP Server or some other File Transfer Protocol to share the Data but it's not "Live Coding" !

I think GitHub is the best option. In Github you can handle version easily can create branch based on requirements.
but for that i think you need to buy premium account on Git, So that Your code will be private it will not be public.

Related

Previewing Website Prior To DNS Propogation

I'm doing marketing for a client.
I'm helping them move their WordPress site from one host to another (from ventraip to siteground). Their domain is also currently with ventraip. I've already set up hosting with siteground (haven't cancelled ventraip just yet).
The question being, is there a way to make adjustments and preview the website on siteground before pointing the nameservers/changing DNS? I've seen a few tutorials but they are for other hosting companies and there is nothing I can see in siteground's knowledge base.
If anyone knows a general format or a better way, would love to hear your input. Thanks!
I think a nice solution would be to modify your local hosts file in order to preview your website using the current URL (which only on your machine will point to the new hsoting).
You can follow this guide by Kinsta, which works for every hosting: https://kinsta.com/knowledgebase/edit-hosts-file/
This is what I do and I am pretty sure it works :)
Here is also a tutorial specific to SiteGround which uses a temporary url: https://iamnickdavis.com/temporary-url-siteground-migration/ but I never tested it.
Hope it helps, cheers!

How to version control with WordPress

I want to set up a system where a developer can work on a separate server on a wordpress website.
My question is: If in the meantime changes are made to the live site (like plugin updates, new plugins, new posts, new comments, etc), how is one able to import a new feature (e.g. a new page) from the development server on the live site while making sure that previous changes on the live site don't get deleted?
I am looking to understand how this all works. In a sense, I would like to have some kind of version control system.
Thanks in advance :)
You can version control your own code using git. Basically we would init a new git repo and commit changes onto this repository. This can lie separately outside of the core files. i.e you only need to include the wp-content directory and ignore all the other core wordpress files.
Here is a good article on how to do a really good versioning system for a website.
http://toroid.org/git-website-howto
The posts and pages (basically content) in a wordpress site however lies in the database.Any changes made there will be permanent.
The only option is to keep taking regular backups of the content. You can do this by using an automated backup tool.
If you really want to version control your database, here is an article that helps:
https://blog.codinghorror.com/get-your-database-under-version-control/
This one is a tricky one. You cant host a single website on two servers. Just imagine a website having 2 hosted urls..!! No way.. You can never do that.
You better create a new user and give access to him. Look carefully in the settings and be a admin. You will have a chance to approve or reject what the second user changes.
Hope this helps.

Migrating Wordpress data from one website to another

Edit: Editing the original post to make my question simpler
My friend has a art website which is made in wordpress www..com. He hired a wordpress expert to redesign the website. The expert made the redesign at another location at www..com/ so both the websites are at different locations. I have to take the look of the redesigned site and the data of the mainwebsite, what approach should I take. The redsigned website should have all the plugins which are there in the mainwebsite. The redesigned website will replace the mainwebsite.
In short what approach should I take to migrate the new website design to actual website.
Any suggestions and inputs will be appreciated.
Update:
Thanks to everyone for taking time for answering the question, all of the answers are right in one way or the other, I would like to share this resource which I found extremely useful that I have bookmarked it for future reference, the author has explained all scenarios to migrate WordPress website. Hope you find it useful. The link to the website is http://www.smashingmagazine.com/2013/04/08/moving-wordpress-website/
I am no way related to this author or website, I am sharing this to help anyone who faces similar problem that I faced.
Export the MySQL database from the current site.
Restore the database backup on the new server.
Copy the entire website to your machine via FTP.
Edit wp-config.php to point to the new database. If
you are changing domains, then see the link below.
Copy the site files to the new hosting server via FTP.
http://codex.wordpress.org/Changing_The_Site_URL
go to tools->import
now select wordpress and install the plugin
now you can export all your posts/pages and use the same tool to import that data to your new site
I would suggest following steps
Create a dummy site (beta or temp)
Move current mainsite there
Download theme from the redesigned site
Install it on the dummy site
Make sure everything is working perfectly as you want with the data you want
Move it live
Hope this helps.

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.

Etherpad and Wordpress, possible?

I recently stumbled upon Etherpad, it's a collaborative writing tool
http://code.google.com/p/etherpad/ - main project page
online Examples:
http://piratepad.net/
http://ietherpad.com/
http://typewith.me/
I want to add this engine somehow to my wordpress and let people collaborate their posts,
I'm wondering if it has been done before and/or does it take more than
shared hosting (that is what I have) to do it [server capabilities or what-not] ?
In general, I think this is a complicated way to go about it. Also, Etherpad allows some very basic font formatting but no images and such things you might want to include in a blog. Instead I suggest looking for some Wordpress plugin for collaborative writing, and you might find something less "real-timey" but perhaps good enough.
Or if you really want to try with Etherpad:
Etherpad needs lots of memory (RAM) to run. A typical configuration is 1 GB, but it might be possible to get by on 128MB dedicated to Etherpad. This means you'll need at least 256MB in total for a first attempt. Your shared host also needs to have a Java server installed (typically Jetty) and some proxying server (typically nginx). All in all, you have some work ahead of you in just getting Etherpad up and running. After that, integrating into the Wordpress blog editor. If/how this can be done, I don't know. I'd probably do a client-side javascript-hack to get the Wordpress textarea or richtext editarea to update from the Etherpad readonly view, which is the only place where you can get the contents of a pad as more-or-less raw source text.
A simpler solution would be to just add an Etherpad page through an iFrame. See this post for example - http://www.knowledgepolicy.com/2010/02/embed-etherpad-into-blogpost-or-on-any.html
In theory it's possible to replace Wordpress' editor with an Etherpad Lite iFrame. Etherpad now allows image/font editing and table support as plugins.
Java is no longer required for Etherpad, NodeJS however is.
Here is a plugin that is in development that does what you want - however development seemed to stop in early 2012.
http://participad.org/ seems to be the best solution in this space to date. I haven't tested it on my own site, but they have an at least partially-working demo online.
Yes! It is possible. WordPress now has a plugin. The plugin has three modules which enables an Editor in dashboard and let you edit via front-end.
You can find more details on their FAQ page.

Resources