Top Banner
Blogosphere (http://lifeinthegrid.com/category/business/blogosphere/), Tools (http://lifeinthegrid.com /category/tech/tools/), Training (http://lifeinthegrid.com/category/tech/training/) Do you do your design/testing/development on your production website? Have you ever installed or updated something that crashes a section or the entire site? Ever tried to format or fix your site layout while everyone visiting watches you? If you have spent any amount of time in WordPress you can easily identify with these issues. These issues can easily be avoided by doing development on your own computer. This article will run you through how to get WordPress working on your computer and leave your production site stable, clean and user friendly. Test all your plugins, updates, layout and design ideas on your local computer instead of letting the world watch you. Develop Like a Pro What is XAMPP Installing XAMPP Step by Step Video Instructions New WordPress Install How to Sync your Systems The Duplicator Plugin Quick Overview Administer like a Pro Read Time: 8-10 minutes | Exercises: 15-30 minutes Most people set up their WordPress sites with hosting providers like BlueHost, HostGator, GoDaddy and the big named hosting providers. This is definitely where you want to start and the most affordable solution for getting your site visible to the world. The problem is that most people just stop here. They do all their testing/design/configuration and prototyping directly on their production site and rely on it as a one-stop shop for getting everything done. Now given you have a low traffic site where you are really not trying to commercialize it or take it to the 137 (http://lifeinth /do-you- localhost- your-wordpre /#comments) Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/ 1 of 50 06/26/15 10:04 AM
50

LocalhostYourWordPress.pdf - NA Colorado Region

Mar 11, 2023

Download

Documents

Khang Minh
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: LocalhostYourWordPress.pdf - NA Colorado Region

Blogosphere (http://lifeinthegrid.com/category/business/blogosphere/), Tools (http://lifeinthegrid.com

/category/tech/tools/), Training (http://lifeinthegrid.com/category/tech/training/)

Do you do your design/testing/development on your production

website? Have you ever installed or updated something that crashes a

section or the entire site? Ever tried to format or fix your site layout

while everyone visiting watches you?

If you have spent any amount of time in WordPress you can easily

identify with these issues. These issues can easily be avoided by doing

development on your own computer. This article will run you through

how to get WordPress working on your computer and leave your

production site stable, clean and user friendly. Test all your plugins,

updates, layout and design ideas on your local computer instead of

letting the world watch you.

Develop Like a Pro

What is XAMPP

Installing XAMPP

Step by Step Video Instructions

New WordPress Install

How to Sync your Systems

The Duplicator Plugin Quick Overview

Administer like a Pro

Read Time: 8-10 minutes | Exercises: 15-30 minutes

Most people set up their WordPress sites with hosting providers like BlueHost, HostGator, GoDaddy and

the big named hosting providers. This is definitely where you want to start and the most affordable

solution for getting your site visible to the world. The problem is that most people just stop here. They

do all their testing/design/configuration and prototyping directly on their production site and rely on it

as a one-stop shop for getting everything done.

Now given you have a low traffic site where you are really not trying to commercialize it or take it to the

137

(http://lifeinthegrid.com

/do-you-

localhost-

your-wordpress

/#comments)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

1 of 50 06/26/15 10:04 AM

Page 2: LocalhostYourWordPress.pdf - NA Colorado Region

next level, then the practice of doing everything on a single production server is probably okay.

However if you establish good habits now, you will carry them forward to sites that really matter and

are no longer just hobby sites.

When you begin to build up a decent list of subscribers where people are checking your site regularly

and your name and brand is also associated with the reliability of your website, then you should

approach every update to your site and database with much more caution and develop like the pros do.

Professional developers work in separate environments. They have two identical blogs on two separate

computers. The first is a development environment and the second is a production environment which

is usually their hosting provider. The development and production blogs are usually identical to each

other except for one huge difference. The development server is only seen by the developer and

internal to his/her company and the production server is what the rest of the world sees (usually your

hosted server).

This is how the pros work and in this article you will learn how to set this environment up for yourself

so you can take advantage of all the benefits a development/production environment offers you.

To have the same functionality that your hosting provider gives you when you set up your production

website, you will need the same tools they use to make this happen. Those tools consist of a Web

server, database engine, and a scripting language capable of performing complex application requests.

Most hosting providers run on Linux operating systems and you will either have a PC or Mac. This

scenario is fine, just make sure you’re using close to the same PHP version in both environments. You

can easily find this out by pasting the code below into a file named phpinfo.php and then browsing to

it, be sure remove to it from your production server when you’re done.

There are also WordPress plugins that will output this same info. Just do a search for phpinfo in the

plugins directory.

I don’t always test my code, but when I do I do it in production.

Unemployable Developer…

Benefits of multiple environments:

Design/prototype without affecting your production site

Detect plugin conflicts before they happen

Avoid unnecessary bandwidth costs

Test major upgrades for system stability

Debug customer errors in a controlled environment

Test new themes widgets and much much more…

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

2 of 50 06/26/15 10:04 AM

Page 3: LocalhostYourWordPress.pdf - NA Colorado Region

The three big tools that hosting companies use include: Apache, MySQL, and PHP. The beauty of XAMPP

is that it bundles all these applications and a few others into an easy to use control panel that allows

you to run great applications like WordPress, Joomla, Drupal, and tons of other great open source and

commercial products on your own machine.

Setting up and installing XAMPP is a simple and easy process. You can have your own WordPress up on

your computer in under 15 min! Just follow these simple steps.

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

3 of 50 06/26/15 10:04 AM

Page 4: LocalhostYourWordPress.pdf - NA Colorado Region

1. DOWNLOAD XAMPP

XAMPP for Windows (http://www.apachefriends.org/en/xampp-windows.html)

XAMPP for Linux (http://www.apachefriends.org/en/xampp-linux.html)

XAMPP for Mac OS X (http://www.apachefriends.org/en/xampp-macosx.html)

2. INSTALL XAMPP

Windows Specific Instructions:

Disable UAC: During the install, you may get a message indicating that you need to turn off

“User Account Control.” This can easily be done by clicking your start button. Type “uac” in the

search dialog and choose “Change user account control settings” then set the slider to the very

bottom.

Install Path:

Good: C:\xampp or D:\xampp

Bad: C:\Program Files\xampp (xampp does not play well with spaces)

Services: These sections don’t need to be checked.

Firewall: Click “Allow Access” on all dialogs

After Install browse to: http://localhost/

You now have an environment capable of serving up WordPress sites locally.

3. FIND CONTROL PANEL

After XAMPP is installed you will need to control XAMPP from it’s control panel. To always have XAMPP

showing in your system you need to enable your notifications by clicking customize from the system

tray pop-out menu. Then enable XAMPP to show notifications.

You can also get to the XAMPP control panel by typing XAMPP from the start menu. The Mac will have

similar and probably easier options so look for them after install. As far as the control panel for both

operating systems, it is the same.

Start MySQL and Apache (see panel above)

Browse to Database Editor:

http://localhost/phpmyadmin/ (http://localhost/phpmyadmin/)

Create a database: “mypress1 or whatever name you want

Create database user: Privileges -> Add a new User

You always want to make sure that Apache and MySQL are running before you can browse to

your WordPress site. PHP is built into Apache so you don’t have to worry about starting

anything for it.

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

4 of 50 06/26/15 10:04 AM

Page 5: LocalhostYourWordPress.pdf - NA Colorado Region

UserName: “superadmin”

Host: “localhost”

Password: “whateveryouwant”

Privileges: Check All

Run WordPress Installer:

Download WordPress and extract to: C:\xampp\htdocs\mypress1\ your path should be similar

Browse to: http://localhost/mypress1/ (http://localhost/mypress1/)

Enter database info from above.

Finish Installer…

Your Done!

So you might be asking, “I have a production site and I just ran through installing XAMPP. How do I get

the production site onto my local box?” Good thing you asked, I have a handy little plug-in that I wrote

that will help you perform this task. Just watch the video below and then download and install the

duplicator plug-in (http://lifeinthegrid.com/duplicator) and you’ll be ready to start developing like a

pro.

If you’re like most WordPress administrator’s you simply update plug-ins and the core of word press on

your production site without realizing that these updates are editing core files and core database

tables. This is going to work for you 99% of the time but it’s that 1% that could bring your site down

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

5 of 50 06/26/15 10:04 AM

Page 6: LocalhostYourWordPress.pdf - NA Colorado Region

and possibly cause outages for hours. Sometimes I experience people who have had their website down

for days by simply installing a plug-in.

Individuals who administrate there WordPress sites like professionals have the two-tiered system I

mentioned above in the section “Develop like a pro.” The systems don’t have to be 100% in sync;

however, they should be somewhat close. So, before you do any upgrades or play with a new plugin

simply install it on your development site to make sure everything looks good and you have it

configured just how you want and then perform the same action on your production site.

localhost (http://lifeinthegrid.com/tag/localhost/), wordpress (http://lifeinthegrid.com

/tag/wordpress/), xampp (http://lifeinthegrid.com/tag/xampp/)

Do you Locahost your WordPress?

Zadli (http://student-site.umm.ac.id)June 11, 2015 at 7:40 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-75810)

Wow, this is a great post! Thanks a lot for the information.

Reply (/do-you-localhost-your-wordpress/?replytocom=75810#respond)

MaxApril 29, 2015 at 12:02 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-74657)

This is truly a great plugin, really appreciate your work.

I was wondering if you’ve ever considered implementing syncing functions in the plugin for

quick syncing of databases? it would be a great addition to your already great plugin.

Reply (/do-you-localhost-your-wordpress/?replytocom=74657#respond)

Cory LamleApril 30, 2015 at 5:43 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-74673)

Hey Max,

We may do something like that in Pro but its quite a ways out… In the meantime you

could try Migrate DB Pro. There is a link to it from the Perks page.

http://lifeinthegrid.com/tools/perks/ (http://lifeinthegrid.com/tools/perks/)

Reply (/do-you-localhost-your-wordpress/?replytocom=74673#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

6 of 50 06/26/15 10:04 AM

Page 7: LocalhostYourWordPress.pdf - NA Colorado Region

Cheers~

AngeloApril 22, 2015 at 2:06 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-74566)

Hi there,

Thank you for the fantastic post. Very helpful!

Cheers, Angelo

Reply (/do-you-localhost-your-wordpress/?replytocom=74566#respond)

Mitch Rosefelt (http://themilkmob.org)April 13, 2015 at 4:22 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-74394)

Wow, thanks for this.

I will have to do it a few times to get the hang of it.

Question:

How do I delete a site created using this technique?

Also, I would point out that I ran into an error with mailtodisk during the WP install. Found

instructions to fix it here (modify php.ini):

http://www.evan-herman.com/enable-emails-localhost-installation-wordpress-using-

xampp/#.VSw9jWjkd8E (http://www.evan-herman.com/enable-emails-localhost-installation-

wordpress-using-xampp/#.VSw9jWjkd8E)

Reply (/do-you-localhost-your-wordpress/?replytocom=74394#respond)

Cory LamleApril 17, 2015 at 8:53 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-74469)

Hey Mitch,

To delete a site you simply just remove the root wp folder and the database and it should

be history…

Reply (/do-you-localhost-your-wordpress/?replytocom=74469#respond)

Mitch Rosefelt (http://themilkmob.org)April 22, 2015 at 5:34 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-74568)

Hi Cory:

The site that I’m duplicating has ssl setup. The local copy seems to be working correctly

but in the address bar, I get”https://localhost…” with a red slash through the “https”.

I’m not able to find the source of this. In the general settings the url is

“http://localhost…” Do you know a fix for this?

Thanks. Reply (/do-you-localhost-your-wordpress/?replytocom=74568#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

7 of 50 06/26/15 10:04 AM

Page 8: LocalhostYourWordPress.pdf - NA Colorado Region

Cory LamleApril 23, 2015 at 6:55 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-74583)

Hey Mitch,

On your local computer it shouldn’t be a big deal you can ignore it, however if it

bothers you then you can create a self-singed cert and it will go away.

http://en.wikipedia.org/wiki/Self-signed_certificate (http://en.wikipedia.org

/wiki/Self-signed_certificate)

Cheers~

Reply (/do-you-localhost-your-wordpress/?replytocom=74583#respond)

Jim (http://guardsix6.com)April 5, 2015 at 12:00 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-74262)

I was trying to follow a lot of this but I’m on a Mac using Yosemite 10.10.2 and none of the

Windows stuff makes sense. I got as far as downloading XAMPP and I believe I created a

database and set myself up as an admin user.

The version of XAMPP I have shows files and subdirectories nothing like what you show in your

videos.

Then I tried to a WordPress installer program or app. All I could find were Windows .exe files

which don’t exactly work on my Mac. I’m stuck.

I have a simple web site, guardsix6.com and sure would like to host it locally but either I’m

just not getting this or you videos and instructions are out of date. Very frustrating.

Reply (/do-you-localhost-your-wordpress/?replytocom=74262#respond)

Sun-ShineyApril 5, 2015 at 6:21 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-74268)

Suggestion to make your life easier? Go get DesktopServer and install. It’ll handle

everything — and i do mean everything — you are trying to do manually. When you’re

done with your WP site, two clicks and it will not only upload to your production (live)

server but also change all of your urls so they match the live domain (e.g. you.dev

becomes you.com>

When you go to build your next site, you open DServer and click to create a new one.

Easy Peasy. Saves on wine charges.Reply (/do-you-localhost-your-wordpress/?replytocom=74268#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

8 of 50 06/26/15 10:04 AM

Page 9: LocalhostYourWordPress.pdf - NA Colorado Region

Jim (http://guardsix6.com)April 5, 2015 at 7:33 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-74269)

I finally got unstuck and have WordPress installed locally. Now when I go to WordPress

and try to install the duplicator plug-in, I don’t see anything having to do with plug-ins. I

thought there used to be a plug-in menu choice but it’s not there any more.

How do I get your plug-in installed?

Reply (/do-you-localhost-your-wordpress/?replytocom=74269#respond)

Jim (http://guardsix6.com)April 22, 2015 at 6:38 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-74570)

I’m setup with a WordPress web site on DreamHost. I have FTP capability into the web site

files. I move the package and installer into a “duplicator” directory but when I try to back

and run the installer, it does nothing.

What am I doing wrong?

Thanks,

Jim C.

[email protected] (mailto:[email protected])

Reply (/do-you-localhost-your-wordpress/?replytocom=74570#respond)

Cory LamleApril 23, 2015 at 6:57 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-74584)

Hey Jim,

Go ahead and submit a support ticket here:

lifeinthegrid.com/support

and I’ll get to it as soon as I can…

Cheers~

Reply (/do-you-localhost-your-wordpress/?replytocom=74584#respond)

ask (http://www.ask.co.uk/)March 12, 2015 at 6:38 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-73836)

Hi there, You’ve done a fantastic job. I will certainly digg

it and personally recommend to my friends. I’m confident they’ll be benefited from this

website. Reply (/do-you-localhost-your-wordpress/?replytocom=73836#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

9 of 50 06/26/15 10:04 AM

Page 10: LocalhostYourWordPress.pdf - NA Colorado Region

web hoster (http://webhost.pro)January 2, 2015 at 6:49 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-72627)

Yes, every time I have remote hosted any MYSQL is has not been reliable.

Always localhost!

Reply (/do-you-localhost-your-wordpress/?replytocom=72627#respond)

Salma NaqviNovember 16, 2014 at 12:19 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-71513)

Cory Hi,

I am newly swtiched WPress Developer and designer. I was creating websites using Adobe

Creative suite in Usaula manner like, HTML and CSS.

I have recently created my portfolio site. I have Bitnami installed and did completed my site

using WP on Bitnami. I hosted the site on Hostgaor and had to install WP from Hostgator.

I did first export my WP site form the local host BITNAMI WP which I got XML file that

wordpress xtrected file which I imported to the Hostgator WP.

I also imported themes to the Hostagator WP as well.

But the site is not showing up.

What do you think what happened? Is there any problem with the data wp-config.php file or

something else?

Can you suggest me how I have to use the Duplicator plug in here in this scnario?

Thanks,

Salma Naqvi

Reply (/do-you-localhost-your-wordpress/?replytocom=71513#respond)

Cory LamleDecember 10, 2014 at 9:14 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-72149)

Hey Salma,

The best place to get started with the Duplicator plugin is on the quick start

(http://lifeinthegrid.com/duplicator-quick).

Cheers~

Reply (/do-you-localhost-your-wordpress/?replytocom=72149#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

10 of 50 06/26/15 10:04 AM

Page 11: LocalhostYourWordPress.pdf - NA Colorado Region

roger (http://jrjbroofing.org)November 11, 2014 at 2:51 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-71403)

Hi I have a question I hope someone could please give me an answer, I have just installed the

duplicator plugin for the first time on wordpress hoping to move one of my sites to

localhost/xampp but for some reason when i click save permalinks it directs me to the login

screen as I would except but then when i attempt to login it just stays on the login screen

stuck in some kind of loop! Have you ever seen this behavior before if so would you please

point me in the right direction to fix this issue.

Thanks for your time,

Roger

Reply (/do-you-localhost-your-wordpress/?replytocom=71403#respond)

Alyssa SmithNovember 11, 2014 at 12:59 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-71401)

I have recently started building a website for a client on WordPress using BitNami. Would you

recommend using xampp instead? What is the difference between the two?

Thanks,

Alyssa

Reply (/do-you-localhost-your-wordpress/?replytocom=71401#respond)

Chris Moore (http://www.wpdevmate.com/)November 12, 2014 at 4:20 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-71430)

Hi Alyssa

xampp and Bitnami are great, however, In my humble opinion, they are too bloated –

especially If you’re just developing WordPress websites. Try WPDevMate

(http://www.wpdevmate.com (http://www.wpdevmate.com)) instead which has been

designed specifically for WordPress websites, and it has a much smaller footprint too.

Reply (/do-you-localhost-your-wordpress/?replytocom=71430#respond)

Vicki Dalton (http://schulerpackaging.com)September 26, 2014 at 11:12 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-69464)

I have spent a miserable day trying to use the plug in to get my localhost MS webmatrix

wordpress site up and running instead of the ugly little site sitting on the Networks Solutions

server. I failed.

Maybe I am just duh, but I am defeated. Nothing was successful about using this easy plug in.

Any help would surely be appreciated. I’ve searched and searched and found no step by step

that actually worked.

Reply (/do-you-localhost-your-wordpress/?replytocom=69464#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

11 of 50 06/26/15 10:04 AM

Page 12: LocalhostYourWordPress.pdf - NA Colorado Region

Cory LamleSeptember 26, 2014 at 5:28 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-69481)

Hi Viki,

If you want to submit a support ticket here:

lifeinthegrid.com/support

I can better work with you there…

Thanks

Reply (/do-you-localhost-your-wordpress/?replytocom=69481#respond)

judyOctober 3, 2014 at 7:57 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-69763)

Hello, I have bitnami installed and am using the local host environment to redesign our

current website. I would like to work on 2 other sites at the same time, so I am looking to

install Desktop Server. In order to do this I need to install xampp. Do I need to uninstall

Bitnami to do this? If so, what is the safest way to do this without losing any of the work

I’ve done and when I upload those files into the new configuration, will they appear the

same as in the Bitnami environment? Thanks for your help!

Reply (/do-you-localhost-your-wordpress/?replytocom=69763#respond)

Chris Moore (http://www.wpdevmate.com/)October 3, 2014 at 8:57 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-69770)

Hi Judy

Why not use WPDevMate which also integrates Cory’s Duplicator plugin script. You

can install, run and work on as many WordPress projects as you like, and you don’t

need to install anything else – you can also run it from a USB drive. If you don’t want

to lose your existing work, use Cory’s Duplicator plugin to back up your existing

website and import it into WPDevMate. Visit http://wpdevmate.com/faq/

(http://wpdevmate.com/faq/) and look at the section ‘How to Import a Website from

a remote location’ for more details.

Reply (/do-you-localhost-your-wordpress/?replytocom=69770#respond)

Cory LamleOctober 8, 2014 at 7:28 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-70018)

You should be able to run multiple web servers on the same box, you just will need

to make sure they are not running at the same time as there would be a port

conflict…

Hope that helps!Reply (/do-you-localhost-your-wordpress/?replytocom=70018#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

12 of 50 06/26/15 10:04 AM

Page 13: LocalhostYourWordPress.pdf - NA Colorado Region

ChristopherOctober 25, 2014 at 7:16 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-70839)

Vicki, I have spent an equally miserable day doing EVERYTHING to try to get xampp to

work on windows 7 – ive done my hosts file, changed my ports, restarted, run as a

service, used the interconnectIT script and more…nothing worked…i was really at give-up

point… i tried so many things… I went and tried WAMP and it worked first time,

effortlessly using this AMAZING plugin.

thank you SO much dev – my move to localhost worked as easily as your video, but with

WAMP, so thank you thank you! – anyone else struggling with XAMPP, try WAMP and vice

versa! it was so unbelievably easy after all the struggling with XAMPP… this plugin does it

all and wamp was so effortless (just install and browse to localhost, bam – it was there,

setup database, moved the Duplicator files to the folder and browsed to the installer.php.

Reply (/do-you-localhost-your-wordpress/?replytocom=70839#respond)

robertAugust 12, 2014 at 11:28 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-67756)

Hi Cory,

Great tutorial video on using XAMPP, very thorough.

Only comment – if edit the wp-config.php file with all database stuffs, including the DB

Administrator name and password first, would it streamline the install process.

My 2nd question – WAMP seems to be more streamline, do you have a video on it?

Thanks,

Reply (/do-you-localhost-your-wordpress/?replytocom=67756#respond)

Cory LamleAugust 12, 2014 at 7:08 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-67766)

Hi Robert,

Editing the wp-config ahead of time could help if you already had your WP site setup… As

far as WAMP I haven’t really played with it, but would like to when I get some time…

Cheers~

Reply (/do-you-localhost-your-wordpress/?replytocom=67766#respond)

JohnJuly 23, 2014 at 9:57 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-67297)

Hello,Reply (/do-you-localhost-your-wordpress/?replytocom=67297#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

13 of 50 06/26/15 10:04 AM

Page 14: LocalhostYourWordPress.pdf - NA Colorado Region

Thanks for this great guide, answered a lot of my questions. I am a new web dev coming from

a program dev background, doing this as a new hobby and favor. I am trying to edit an

existing website made through wordpress. I have wordpress and xampp installed locally, and

everything seems to be working. I can play with the default “hello world” blog from wordpress

locally, so I assume I got it all correct so far. I see that you made a plugin to sync a remote site

a local one. My question, if you don’t mind me asking, is what exactly is the plugin doing? For

educational purposes, I’d like to learn how to copy a remote site manually. I am more

comfortable in writing pure html/php/css code than letting wordpress handle everything, and I

only have a basic understanding on how wordpress is translating the visual changes to actual

code. Eventually, when I want to upload the changes I made locally to the live website, what

should I do?

Sorry if this has been asked before, but there’s a lot of comments extending back 3 years.

JohnJuly 23, 2014 at 10:09 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-67298)

I should mention that I have ftp access to the website in question and downloaded it in

full already. However, when trying to navigate to it via xampp, it directs me to the “hello

world” blog with wordpress.

Reply (/do-you-localhost-your-wordpress/?replytocom=67298#respond)

Cory LamleJuly 24, 2014 at 9:16 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-67313)

Hey John,

If your having issues with the Duplicator plugin go ahead and submit a support

ticket (http://lifeinthegrid.com/support) or ping me on the forums

(http://wordpress.org/support/plugin/duplicator)…

Thanks!

Reply (/do-you-localhost-your-wordpress/?replytocom=67313#respond)

Cory LamleJuly 24, 2014 at 9:14 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-67312)

Hey John,

Basically it creates a SQL script and zips up all your files then at install type it creates the

new database, extracts the files and performs replace logic on the data… A bit more

going on under the hood but that is the basics…

Reply (/do-you-localhost-your-wordpress/?replytocom=67312#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

14 of 50 06/26/15 10:04 AM

Page 15: LocalhostYourWordPress.pdf - NA Colorado Region

Hope that helps!

habibJuly 23, 2014 at 12:02 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-67284)

how do i publish from the local testing environment to the production site online?

Reply (/do-you-localhost-your-wordpress/?replytocom=67284#respond)

Cory LamleJuly 24, 2014 at 9:11 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-67311)

Hey Habib,

You can’t publish from your own computer to a production site. Basically you will have to

cut and paste the data, although if your wanting to sync the databases you can try WP DB

Migrate (http://lifeinthegrid.com/d-wpmigrate)…

Reply (/do-you-localhost-your-wordpress/?replytocom=67311#respond)

habibJuly 24, 2014 at 11:39 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-67316)

thank you!

Reply (/do-you-localhost-your-wordpress/?replytocom=67316#respond)

SunniMarch 6, 2015 at 8:40 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-73744)

That’s not true, Cory — if you are using DesktopServer! With one click, I can push

my dev sites from local to production, and that includes the tedious task of

changing domain urls (e.g. from mysite.dev to mysite.com ) There’s even a WP

plug-in that facilitates that transfer. I used to do local setup of server and all of the

manual steps in transfer and upload and balked at DesktopServer. Now, I refuse to

work a day without it. It’s that good. Boy, I sound like a sales person. I’m only a

user..a happy one.

Reply (/do-you-localhost-your-wordpress/?replytocom=73744#respond)

sure (http://aaronchenonline.com)July 3, 2014 at 12:52 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-66855)

Hi,

Yesterday evening whilst doing some development work in localhost I inadvertently exitedReply (/do-you-localhost-your-wordpress/?replytocom=66855#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

15 of 50 06/26/15 10:04 AM

Page 16: LocalhostYourWordPress.pdf - NA Colorado Region

XAMPP instead of just closing the window. Since then my localhost wp-admin login is just a

blank white page, “view source” has no code in it.

I reinstalled WordPress and it didn’t fix it. Tried repairing and analysing the MySQL database

and it made no difference. My localhost website is accessible with no problems, its the admin

interface I can’t access. I tried removing all plugins and themes other than the default Twenty

Ten but no good :(

Any suggestions?

Cory LamleJuly 11, 2014 at 6:27 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-67021)

In your wp-config try and set this value define(‘WP_DEBUG’, true); and then see if you see

any errors…

Reply (/do-you-localhost-your-wordpress/?replytocom=67021#respond)

Chris Moore (http://www.wpdevmate.com/)June 25, 2014 at 5:54 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-66692)

Why not try WPDevMate which integrates Cory’s Duplicator plugin script and is a really easy

and fast way to Install and Deploy multiple WordPress projects. It’s also cross platform

compatible because it runs in a standard web browser. You can also download a portable

server version of WPDevMate that runs on a USB stick for Windows.

(http://www.wpdevmate.com (http://www.wpdevmate.com))

Reply (/do-you-localhost-your-wordpress/?replytocom=66692#respond)

Heather CaltonJune 15, 2014 at 4:41 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-62785)

Hey Cory, do you offer any tutorials or information regarding your Duplicator plugin and how

to synchronize or reconfigure it with a localhost database (mySQL/WAMP)? The tutorials you

offer all relate to external databases. There are a few on the net but they all deal with older

versions of Duplicator. Your help is greatly appreciated.

Reply (/do-you-localhost-your-wordpress/?replytocom=62785#respond)

Cory LamleJune 17, 2014 at 4:42 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-64426)

Hi Heather,

I don’t know of any off the top of my head. What issues are you having and I could

probably help guide you in the right direction…Reply (/do-you-localhost-your-wordpress/?replytocom=64426#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

16 of 50 06/26/15 10:04 AM

Page 17: LocalhostYourWordPress.pdf - NA Colorado Region

Cheers~

Rahul VenkatramMay 4, 2014 at 2:35 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-27900)

Thanks a ton!!

Had a few hiccups since the tutorials don’t really say which directory to copy the .zip and the

installer.php file to. but figured it out eventually and now it works like a charm.

Thank you.

Cheers,

Rahul

Reply (/do-you-localhost-your-wordpress/?replytocom=27900#respond)

SteveMay 9, 2014 at 9:52 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-33317)

I think I followed all the instructions, and I get the page template with a 404. If I browse

to the folder http://localhost/1websites/wp-admin (http://localhost/1websites

/wp-admin) it redirects me to the production website/wp-admin instead. That would be

magical if it was what I intended, but it is not.

I spent all day on this and am stuck. Don’t know enough about php, apache, or mysql to

even ask an intelligent question on your help forums.

Reply (/do-you-localhost-your-wordpress/?replytocom=33317#respond)

Cory LamleMay 10, 2014 at 7:29 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-33657)

You can post a ticket to the help forums if you want Steve and I can help you better

there…

Cheers~

Reply (/do-you-localhost-your-wordpress/?replytocom=33657#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

17 of 50 06/26/15 10:04 AM

Page 18: LocalhostYourWordPress.pdf - NA Colorado Region

Cory LamleMay 10, 2014 at 7:28 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-33655)

Glad you got things going Rahul, it can be tricky at first…

Reply (/do-you-localhost-your-wordpress/?replytocom=33655#respond)

Thomas Anderson (http://tomkinconsulting.com)April 16, 2014 at 9:44 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-16120)

I’m having problems reinstalling live website onto an instant wordpress instance. The issue is

with authentication.

Host=> localhost

User=>root

password=>blank (none)

Name=> wordpress

With no success.

Any advice?

Reply (/do-you-localhost-your-wordpress/?replytocom=16120#respond)

Cory LamleApril 16, 2014 at 6:07 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-16259)

You might check your database permission for the user that your using…

Reply (/do-you-localhost-your-wordpress/?replytocom=16259#respond)

Steven Spiller (http://www.stevenspiller.com)March 30, 2014 at 5:13 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-15642)

This tutorial and your WordPress Duplicator plugin make for testing updates and new plugins

so much easier.

Thanks for releasing this as a free plugin!

Reply (/do-you-localhost-your-wordpress/?replytocom=15642#respond)

John (http://johnmann.me)March 29, 2014 at 4:18 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-15635)

I really enjoy these kinds of articles and wish more people would do changes and edits to a

local deployment of their site. A free product out there that can make it much easier to deploy

a local webserver is Desktop Server. I’m not affiliated with it at all, just a regular user who likes

good tools.

Reply (/do-you-localhost-your-wordpress/?replytocom=15635#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

18 of 50 06/26/15 10:04 AM

Page 19: LocalhostYourWordPress.pdf - NA Colorado Region

Mandar (http://www.eproker.com)May 17, 2014 at 12:20 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-38814)

I am doing a website.

But i got one problem regarding localhost implement.

my web is not logging in.

Reply (/do-you-localhost-your-wordpress/?replytocom=38814#respond)

Cory LamleMay 20, 2014 at 7:19 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-40964)

Hi Mandar,

Go ahead and submit a support ticket here:

http://lifeinthegrid.com/support/ (http://lifeinthegrid.com/support/)

Thanks

Reply (/do-you-localhost-your-wordpress/?replytocom=40964#respond)

SunniMarch 6, 2015 at 8:41 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-73745)

Second your comment John. It’s really good. I just wish he’d do a fork for Drupal.

Reply (/do-you-localhost-your-wordpress/?replytocom=73745#respond)

X-Japan Orgasm Live (http://www.youtube.com/watch?v=4hpl8rSMdZQ)March 28, 2014 at 12:21 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-15618)

s also the manufacturer of the world-famous Regza line of LCD

television sets. Canon is going to launch its new flagship DSLR- Canon EOS 1D

X in March 2012. It brought along with the reputation of Volkswagen for strong dynamic

performers

along with European flair.

Reply (/do-you-localhost-your-wordpress/?replytocom=15618#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

19 of 50 06/26/15 10:04 AM

Page 20: LocalhostYourWordPress.pdf - NA Colorado Region

weight loss meal plans for women (http://www.mytestcampaign.com)March 27, 2014 at 6:22 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-15613)

I think the admin of this web page is truly working hard

for his web page, for the reason that here every stuff is quality based information.

Reply (/do-you-localhost-your-wordpress/?replytocom=15613#respond)

TonyFebruary 20, 2014 at 5:18 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-15072)

Hi there Cory..

Great site and great tutorial. I stumbled upon this while trying to figure out how to easily, (for

a newbie), sync between my locally dev site and my live one in HGator. I only went live

yesterday, and didn’t think there will be any issues syncing between the two, but realized it’s

not a straightforward process. I used Duplicator plugin to go live, which at the end, made my

life simpler, (especially after my FTP failed to upload the entire site halfway through). While I

can follow your suite and test things locally and then do these changes manually in my live

site, I just refuse to believe that no one has come up with either a Sync plugin or a simple

method to safely sync the two sites.

What files does one have to manually upload via FTP to sync let’s say, content, pictures, etc? Or

is not again straightforward with this method either?

I appreciate your time and views on this matter..:-)

Reply (/do-you-localhost-your-wordpress/?replytocom=15072#respond)

Cory LamleFebruary 20, 2014 at 8:12 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-15073)

Hey Tony,

Thanks for touching base! If you want to sync just the database then ‘WP Migrate DB

(http://lifeinthegrid.com/duplicator-getalts)‘ is going to be the fastest most versatile way

to sync system.

Hope that helps!

Reply (/do-you-localhost-your-wordpress/?replytocom=15073#respond)

TonyFebruary 20, 2014 at 12:54 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-15074)

Thanks for your swift reply Cory…I really appreciate it..! I will definitely be using this

plugin sometime in the near future as my works becomes more hectic…!!!

Reply (/do-you-localhost-your-wordpress/?replytocom=15074#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

20 of 50 06/26/15 10:04 AM

Page 21: LocalhostYourWordPress.pdf - NA Colorado Region

Richard (http://richard-dickinson.com/)January 20, 2014 at 2:46 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-15034)

Hi,

I do WordPress localhost as you may know from my earlier post here and I now do this with IIS

on my Windows8 PC (previous PC Win7).

On setting this up on Win8 PC, I also followed the steps to make the WordPress install multisite

on IIS localhost (as my WP online blog is also multisite). This worked fine and if anyone wants

to do it there are x2 good reference pages @ WordPress Codex with instructions how to set up.

So, happy WordPress localhosting and if you are on Windows do try IIS (or even IIS

Express/WebMatrix and you can run XAMPP/Apache server alongside if you want experience

with a Linux type server-and so get the best of both then!) :-)

Reply (/do-you-localhost-your-wordpress/?replytocom=15034#respond)

Cory LamleJanuary 22, 2014 at 7:32 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-15037)

Thanks for posting that info Richard!

Cheers~

Reply (/do-you-localhost-your-wordpress/?replytocom=15037#respond)

danielJanuary 16, 2014 at 9:44 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-15027)

Hello Cory,

i already done work my wp from local, and already instal duplicator, and now i need to upload

it to my live wp (still original).

i think the easy way is to duplicate from local use Duplicator and then import from live Wp.

is it enough or i need to configure anything else ?

can u assist me with link tutorial how to do that?

anyway i love your header :D Cool !

Reply (/do-you-localhost-your-wordpress/?replytocom=15027#respond)

Cory LamleJanuary 20, 2014 at 11:38 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-15033)

Hey Daniel,

Thanks for stopping by… I would check-out the quick start guide

(http://lifeinthegrid.com/duplicator-quick) and the user guide (http://lifeinthegrid.com

/duplicator-guide) they should have links to videos as well…

Cheers~Reply (/do-you-localhost-your-wordpress/?replytocom=15033#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

21 of 50 06/26/15 10:04 AM

Page 22: LocalhostYourWordPress.pdf - NA Colorado Region

StephenDecember 29, 2013 at 6:03 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-15003)

Thanks for this article, Cory.

Quick question about the way Duplicator works from an administration point of view …

If I grab a copy of an existing, live site, and install it locally on XAMPP, then make design

changes or update plugins, core files (WP version), etc, do I need to delete the live site before

using Duplicator to upload the development site? Or does Duplicator manage overwriting an

existing site?

What’s the best strategy for updating live sites?

Thanks in advance.

Reply (/do-you-localhost-your-wordpress/?replytocom=15003#respond)

Cory LamleDecember 30, 2013 at 2:57 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-15004)

Hey Stephen,

Thanks for stopping by… Right now the plugin requires and Empty Database and Empty

directory (except for the installer and archive files). Personally I don’t use the plugin to

migrate to production, unless its the first time the site is going live. Normally I just

duplicate the latest production version down to a sandbox area and test and develop

locally, and then make the same changes again in production. Most of the changes I

make are pretty easy to track from revision to revision.

Technically you can take the approach mention however if you have session data such as

stats/comments/shopping carts etc. then you will loose the production data if the

database gets out of sync… So short answer the plugin does not manage any type of

version control for you…

Cheers~

Reply (/do-you-localhost-your-wordpress/?replytocom=15004#respond)

Pedro Maiquez (http://pedromaiquez.es)December 27, 2013 at 8:38 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-15000)

How can I test the website perfomance (speed) with in local (Wamp)?

Reply (/do-you-localhost-your-wordpress/?replytocom=15000#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

22 of 50 06/26/15 10:04 AM

Page 23: LocalhostYourWordPress.pdf - NA Colorado Region

I have WordPress installed in my PC to test changes before I upload, and most of that changes I

want to are related with page speed( Php, Css, plugins)… but I don’t find anything to test

perfomance in local.

Do you have any idea?

Thanks

Cory LamleDecember 27, 2013 at 9:25 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-15001)

Hey Pedro,

If your on a shared host server (which most people are) then its not really worth the time

to optimize heavily for page performance, because what you see on your WAMP server

will never be a close one to one ratio of what you would get on a shared hosted segment.

The main reason is that your at the will of other websites that are hosted on the same

server. So you may be getting response times of 500ms on your WAMP but then your

getting 1.5seconds on the host because of other shared requests. And this 1.5 seconds

can wildly vary as you have no idea what the other websites are doing…

However if you have your on VPS or even server then the exercise will be worth it,

because your WAMP server will more closely represent a dedicated server. Remember you

also have to keep in mind how much traffic your going to get per day. If your serving up

multiple request per second then this will impact the performance and you will need load

balancing tools to simulate load.

For WordPress you might look at the Plugin Performance Profiler (http://wordpress.org

/plugins/p3-profiler/) and if your know how to program you can look at this one

(http://php.net/microtime). Also have a look at this blog post (http://evgeny-goldin.com

/blog/wordpress-performance-optimization/).

Cheers~

Reply (/do-you-localhost-your-wordpress/?replytocom=15001#respond)

Brian H.December 12, 2013 at 8:04 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-14977)

Cory:

I am just getting into local development for my clients. I also use XAMPP. Is there a way for me

to show my clients the site on my local computer without having to transfer it to the

production environment? Thanks.Reply (/do-you-localhost-your-wordpress/?replytocom=14977#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

23 of 50 06/26/15 10:04 AM

Page 24: LocalhostYourWordPress.pdf - NA Colorado Region

Cory LamleDecember 18, 2013 at 10:09 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-14991)

Hey Brian,

Thanks for stopping by and sorry for the delayed response! If you want to keep the site

only on your computer then probably just a desktop sharing program would do best… Do

a Google search for ScreenLeap or CrossLoop and I believe Skype also has an option as

well… If you just want to do a proof of concept with them you could just use SnagIt…

Cheers~

Reply (/do-you-localhost-your-wordpress/?replytocom=14991#respond)

danielNovember 27, 2013 at 1:28 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-14894)

hi, im still newbie about hosting domain , specially xampp

i read in several articel that xampp is really fragile about secure, is that use xampp is make

hacker more easier to screw our web? and if we download file WP to local (use FTP) and work

offline from DreamWeaver,text editor then upload after finished, this way more secure right

then use xampp? CMIIW

Reply (/do-you-localhost-your-wordpress/?replytocom=14894#respond)

Cory LamleNovember 27, 2013 at 12:58 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-14897)

Hi Daniel,

Thanks for stopping by… XAMPP is not secure and you should only use it in a

development environment, never in a production environment… You can workoffline in

Dreamweaver, but you won’t be able to use PHP or WordPress in that case with out a web

server and PHP installed. I hope that answers your questions…

Cheers~

Reply (/do-you-localhost-your-wordpress/?replytocom=14897#respond)

danielNovember 28, 2013 at 4:24 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-14959)

i see Cory, thank you for your advice, i think i will use WAMP than XAMPP, i heard

and see is more simple and good updates. why u not use WAMP? :)

Reply (/do-you-localhost-your-wordpress/?replytocom=14959#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

24 of 50 06/26/15 10:04 AM

Page 25: LocalhostYourWordPress.pdf - NA Colorado Region

Cory LamleNovember 29, 2013 at 9:52 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-

14961)

I have never really played around with WAMP too much, I have nothing against

it, probably just never really had the time to play around with it much…

JRNovember 24, 2013 at 11:59 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-14890)

Really nice Cory! I like your easy to understand writing style – and I think your Duplicator

plugin is brilliant! Please count me as grandfathered-in when you start monetizing the plugin,

k?! ;-) I wonder how your features compare to BackupBuddy – seems like they (potentially can)

do the same thing?

Q – when the site gets cloned, what happens to the SALT Authentication and unique security

features that each individual WP and DB installation has? Do you recommend reconfiguring the

SALT and … other security issues once they are in the new location (assuming they are in

another live environment)?

Cheers!

– JR

Reply (/do-you-localhost-your-wordpress/?replytocom=14890#respond)

Cory LamleNovember 25, 2013 at 6:24 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-14891)

Hey JR,

Thanks for the feedback! Right now nothing happens to the SALT Authentication. The

only thing that is updated in the wp-config are the database creds. I don’t normally

update the salts unless I’m working on a clients site. Then I just google for ‘WP salt

generator’ and there are few on the wordpress.org site that will give you new ones… The

best security I believe is always SSL your admin and include a good solid wordpress

plugin like ‘Better WP Security’ and use strong usersnames and passwords… Also an

overlooked security practice is to always stay humble online… Don’t ever say or do

something that gives someone a reason to hack you just because they can…

Cheers~

Reply (/do-you-localhost-your-wordpress/?replytocom=14891#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

25 of 50 06/26/15 10:04 AM

Page 26: LocalhostYourWordPress.pdf - NA Colorado Region

EL (http://www.goinspire.com)November 13, 2013 at 2:34 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-14879)

Thanks for a great article!

How do you push over the changes from the development site to the production site?

Thanks.

Reply (/do-you-localhost-your-wordpress/?replytocom=14879#respond)

Cory LamleNovember 16, 2013 at 7:40 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-14882)

Hey EL,

If your refferring to the Duplicator plugin (http://lifeinthegrid.com/labs/) you just follow

the directions in the user guide or the quick start guide…

Cheers~

Reply (/do-you-localhost-your-wordpress/?replytocom=14882#respond)

Jon Crowell (http://joncrowell.org)October 30, 2013 at 9:57 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-14860)

I have installed XAMPP on my local machine and there is an empty wordpress installation

waiting to go. I have a live wordpress site that I would like to clone so that I can run it on my

local machine. I have installed the Duplicator plugin and built a package. I downloaded the

installer.php file and also the package.zip file. But I don’t know where to place these files in

order to run them. They are sitting in my Downloads folder — where should I put them in

order to run the installer and build the clone of the site on my local machine?

By the way, thanks for your excellent work.

Jon

Reply (/do-you-localhost-your-wordpress/?replytocom=14860#respond)

Cory LamleOctober 30, 2013 at 5:25 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-14862)

Hey Jon,

Thanks for the feedback and stopping by! You will want to place them in the root of your

web folder, or any directory that you can browse to via a browser such as http://localhostReply (/do-you-localhost-your-wordpress/?replytocom=14862#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

26 of 50 06/26/15 10:04 AM

Page 27: LocalhostYourWordPress.pdf - NA Colorado Region

/mydir/ (http://localhost/mydir/) You can also checkout the quick start faq

(https://lifeinthegrid.com/support/knowledgebase.php?article=10) online as it helps

explain some of this…

Cheers~

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

27 of 50 06/26/15 10:04 AM

Page 28: LocalhostYourWordPress.pdf - NA Colorado Region

Jon CrowellOctober 30, 2013 at 9:28 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-14864)

Thanks. I’ve since taken a much more thorough look at your documentation. I’m

impressed with your work.

Reply (/do-you-localhost-your-wordpress/?replytocom=14864#respond)

Cory LamleOctober 31, 2013 at 6:35 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-14865)

Thanks Jon, I appreciate the kudos :)

Cheers~

Jon CrowellNovember 4, 2013 at 12:34 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-14870)

I must admit, however, that in spite of ten years of programming experience and

several days struggling with your technology, I was never able to successfully get it

to work. You sure weren’t kidding when you mentioned that it requires deep

technical expertise. Maybe I’ve just overlooked something. In any case, life must go

on.

Reply (/do-you-localhost-your-wordpress/?replytocom=14870#respond)

Cory LamleNovember 6, 2013 at 6:59 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-14874)

Hey Jon,

I left a few links on the WordPress forum that might help. You might also check

the httpd.conf and make sure all your root directories and paths are setup

correctly… Unfortunately one miss setting and it can cause the whole thing to

not work…

Shari Smith (http://uneedstuff.com)October 17, 2013 at 4:11 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-12592)

I used to follow exactly what you suggest, I have however stopped updating the local server

1st. I now make sure I have a working copy on the local site, and then update the production

site. I keep the local copy running the old version.Reply (/do-you-localhost-your-wordpress/?replytocom=12592#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

28 of 50 06/26/15 10:04 AM

Page 29: LocalhostYourWordPress.pdf - NA Colorado Region

The reason I started doing this was, it’s really impossible to test everything locally, and I’ve

found issues after the production is live, and now both my local and production is running the

update and the issue is in the update. I keep a last backup but now I have to restore two sites,

and go through and find the error on the local.

As you said 99% of the time everything works fine, so for me this has worked much better. I

only have to restore the production, and can slowly go through the local install updating piece-

a-meal and find the issue. Then apply the update again to production.

Cory LamleOctober 17, 2013 at 6:21 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-12631)

Hey Shari,

Thanks for the feedback! Actually there are many times where I’ll update the production

side first when I know the change is safe to make. This has saved me time on many

occasions when I really didn’t need to do the change on my development box. I think

many times it about understanding your workflow and then executing what is the most

productive for your setup…

Thanks for sharing your experience :)

Reply (/do-you-localhost-your-wordpress/?replytocom=12631#respond)

TimNovember 26, 2013 at 1:47 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-14892)

Great post, coming from a professional web-dev background I can’t recommend this

highly enough.

One thing though, you really should be running THREE systems/servers:

– Local (xampp/mamp on your local computer/network).

– Testing (On the same server, with exactly the same specs and your Live site. Restricted

via whatever mechanism you want (.htaccess, IP whitelist, etc) so that only you can access

it, you don’t want people, or the search bots getting onto it).

– Live / Online that the rest of the world see’s.

This lets you test locally until you are happy, and then you can push the changes onto the

test server and test there. As Shari said, all too often xampp and a live server don’t match

(think write permissions, differing PHP / MySQL versions, misconfigured .htaccess files

often work locally but crash online, etc, etc).

Once you’ve got your local and test running smoothly you can rest assured that working

99% of the time goes to 99.999%.

Reply (/do-you-localhost-your-wordpress/?replytocom=14892#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

29 of 50 06/26/15 10:04 AM

Page 30: LocalhostYourWordPress.pdf - NA Colorado Region

Maybe you’d like to do an “advanced follow-up” of this post, it looks like you have a great

bunch of readers on your site, many who I think would benefit from this.

Anyway, kudos to you to bringing standards and good coding/development practices to

the public.

Cory LamleNovember 26, 2013 at 5:27 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-14893)

Hey Tim,

Thanks for stopping by and very well said! I use the setup you mentioned on several

sites… When you start doing this stuff professionally you pretty much have to do it

right or you’ll end up with issues… Never thought about a follow-up but I it may be

worth it, currently working on the next version of the Duplicator which seems to

consume quite a bit of time…

Cheers~

Reply (/do-you-localhost-your-wordpress/?replytocom=14893#respond)

DavidAugust 30, 2013 at 12:51 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-1398)

What fantastic tutorials! Of all the WordPress tutorials I’ve been drowing myself in for the past

week, yours are head-and-shoulders above the rest–concise, packed with information, and

delivered with style.

However, I’m still confused about how to migrate a site produced on my localhost onto a web

server. Your tutorial about Duplicator very nicely explains the reverse situation. For nervous

newbies like myself, it would be great if you would consider an addendum to the Duplicator

tutorial about how to move a finished WordPress site from localhost to a live web server.

The next question is somewhat related. I currently have an ugly HTML site that has been there

for years, which I will replace with the WordPress site. It has reasonably good SEO at present.

Are there any SEO pitfalls to watch out for when replacing an HTML site with a WordPress site?

Thanks for your time.

Reply (/do-you-localhost-your-wordpress/?replytocom=1398#respond)

Maitri (http://snugessentials.com)July 10, 2013 at 8:06 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-1347)

Hi there.Reply (/do-you-localhost-your-wordpress/?replytocom=1347#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

30 of 50 06/26/15 10:04 AM

Page 31: LocalhostYourWordPress.pdf - NA Colorado Region

Any chance you’d consider making a tutorial about how to transfer you locally hosted website

to a server? I have created a wordpress website hosted locally on my laptop and would like to

put it on my hosting provider (bluehost).

cheers

Maitri

Cory LamleJuly 12, 2013 at 2:51 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-1350)

Hey Maitri,

I plan to create a series of videos to help cover the various scenarios sometime in the

future. Thanks for the feedback!

Cheers~

Reply (/do-you-localhost-your-wordpress/?replytocom=1350#respond)

MattOctober 10, 2013 at 7:06 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-9996)

Hi Maitri, have you found a great tutorial that you recommend for this? I created a

website locally and want to replace a Joomla website on Bluehost.

Thanks

Reply (/do-you-localhost-your-wordpress/?replytocom=9996#respond)

This Web-site (http://remiq.net)May 27, 2013 at 12:02 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-1280)

Hey there! Quick question that’s totally off topic. Do you know how to make your site mobile

friendly? My web site looks weird when browsing from my iphone 4. I’m trying to find a

template

or plugin that might be able to fix this problem.

If you have any recommendations, please share.

With thanks!

Reply (/do-you-localhost-your-wordpress/?replytocom=1280#respond)

Cory LamleMay 30, 2013 at 5:58 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-1284)

In the left navigation of this site check out the link “This sites theme is powered by

Alyeska”

It will take you to a theme that is mobile ready…. Enjoy :)Reply (/do-you-localhost-your-wordpress/?replytocom=1284#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

31 of 50 06/26/15 10:04 AM

Page 32: LocalhostYourWordPress.pdf - NA Colorado Region

Elsie (http://betterresultsmarketing.com)May 23, 2013 at 9:12 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-1277)

I can’t find the answer anywhere so thought you might be able to help:

When I try to activate my duplicator I get a fatal error:

fatal error: cannot redeclare class Duplicator_Zip in my site plus/wp-content/plugins

/duplicator/classes/class.zip.php on line 3

can you tell me what might be causeing it? I am trying to move tons of sites to my localhost on

my computer but this was my first one and I can’t activate it. LOL

My host is Bluehost thank you, hugs Elsie

Reply (/do-you-localhost-your-wordpress/?replytocom=1277#respond)

Cory LamleMay 24, 2013 at 9:03 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-1278)

Hey Elsie,

Thanks for stopping by… Can you go ahead and use the ticket system for asking

questions on the Duplicator?

support.lifeinthegrid.com

Thanks

Reply (/do-you-localhost-your-wordpress/?replytocom=1278#respond)

Mark Conger (http://happylittleshopper.com)May 23, 2013 at 10:18 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-1274)

Cory, you must be doing something right since the comments on this post span a few years!

Reply (/do-you-localhost-your-wordpress/?replytocom=1274#respond)

Cory LamleMay 23, 2013 at 11:02 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-1276)

I’m trying :)

Reply (/do-you-localhost-your-wordpress/?replytocom=1276#respond)

chuckMay 23, 2013 at 9:59 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-1273)

Great article… Have you tried:

http://serverpress.com/ (http://serverpress.com/)Reply (/do-you-localhost-your-wordpress/?replytocom=1273#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

32 of 50 06/26/15 10:04 AM

Page 33: LocalhostYourWordPress.pdf - NA Colorado Region

Just found it the other day and it looks VERY interesting.

Cory LamleMay 23, 2013 at 11:02 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-1275)

Hey Chuck,

I have seen server-press before. Have not used it yet, but heard really good reviews. If you

ever give it a try let me know what you think…

Cheers~

Reply (/do-you-localhost-your-wordpress/?replytocom=1275#respond)

Mark Conger (http://happylittleshopper.com)May 20, 2013 at 2:34 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-1266)

In a previous job I had my own server to develop on. It was sah-weet!

But, after moving on I lost that luxury. So I bought a used Dell Server and used the free

VMware ESXi to host various virtual machines for WordPress and Joomla available from

JumpBox, TurnkeyLinux, Bitnami, etc. I even rolled my own using a LAMP VM.

After a while it got to be a hassle keeping the box running, updated, etc. so I started using

VM’s on my Macbook, but that takes a bit of resources I didn’t care to lose.

Finally, I found ServerPress. What a great product it is too! I think it’s built on XAMPP but all

the setup is taken care of. In short, it’s the perfect solution.

Combined with the Duplicator plugin it makes the PERFECT development environment.

Cheers.

Reply (/do-you-localhost-your-wordpress/?replytocom=1266#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

33 of 50 06/26/15 10:04 AM

Page 34: LocalhostYourWordPress.pdf - NA Colorado Region

Cory LamleMay 21, 2013 at 8:06 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-1269)

Hey Mark,

Thanks for stopping by… I have been told by other people that both products work really

well together, thanks for your feedback!

Reply (/do-you-localhost-your-wordpress/?replytocom=1269#respond)

SashaApril 16, 2013 at 12:03 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-1238)

This might be a really silly question, but I am completely blind to the answer at the moment. I

am in the pre-install phase on my localhost and my system status indicates that the Root

Directory has a problem: “Is Writable” has a [Fail] beside it. What is the appropriate way to fix

this?

Thank you in advance! The videos have been extremely helpful and I appreciate the fact that

this plugin exists!

Reply (/do-you-localhost-your-wordpress/?replytocom=1238#respond)

Cory LamleApril 16, 2013 at 12:25 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-1239)

Hi Sasha,

Thanks for stopping by… Actually that issue is related to how you have Apache setup.

Unfortunately there is never a one size fits all solution for these issues. It tends to change

across XAMPP versions and then adding the combination of Operating Systems and it gets

pretty crazy on how you can solve the problem… The way to pin point your exact setup is

to ask Google with a detailed search… So if your running windows on XAMPP then put a

search like “XAMPP make directory writable windows” (clear here (http://goo.gl/7yTJH)).

You will probably come across several solutions. Try each one and then don’t forget to

restart Apache (press start/stop in the XAMPP control panel) if you perform any

instructions that ask you to edit your httpd.conf file.

Hope that helps!

Reply (/do-you-localhost-your-wordpress/?replytocom=1239#respond)

Mike McCarty (http://webdesign-raleighnc.com)April 5, 2013 at 11:18 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-872)

Reply (/do-you-localhost-your-wordpress/?replytocom=872#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

34 of 50 06/26/15 10:04 AM

Page 35: LocalhostYourWordPress.pdf - NA Colorado Region

Everything as you said until I get to the part about where I log on at localhost/ at that point it

doesn’t log onto the xamp page, but instead goes to another page (“Welcome” IIS7 Internet

Information Service) It does this even if I type localhost/xamp/

I have running but it wouldn’t run on port 80 so I reset it to port 21, 443 and it’s running.

It might be good to mention that I also have microsoft server 2012 installed and microsoft

visual studio pro. Would these conflict?

Thanks for any help or advise.

Cory LamleApril 5, 2013 at 11:35 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-873)

Hi Mike,

Thanks for stopping by… Yeah you will have to stop IIS see this link

(http://technet.microsoft.com/en-us/library/cc732778(v=ws.10).aspx) to do that…

Then if you setup Xampp Apache as a service (http://stackoverflow.com/questions

/9440072/how-can-i-run-xampp-on-startup-in-windows) it should auto-load the next time

you restart your computer so that Apache is automatically started and IIS is not…

Hope that helps!

Reply (/do-you-localhost-your-wordpress/?replytocom=873#respond)

Tania Tyler (http://zenjewelry.mysticnaturals.com)April 2, 2013 at 8:17 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-788)

What an awesome article! So detailed and easy to follow. I got my development environment all

setup yesterday. Thank you!

Reply (/do-you-localhost-your-wordpress/?replytocom=788#respond)

RossMarch 5, 2013 at 9:19 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-351)

Hi Cory,

Thanks for the quick start guide.

When I run the installer it halts on Step 1 and prompts me to download installer.php, have you

come across this behaviour before? Any suggestions?

Thanks, Ross. Reply (/do-you-localhost-your-wordpress/?replytocom=351#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

35 of 50 06/26/15 10:04 AM

Page 36: LocalhostYourWordPress.pdf - NA Colorado Region

Cory LamleMarch 6, 2013 at 9:11 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-352)

Hey Ross,

Go ahead and submit a support ticket and we can talk about it in the ticket thread!

support.lifeinthegrid.com

Thxs

Reply (/do-you-localhost-your-wordpress/?replytocom=352#respond)

RossMarch 5, 2013 at 9:59 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-349)

Hi Cory,

Great post, and thank you for putting in so much effort to develop a wordpress duplication

solution.

Can you please clarify something…

Do we first create an empty wordpress instance at the new location? Or do we simply create a

new (empty) database, and the plugin installs wordpress plus everything else?

Assuming we only need to create a new database (and not wordpress), where do we upload the

package? Does it go beside the installer script? And do we need to unzip the package first?

And one last thing… what if we want the duplicated instance to live on the same host as the

production site, i.e. in a sub-directory called dev, will there be any conflict or risk?

Thanks again, Ross.

Reply (/do-you-localhost-your-wordpress/?replytocom=349#respond)

Cory LamleMarch 5, 2013 at 6:19 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-350)

Hey Ross,

Thanks for stopping by… I think all of your questions or at least most of them can be

answered here:

http://lifeinthegrid.com/duplicator-quick (http://lifeinthegrid.com/duplicator-quick)

Reply (/do-you-localhost-your-wordpress/?replytocom=350#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

36 of 50 06/26/15 10:04 AM

Page 37: LocalhostYourWordPress.pdf - NA Colorado Region

You don’t need to unzip the file it should do it for you…

For the last question I would avoid doing dev work on a production server, but if you do

all you should have to do is change the paths of the url and the file system… Be sure to

always have backups of all your data just in case you run into issues…

Hope that helps!

Bill (http://makermasters.com)February 22, 2013 at 7:50 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-336)

Is setting the UAC to none a good idea. Won’t that leave you vulnerable?

Reply (/do-you-localhost-your-wordpress/?replytocom=336#respond)

Cory LamleFebruary 22, 2013 at 4:17 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-342)

Hey Bill,

Thanks for stopping by… If your behind a good firewall, keep good antivirus and have a

small network of very trusted users you should be fine. Otherwise on a bigger internal

network you might have to consider your options…

Reply (/do-you-localhost-your-wordpress/?replytocom=342#respond)

Martin Evers (http://mobi-web-designers.co.za/wpress01/)January 20, 2013 at 2:54 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-324)

I’m testing Duplicator by transferring a test site on to localhost XAMPP with PHP 5.2.8. I get an

installer fail because it is looking for 5.2.17+ yet I see 5.2.8 on one of your demos. All other

points on the System Status pass.

Reply (/do-you-localhost-your-wordpress/?replytocom=324#respond)

Cory LamleJanuary 20, 2013 at 11:48 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-325)

Hi Martin,

The 5.2.17 check was probably added a bit after the demo. 5.2.17 is the most stable and

secure of the 5.2 builds. If your using anything lower it will have security holes. Also php

5.5 is right around the corner being a one man shop its really to difficult to support so

many versions for the Duplicator…

Reply (/do-you-localhost-your-wordpress/?replytocom=325#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

37 of 50 06/26/15 10:04 AM

Page 38: LocalhostYourWordPress.pdf - NA Colorado Region

Hope that helps!

CorlJanuary 16, 2013 at 4:07 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-322)

Hi Ken,

Bluehost lets you select your PHP version, see https://my.bluehost.com/cgi/help/447

(https://my.bluehost.com/cgi/help/447) If this doesn’t help give them a call and ask.

Best,

Corl

Reply (/do-you-localhost-your-wordpress/?replytocom=322#respond)

Ken TilleyJanuary 16, 2013 at 3:54 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-320)

Hi Cory,

My production server (Bluehost) uses php version 5.2.17. The localhost Mac OS XAMPP I

installed today uses php version 5.3.1.

A.) Do I need to ask Bluehost to upgrade to 5.3.1? (Looks like 5.4.10 is the current “stable”

version.)

B.) Can I downgrade my XAMPP php version to 5.2.17? Should I, and if so, do you know a good

info link for doing that?

C.) Should I ask Bluehost to upgrade to 5.4.10 and upgrade my XAMPP localhost to 5.4.10? If

so, do you know a good info link for doing that?

D.) Why would Bluehost seemingly be so far behind in its php version? When a host upgrades

php, is it on a per user-site basis upon request?

Thanks!

Reply (/do-you-localhost-your-wordpress/?replytocom=320#respond)

Cory LamleJanuary 20, 2013 at 11:50 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-326)

Hey Ken,

Looks like Corl answered a good portion of you questions. Thxs Corl! Its technically ok toReply (/do-you-localhost-your-wordpress/?replytocom=326#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

38 of 50 06/26/15 10:04 AM

Page 39: LocalhostYourWordPress.pdf - NA Colorado Region

run different versions. My preference however is to try and keep my development box

and my hosted systems at least at the same minor version. So if I’m on 5.3.x at home I

usually like to keep my vps/hosted sites at 5.3.x as well. A good host should update the

revision number 5.3.x (the x part) automatically if it contains any security holes, which

technically on many software projects is what that place holder is reserved for…

Hope that helps!

CorlJanuary 15, 2013 at 11:18 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-318)

Hi Cory,

What I mean to ask is how do I upload the entire customized “Package” (WP, Theme, Plugins

etc) to a live server once I’ve customized it locally? I’m sure this is very basic, but I’ve just

begun and I’m totally confused.

Thanks,

Corl

Reply (/do-you-localhost-your-wordpress/?replytocom=318#respond)

Cory LamleJanuary 15, 2013 at 11:58 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-319)

Hey Corl,

Yeah your right it is a bit involved. Probably not something I could explain in a comment.

I’ll try to get a video out that explains the process or at least will try to walk you through

it a bit…

Cheers!

Reply (/do-you-localhost-your-wordpress/?replytocom=319#respond)

CorlJanuary 10, 2013 at 12:14 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-314)

Wow this really worked. I was able to sync my live site to my local computer. Once I made a

child theme, oddly all the live sites widget customization’s disappeared, but then I simply

reactivated them in the widgets for them to reappear in the child. Did I miss something on this

point?

Now I’d like to upload the new local child, but I’ve never done this at all. Can you please either

tell me how or point me to a good tutorial. Everything I’ve seen via Google makes it lookReply (/do-you-localhost-your-wordpress/?replytocom=314#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

39 of 50 06/26/15 10:04 AM

Page 40: LocalhostYourWordPress.pdf - NA Colorado Region

needlessly complex.

Thanks for the great tutorial and idea for developing locally.

Corl

P.S. How did you get the two check boxes below with the “Sign me up to your newsletter!” I’ll

want one of those.

Cory LamleJanuary 10, 2013 at 7:06 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-316)

Hi Corl,

Thanks for stopping by this thread! Wow lots of questions….

1st Question:

Not really sure what happened there…

2nd Question:

For the child theme you might try this:

http://wordpress.org/extend/plugins/one-click-child-theme/ (http://wordpress.org

/extend/plugins/one-click-child-theme/)

3rd Question:

Here is what I use for the newsletter sign-up:

http://txfx.net/wordpress-plugins/subscribe-to-comments/ (http://txfx.net/wordpress-

plugins/subscribe-to-comments/)

Hope that helps!

Reply (/do-you-localhost-your-wordpress/?replytocom=316#respond)

tipkilby (http://www.petnettucson.com)September 26, 2012 at 2:33 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-282)

Just spent the morning trying to install an application on my hosting site using MySQL. Found

out that it won’t run there, and realize now that I’d be better off with this application running

on my local site. Until now I didn’t know where to begin, but your video provides the exact

information I need. Well done and thanks!

And after poking around your website for a little while, I think I’ve just discovered a new

favorite place. Nice work.Reply (/do-you-localhost-your-wordpress/?replytocom=282#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

40 of 50 06/26/15 10:04 AM

Page 41: LocalhostYourWordPress.pdf - NA Colorado Region

Cory LamleSeptember 26, 2012 at 3:23 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-283)

Hey Tip,

Glad the videos were helpful! I think lots of people don’t really know about using

WordPress on their own computers, it can definitely allow you to tinker with ideas and try

things you normally wouldn’t on a live site. Thanks for dropping by and taking the time

to chat!

Cheers!

Reply (/do-you-localhost-your-wordpress/?replytocom=283#respond)

AnnMarch 10, 2012 at 10:45 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-198)

I am kinda new to wordpress so being able to develop on my local system and move it the live

server is great : and thanks everso for a great product which happens to work most of the time

– however I have a specific problem where I moved from one server to another and it did not

change the permalinks or settings – whenever I go to change them in the new site it shows the

name of the old site (in the browser) – the new site is http://www.lyons-den-carving.com

/wordpress (http://www.lyons-den-carving.com/wordpress) and the old site is

http://www.frogshollow.com/wordpress (http://www.frogshollow.com/wordpress)

I was wondering if you could email me any suggestions?

Thanks in advance.

Reply (/do-you-localhost-your-wordpress/?replytocom=198#respond)

Cory LamleMarch 18, 2012 at 4:10 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-206)

Hey Ann,

If you want to go ahead and submit a support ticket at support.lifeinthegrid.com I can

work with you so we can get it up and running on your system.

Reply (/do-you-localhost-your-wordpress/?replytocom=206#respond)

Richard (http://www.richard-dickinson.com)December 17, 2011 at 1:57 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-169)

Nice post- I develop on localhost on my Win7 box using IIS7.5 server (inetpub)& IIS Express

(WebMatrix). Both of these are Windows products which fit well on a Windows computer. My

old computer ran Vista & I did use XAMPP on that for my localhost & that was fine but I haveReply (/do-you-localhost-your-wordpress/?replytocom=169#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

41 of 50 06/26/15 10:04 AM

Page 42: LocalhostYourWordPress.pdf - NA Colorado Region

no reason to use XAMPP on Win7.

Currently I have a problem with TweetBox not authoring on my localhost IIS7.5 but I hope I will

sort this out soon! There are always issues with all these technologies….but there is always a

way around the problems!

Happy localhost developing :-)

Cory LamleDecember 18, 2011 at 8:20 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-170)

Hey Richard,

By day I’m a C# developer pretty heavy on Windows, and really love playing with

WordPress in the evenings. I have a good friend who uses WebMatrix and loves it! I’ll have

to give it a try soon, it looks pretty nice!

Cheers!

Reply (/do-you-localhost-your-wordpress/?replytocom=170#respond)

Stephen CarrollOctober 10, 2011 at 10:58 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-144)

Hey Guys, love your Duplicator plugin. I’ll definitely be doing a write up on it at

serverpress.com. Good work. Sign me up for that newsletter!

And to answer your questions on this post, yes… why yes we do! In fact, we’ve deployed an

XAMPP mashup that makes it even easier for developers and designers to work on multiple

WordPress projects, try out bbPress, BuddyPress or even take WordPress Multisite with domain

mapping for a spin. All on your local box, and cross platform too. Check it out!

http://serverpress.com/products/desktopserver/ (http://serverpress.com/products

/desktopserver/)

Reply (/do-you-localhost-your-wordpress/?replytocom=144#respond)

MarkSeptember 24, 2011 at 12:05 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-134)

Hi Cory,

My apology for misspelling your name above. And awesome, in-depth answer. It definitely gave

me a renewed confidence to give it another shot; even despite the the anomalies.

Since I am a dedicated Linux user I’m blessed in being able to have lampp configured to

silently run in the background right at point of boot up. Absolutely no having to “launch” it

when I need it … local server’s always running if the computer’s on.Reply (/do-you-localhost-your-wordpress/?replytocom=134#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

42 of 50 06/26/15 10:04 AM

Page 43: LocalhostYourWordPress.pdf - NA Colorado Region

As you can imagine, that was an extremely hard proposition to walk away from.

Prior to hearing your above response, I was running both a production box and a dev box (on

it’s own toplevel subdomain) on my host account. On the upside, it was as close to 1:1 as

could be realistically expected. On the downside, it had nowhere remotely close to the

response time that running your own localhost has.

Moral: Thanks to your most excellent insight in this regard, I am going to stick with lampp. A

few minor anomolies are quite acceptable when the speed factor is taken into account. Thanks

Cory!

Best regards,

Mark

MarkSeptember 23, 2011 at 11:06 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-130)

@Corey and @Mark – Thank you for precisely explaining the sync process and when it it not

necessarily needed.

Do either one you ever experience distinct anomalies with xampp that you do not experience

with a live web install for a development box/playground? For example, a particular theme I’m

rather fond of has a drop down widget area to the top. On the web, works correctly. In xampp,

it freezes (will not drop down).

There’s a couple other minor anomalies; enough to cause me to (sadly) abandon xampp.

Have either of you experienced any anomalies via xampp that were no encountered via a live

web production box?

Thanks!

Mark

Reply (/do-you-localhost-your-wordpress/?replytocom=130#respond)

Cory LamleSeptember 24, 2011 at 7:20 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-133)

Hey Mark,

Totally understand your pain! Anomalies are definitely a part of software development.

There are times when I work on identically hardware and software and still get differentReply (/do-you-localhost-your-wordpress/?replytocom=133#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

43 of 50 06/26/15 10:04 AM

Page 44: LocalhostYourWordPress.pdf - NA Colorado Region

results. Software is far from perfect and I have learned that as a developer or consumer of

these products you have to learn to work around the issues and try to pinpoint the

underlying problem.

The problem most likely isn’t with xampp itself, but one of its underlying components.

All xampp does is laydown PHP, MySQL and Apache. So the problem could be as much as

a mis-match in one of those versions. You may have to go to an older version of xampp

(http://sourceforge.net/projects/xampp/files/XAMPP%20Windows/)

Sometimes minor things such as using PHP 5.3.1 or 5.3.2 can cause enough of a minor

difference to cause things to not work. Then you have the conflicts of operating systems.

Right now I do all my development on a Windows 7 xampp and then push everything up

to a Linux host. While 95% of things work, I still get the strange anomalies which can

sometimes drive me mad. But I usually find a way to fix it or work around it.

Sometimes strange anomalies can also point to poor development design, which should

help you identify the better plugins. In other words the plugin or software developer only

tested on this one browser under this one version of PHP. In software development and

especially web development that is a huge no-no.

Try to get your versions of PHP, MySQL and Apache as close as possible. Also test in

several browsers to make sure its not systematic of just one browser. You may also email

the plugin author or post to the WordPress boards and see if someone has had a similar

problem. Most likely your not the only one to experience the problem. If your still are not

able to get your development box perfect that’s OK. Keep in mind its a sandbox to play in

and tweak your settings.

If the anomalies are too great and you just can’t find a work around on the xampp

platform you could try some of these:

WampServer (http://www.wampserver.com/en/)

UwAmp (http://www.uwamp.com/)

You can also just Google ‘xampp alternatives’. There are quite a few out there. I have had

the best luck with xampp.

Just keep in mind that in the world of software development its very critical to isolate

your development and production, especially if you making any type of cash-flow or have

and audience. So either use xampp or another consolidated WAMP/LAMP packager and

remember to always do your tinkering on your development box and leave your

production box for your audience to enjoy…

In future articles I’ll try to write some tutorials to show people how to identify these

problems on there box so they will know the right questions to ask when they go into the

forum. It’s important if you plan to do these sites on your own to have some very basic

know-how of HTML, CSS and the ability to debug JavaScript. You won’t need to know how

to program, but understanding what technology is actually causing the issue will help you

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

44 of 50 06/26/15 10:04 AM

Page 45: LocalhostYourWordPress.pdf - NA Colorado Region

get your answer so much faster.

Hope this helps releave some of your tensions!

Believe me I know exactly how you feel :)

Mark (http://www.greenpoint0.com)September 22, 2011 at 2:42 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-125)

Hello,

One thing I am confused on is getting the newly developed site back onto the host server

without messing up the activity that happened in the mean time. Such as, new comment and

posts. It sounds like:

1. we would have to backup the “live” sites’ database

2. install the duplicate file from the “development” site to the “live” site.

3. If I then restore the recently backed up database to the newly upgraded “live” site will it

mess with my recent changes in development or will it simply keep all of my posts that were

just backed up in the database?????

Wondering what the right thing to do is.

Reply (/do-you-localhost-your-wordpress/?replytocom=125#respond)

Cory LamleSeptember 22, 2011 at 6:48 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-126)

Hey Mark,

Here are a few rules I follow.

PRE-PRODUCTION:

This is before a site goes live. At this stage I do all my development locally and setup my

WordPress as I see fit. Then I upload the package and installer generated from the

Duplicator plugin on my development box up to my production box or host. I then run

the installer and I have a replica of what I just spent weeks developing.

POST-PRODUCTION:

Once a site goes live I only duplicate a site the other way which is from production (my

host) down to my development box. This of course only happens when I no longer need

the state of my development WordPress instance. I use my development box as a

playground for what I want to happen on production.

Once my production site is duplicated onto my development box my sites are in syncReply (/do-you-localhost-your-wordpress/?replytocom=126#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

45 of 50 06/26/15 10:04 AM

Page 46: LocalhostYourWordPress.pdf - NA Colorado Region

temporarily. I then start the process of whatever project I have to work on and integrate

all the changes on my development box. I usually keep a log or 90% of the time just know

what I’m changing and working on. I then either FTP my custom files or reinstall any

plugins directly onto the production site, based on all the changes I made on my

development box.

Any type of configuration is duplicated (like a plugin setup). However I know what the

plugin or changes are going to look like and how it will function because I did all my

testing on a development box. Now I don’t have to worry about installing a plugin and

trying to tinker with it on a production site. I was able to make everything perfect on my

development box and then push those changes to the production without messing up my

production site. It also allows you to test a plugin or changes to see if you even want to

use that plugin.

Hope this helps!

Mark (http://www.greenpoint0.com)September 23, 2011 at 2:11 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-127)

Alright I think I understand.

1. duplicate live production site to development box.

2. develop, then install development site to production site.

3. when needing to make changes to production site.

a. duplicate to development.

b. develop.

c. do not duplicate back to production site.

4. copy files needed from development site to production site.

a. put up maintenance mode on production site.

b. copy files from development to production via ftp.

Question: Which files do I copy?

– Is it alright to copy the whole /wp-contents/ folder or will that mess up the

database?

5. take maintenance mode down and let visitors enjoy

Reply (/do-you-localhost-your-wordpress/?replytocom=127#respond)

Cory LamleSeptember 23, 2011 at 7:06 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-128)

Hey Mark looks good! Reply (/do-you-localhost-your-wordpress/?replytocom=128#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

46 of 50 06/26/15 10:04 AM

Page 47: LocalhostYourWordPress.pdf - NA Colorado Region

A few comments on your steps:

Step 2. This is a manual process, so every plugin that you installed and configured

on your development box you would need to re-install and configure on your

production box. However in most cases you don’t need to worry about maintenance

mode, because you already know it works on your development box and you have

tested thoroughly. Most plugins are pretty simple, just install and make a few

changes. However if its a large complicated plugin that require quite a bit of setup

then maintenance mode may be necessary, its really your call.

The underlying benefit to this process is that you can make easy changes to your

site whenever you want with confidence, without having to wait for odd hours to go

into maintenance mode.

Step 3. You don’t really need to do this every time you want to make a change. In

fact your development and production site can stay out of sink for quite some time

if you want. You really only need to perform this step when you feel your

development box (aka playground) is not representative of your production site.

Step 4. If you are only working with plugins then you don’t have to FTP anything.

Just install and configure with the settings you did on development. However if its a

custom WordPress template (http://http://www.davidrisley.com/how-to-custom-

page-template-wordpress/) then all you have to do is FTP the template file(s) and

configure your new WordPress ‘Page’ to point to that template. You really don’t need

to write your posts on a development box because you can just use the preview

mode till you decide to publish the post.

Step5. As I mentioned before maintenance mode isn’t really necessarily needed

unless your doing large changes that surfer could access. In fact lots of time I will

make large changes directly on a production site as long as they can’t link to the

feature I’m implementing. Once I’m done I then put up the link so they can get to it.

Many people use maintenance mode to test out plugins on there production site.

That is a very bad practice. Plugins can conflict with other plugins causing problems

on your site, so its important to always test these in a development environment.

Anytime you have to put your site in maintenance mode you may ask yourself why.

Maintenance mode is not necessary if you have already done diligence on a

development box. I have been developing for over 20 years and implemented tons

of website and probably only used maintenance mode 2-3 times. Now to be realistic

maintenace mode is no big deal for a small blog, but if your site is averaging

thousands of visitors a day then you don’t want downtime.

Mark (http://www.greenpoint0.com)Reply (/do-you-localhost-your-wordpress/?replytocom=129#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

47 of 50 06/26/15 10:04 AM

Page 48: LocalhostYourWordPress.pdf - NA Colorado Region

September 23, 2011 at 8:15 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-129)

Hey Cory,

Thanks for all of the great info! And thanks for editing the format on my reply. I didn’t

realize it would all align:left.

“However if its a custom WordPress template then all you have to do is FTP the template

file(s) and configure your new WordPress ‘Page’ to point to that template.” – Cory

I am looking more at customizing the template for the entire site, based off of another

template and editing the code.

Thanks,

Mark

Mark (http://bibleresearchtools.wordpress.com)September 2, 2011 at 3:16 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-115)

Hi Cory,

I discovered your site – and ultimately your magnificent Duplicator plugin – via the long and

painful process of establishing a powerful security suite for (self-hosted) WP users.

First off, I’d like to extend a heart-felt “Thank you!” for both such a great great plugin, as well

as the equally excellent tutorial above. As a dedicated Linux user, I have never been able to

find a suitable localhost solution… that is, until now, thanks to you.

The possibilities that your tutorial have opened up simply make the mind reel with all of the

exciting possibilities… easy to get unfocused.

Anyhow, I have a quick question I was hoping you could shed some light on. I got localhost

running totally successfully and was about to set up a mysql as per your instructions when I

encountered the following warning:

“Your configuration file contains settings (root with no password) that correspond to the

default MySQL privileged account. Your MySQL server is running with this default, is open to

intrusion, and you really should fix this security hole by setting a password for user ‘root’.”

Any idea on how to go about this in Linux (Mint/Ubuntu)?

Many Thanks in advance!

Best regards,

Mark Reply (/do-you-localhost-your-wordpress/?replytocom=115#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

48 of 50 06/26/15 10:04 AM

Page 49: LocalhostYourWordPress.pdf - NA Colorado Region

Cory Lamle (http://lifeinthegrid.com)September 3, 2011 at 6:52 am (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-116)

Hey Mark,

The error you are getting on a localhost box won’t really matter since it is just a

development box, however to answer your question and get rid of the warning in

phpMyAdmin you can follow these steps.

1. OPEN PHPMYADMIN

Browse to http://localhost/phpmyadmin/ (http://localhost/phpmyadmin/)

2. CREATE ROOT USER

Create database user: Privileges -> Add a new User

UserName: “root”

Host: “localhost”

Password: “whateveryouwant”

Privileges: Check All

3. UPDATE CONFIG FILE

After you change the password for root, you need change config.inc.php in $/xampp

/phpMyAdmin.

Open config.inc.php in a text editor, and find: $cfg[‘Servers’][$i][‘password’] = ”;

Insert your root password from step 2 in the above ”. Save your config.inc.php.

Reopen your phpMyAdmin in the browser and the message should be gone.

Hope this helps!

Reply (/do-you-localhost-your-wordpress/?replytocom=116#respond)

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

49 of 50 06/26/15 10:04 AM

Page 50: LocalhostYourWordPress.pdf - NA Colorado Region

Keith Taylor (http://www.keithtaylor.com)July 17, 2011 at 12:43 pm (http://lifeinthegrid.com/do-you-localhost-your-wordpress/#comment-49)

Wow, this is a great post! Thanks a lot for the information.

I just ran through the video and I now have my own WordPress setup on my own box.

Now I feel like I can make a lot more changes or experiment without breaking my production

site.

Thanks again!

Keith.

Reply (/do-you-localhost-your-wordpress/?replytocom=49#respond)

Your email address will not be published. Required fields are marked *

Name*

Email*

Website

Post Comment

Confirm you are NOT a spammer

Notify me of followup comments via e-mail

Sign me up to your newsletter!

Do You Localhost Your WordPress? - Life in the Grid http://lifeinthegrid.com/do-you-localhost-your-wordpress/

50 of 50 06/26/15 10:04 AM