How To Make A Portable Test Web Server With Server2Go

Compare Cost: Get 8 Free E-Commerce Design Bids
Service:
Location:
Budget:
Deadline:
Compare: Web Design Calculator | Web Design Cost Guidelines

Are you an E-Commerce Web Designer? Add a Free Listing

portable <a href=PHP web server" />Whether you’re a blogger or a web designer, upgrading and improving the website is a never-ending job. Whether you want to tweak the template or test some changes before activating them live, it’s nice to have a local system set up where you can view “live changes” before they ever go live on the Internet.

There are lots of WYSIWYG applications that let you create a static HTML page and then preview what it’ll look like before you actually upload the new pages to your web host. However, if you have a PHP-based website like a Wordpress blog, things aren’t quite that simple. You need a web server that can handle PHP and MySQL at the very least.


Here at MUO, we’ve covered a number of ways to install your own local web server like Dave’s review of Linux web server software, as well as his review of XAMPP for Windows. These are great if you intend on using the same computer for all of your development work, but if you travel a lot, wouldn’t it be nice to have a portal PHP web server installed on your thumb drive or portable hard drive where you can test changes anywhere, even if there’s no Internet access? One of the easiest portable solutions for this is Server2Go.

Bring A Working Web Server Anywhere

Compared to the configuration work it takes to set up a working web server, the ease with which you can install and run Server2Go on a portable drive is unbelievable. This is a perfect solution for me, because I want to make some design changes to my blog template without the risk of taking down my entire site. So, in order to accomplish this feat, I decided to test drive Server2Go.

When you download Server2Go and extract the files, you’ll see that the directories are set up like a regular web server with “htdocs” being the public directory where your web pages will go.  No installation required.

portable php web server

All you have to do is copy those files and directories to your portable drive. Now, if your only goal is to test your website that’s written in either straight HTML or PHP, you’re done. Just copy your site to htdocs and you can view it by launching the web server (running Server2Go.exe) and then going to http://127.0.0.1:4001/ – the default localhost IP configured in pms_config.ini.

This is pretty slick because you will have a fresh web server to test any website that you want at any time and anywhere. But what if you want to load up a complete PHP site with a back end SQL database?

Server2Go was originally made to run off of a read-only CD, so the default setup will not save MySQL database changes. If you want to configure the server to keep all of your settings, you need to edit pms_config.ini so that LocalMirror=0, OverwriteLocalMirror=0, and DeleteDatabaseFiles=0.

Do this edit before you move on or you’ll lose all of your configurations. When you’re done, open up phpMyAdmin by going to http://127.0.0.1:4001/phpmyadmin/ and log in as root without any password.

Now, set up your database. This needs to be the database name that you use for your regular website. In the case of a WordPress blog, you’ll make it whatever you configured in wp-config.php on your live blog.

local host web server

Also create a new user with the same user id that you use on your live WordPress blog. You do this in phpMyAdmin by clicking on the SQL tab and typing:

“CREATE USER ‘my_id’@'localhost’ IDENTIFIED BY ‘your_password’;
GRANT ALL PRIVILEGES ON *.* TO ‘my_id’@'localhost’
WITH GRANT OPTION;
CREATE USER ‘my_id’@'%’ IDENTIFIED BY ‘your_password’;
GRANT ALL PRIVILEGES ON *.* TO ‘my_id’@'%’
WITH GRANT OPTION;

Now that your database is ready to go, move a fresh copy of WordPress to your new portable web server by copying all of the WordPress files to the htdocs directory.

local host web server

Remember to edit wp-config-sample.php with the database and user information, and rename the file to wp-config.php. Run “http://127.0.0.1:4001/wp-admin/install.php” and you should see the following screen.

local host web server

You now have a working local installation of WordPress! The next step is to just export your database and import it into your local WordPress installation. We’ve covered lots of backup procedures at MUO, but one of my favorites was Dean’s on the database backup plugin. I won’t go into the details here, but I highly recommend that plugin to transfer over your entire database.

Keep in mind that even though the database backup will move over all posts and comments, the theme and formatting will not carry over. To do this, you need to copy your entire wp-content directory from your online blog to the fresh install of your local one. Enable the required plug-ins and configure the theme to match your online setup. Once you’re done, you have an exact local replica of your entire online website or blog.

Here’s a local copy of my own blog running on Server2Go.

portable php web server

Now I can tweak the template and other aspects of my blog – including testing new plug-ins and widgets – before they ever go live on the actual online website. After taking my website down a few times just by playing around with a new widget, this feels a whole lot safer.

Give Server2Go a shot on your own portable thumb drive or hard drive and let us know how it goes. What other ideas do you have for making use of such a portable and fast to set up web server? Share your thoughts in the comments section below.

Image Credit : El Frijole

 

 

More articles about: , , , ,


Source http://www.makeuseof.com/?p=67727
Wed, 23 Mar 2011 21:31:09 GMT
Tags: Cool Software Apps, DIY, local server, portable app, web server, webmaster tools,
Sonora E-Commerce | Safety Harbor E-Commerce | Raleigh E-Commerce | San Diego E-Commerce | Oconomowoc E-Commerce | Fredericksburg E-Commerce | Brighton E-Commerce | Tempe E-Commerce | Ahmadabad E-Commerce | Johnstown-Milliken E-Commerce |

Cool Software Apps


JottiQ – Scan Suspicious Files Using Multiple Anti-Virus Apps At The Same Time

google_ad_client = 'pub-5700237260308472'; google_ad_channel = '3925636777'; google_ad_output = 'js'; google_max_num_ads = '4'; google_ad_type = 'text'; google_image_size = '336x280'; google_feedback = 'on'; google_skip = google_adnum ; How

How To Easily Synchronize Folders Outside Dropbox Using Symlinks

There’s a long running discussion on Quora that grabbed my attention. The topic is about the reason why Dropbox is more popular than other free programs with similar functionality. The various answers boiled down to this: simplicity. You put your fi

BitTorrent Creates User-Friendly Client Chrysalis [News]

BitTorrent has released a new client this week called Chrysalis in an attempt to keep novice users interested in the BitTorrent service. Chrysalis has been specially designed with new users in mind, so it’s clearly laid out with free, legal content

DIY


5 Things To Consider When You Install a SATA Hard Drive

Hard drives with a Serial ATA (SATA) connector were introduced to replace IDE and Enhanced IDE (Parallel ATA) drives. SATA removes the master-slave relationship between hard drives (parallel), as each drive connects directly to a SATA host adapter or port

Create Your Own Custom Homescreen Widgets With BITS [Android]

On an Android device, the home screen is prime real-estate. If you can get users to sacrifice some of their precious screen space for your widget or icon, you've made it. But these users can be notoriously hard to please. BITS, a new homescreen "widget e

local server


How To Set Up Your Own FTP Server With Core FTP

There is one thing that I do almost constantly during my day job that I realized I don’t really do at home. That is creating an FTP server where you can retrieve files from within one sub-network while you’re anywhere on a LAN, or in the case

Browse Your Website Files Without FTP Using AjaXplorer

If there is one thing that really annoys me about working with a remote web server is the fact that it is still a bit inconvenient to explore and edit those files remotely. Commercial servers offer a much more user-friendly, graphical interface to remotel


Need E-commerce Design? Check out our member profiles:

Lakeside
Auto Web Design Profile
Auto Web Design

We are a web design,ecommerce and web hosting provider.Auto Web Design has been servicing Internet customers since 1996. We offer e commerce web solutions at very competitive rates.

Lakeside, California US
Appleton
Virtualtech Website Design and Promotion Profile
Virtualtech Website Design and Promotion

Virtualtech Website Design and Promotion provides website design, Internet marketing (SEO), Email Marketing and Social Media services throughout Wisconsin and the United States. Located in Appleton.

Appleton, Wisconsin US
Palm Harbor
Detroit
Vancouver
Harmony Coburn Profile
Harmony Coburn

Expert e-commerce website solutions for truly small businesses that want the tools to grow big!

Vancouver, Washington US
New Castle
Coyote Creative Graphic Design Profile
Coyote Creative Graphic Design

E-commerce sites with easy content management in the Carbondale, Glenwood Springs, Aspen, Vail, and Rifle, Colorado area. We also create and manage web sites worldwide. Call for a free quote!

New Castle, Colorado US
Roanoke
Grand Forks
ADrenaLize Graphics Profile
ADrenaLize Graphics

ADrenaLize Graphics can develop your concepts into reality. With our knowledge of design, creativity, and experience - we can deliver thrilling designs to jump start your business!

Grand Forks, North Dakota US



Get Free Logo Design Quotes






Get Your Computer Cracking Again With Auslogics BoostSpeed [Giveaway]

This week we re giving away 25 licenses for Auslogics BoostSpeed Stick around to read more about w



Create A Standard Background Image For Your YouTube User Page With Photoshop

Basic graphic design tutorials are all pretty universal whether you are using Photoshop the GIMP o



40 Web Designs With Super-Cool Mascots

Mascots in web designs is a trend that 8217 s been around for a few years already Some designers d



Cool Websites and Tools [May 5th 2012]

Check out some of the latest MakeUseOf discoveries Most of the listed websites are FREE or come wit



Cool Websites and Tools [December 31st 2011]

Check out some of the latest MakeUseOf discoveries Most of the listed websites are FREE or come wit



PicYou & Pho.to Lab – Make Your Photos Stand Out & Look Awesome [iPhone]

Have you ever wished you could do more with the pictures you take on your iPhone The iPhone especi



Get Your To-Do List Done In Style With Any.DO For Android

To do lists are not necessarily the most exciting applications ever and the UI for most Android app




Design Leads

Article Tags
E-commerce Design Articles
Web Apps & Internet (369)
News (290)
Web Apps (129)
Inspiration (128)
Music (119)
iPhone / iPad / iPod (114)
cool web apps (108)
Mobile Tips (100)
Google Android (100)
Announcements (99)
deals (88)
Games & Gaming Tips (84)
Tech Deals (82)
Opinion & Polls (76)
Cool Software Apps (76)
Browser Tips & Tricks (66)
iOS (66)
Social Media (65)
iPhone Apps (59)
Photography (58)
Freebies (58)
geeky fun (58)
iphone (55)
Google (53)
troubleshoot (53)
android (52)
Photoshop (52)
Graphics (51)
facebook (50)
How-To Articles (50)

Friends:
E-Commerce Website Pricing
Web Design Quote
Website Design
Graphic Designers


E-commerce Design Valid HTML 4.0 Transitional Valid CSS!