Join dotcomUNDERGROUND on Facebook Follow dotcomUNDERGROUND on Twitter Get updates by email dotcomUNDERGROUND RSS Feed
Sunday, October 8th, 2006

This tutorial will guide you to run an Apache web server with PHP and MySQL right from your USB flash drive (pen drive, thumb drive). No installation. Just plug and run!

Pretty handy thing to show or discuss a dynamic web project with a client or teacher.

To get started first we need to download XAMPP Lite from ApacheFriends.org
You can get the package here:

Download XAMPP Lite

Web Server on USB Flash Installation

Download and extract the .zip archive.

Inside you will find a folder xampplite
XAMPP Lite

Now plug-in your USB Flash Drive and copy this folder there.
Web Server on USB Flash

Congrats!! You now have a web server on your flash drive.

Now its time to run our web server.

Open the xampplite folder in your flash drive. Run the xampp-control.exe
XAMPP on USB Flash

The XAMPP Control Panel appears.
XAMPP Control Panel

We have our Start buttons next to the service name to start a service.
Apache on USB Flash Drive - Start

Click on them to start a service.

We get the Admin button to manage a service when its running.
Portable Apache Admin

Clicking on the button takes us to the XAMPP admin screen.
Web Server on Flash Drive Control Panel
You might need to click on Language > English if its not being shown in default.

Your Apache document root is E:\xampplite\htdocs (when E: is your flash drive)
Apache on USB Flash Document Root

If you are wondering why you are taken to http://localhost/xampp/ whenever pointing your browser to http://localhost/ , its because the http://localhost/index.php (E:\xampplite\htdocs\index.php) is redirecting you there. You can replace it with your own if you prefer.

We can stop the services clicking on the Stop button next to running services.
Portable Web Server Stop Service

Dont forget to Exit the XMPP Control Panel before un-plugging your flash drive.
Web Server on USB Flash Exit



Join dotcomUNDERGROUND on Facebook Follow dotcomUNDERGROUND on Twitter Get updates by email dotcomUNDERGROUND RSS Feed
Get updates delivered to your email:  Enter email address:  

Tags: , , , , , , , , ,
Categories: Tech, Tips and Tricks, Tutorials

Sorry, comments for this entry are closed at this time.

Get Update Notifications

 Subscribe in a reader Or, subscribe via email:
Enter your email address:  
dotcomUNDERGROUND RSS Feed
Find entries :

Browse by Tags »