You are on page 1of 12

23/10/2010 Installing XAMPP Lite on a Portable St…

Ask About PHP

Home
Tutorials
Subscribe
Download ActiveMQ Le Stockage par Dell
Downloa d ActiveMQ w/ Se rvice Pa ck s Fa ites des Sa uvega rde s de vos P C De ll
Fre e Downloads, Docs & Training! a ve c Inte l® Core™ 2010.

Search

Custom Search

Installing XAMPP Lite on a Portable Storage


device
Like 6 people like this. Be the first of your friends.

One of the fastest and best way to get a PHP server environment up and going is to use XAMPP. What is
XAMPP you say?

Put together by the folks at Apache Friends, XAMPP is an installer package containing the Apache Web
Server, MySQL, PHP and Perl. XAMPP takes away the hassle and headache of installing and configuring
each of the parts individually. But best of all – It FREE!

XAMPP is currently available in 4 distribution packages, but the one this post will cover is XAMPP for
Windows.

XAMPP for Windows is available in standard full edition, or a ‘lite’ version. Since we only need the bare
necessities to get a PHP environment going, we’re just going to focus on installing the XAMPP Lite version
for Windows onto a portable storage device. Frankly, the full edition includes a bunch of stuff you probably
won’t need yet, whilst you’re picking up PHP.

By putting XAMPP onto a portable storage device, like a thumbdrive, or a portable HDD, will make the
whole environment portable. You can take it anyway with you and plug it into any Windows PC/Notebook
and you can carry on where you left off. It’s great for those of you who have more than one PC/Notebook,
which you use regularly.

You can of course, choose to install a XAMPP with the installer version. You can find out how to do it by
following the ‘Installation with Installer‘ guide at the XAMPP website.
askaboutphp.com/…/installing-xampp… 1/12
23/10/2010 Installing XAMPP Lite on a Portable St…

Without further ado, let’s get started.

1. Go grab a copy of XAMPP Lite from Apache Friends.

Visit http://www.apachefriends.org/en/xampp-windows.html and click the link as shown below.

You’ll need to choose the option for ZIP.

The EXE version is an executable installer which will install XAMPP Lite on your PC/Notebook.
XAMPP will not be portable if you use the EXE version to install.

2. Installing your XAMPP Lite

While XAMPP is downloading, go and prepare your portable storage. In my case, my portable HDD
is identified as F: drive. I intend to put my XAMPP Lite into the F:\ root folder.

askaboutphp.com/…/installing-xampp… 2/12
23/10/2010 Installing XAMPP Lite on a Portable St…

Once downloaded, open the ZIP archive into a folder of your choice on your portable storage device.
In my case, I would just extract to the F:\.

Once extracted, there should be an ‘xampplite’ folder where you have specified as your destination
folder path.
In my case, it would have unpacked into the F:\ and created a ‘xampplite’ folder (F:\xampplite)

3. Setup the XAMPP Lite.

Run the setup_xampp.bat file.

askaboutphp.com/…/installing-xampp… 3/12
23/10/2010 Installing XAMPP Lite on a Portable St…

This will configure all the necessary setting and filepaths automatically. Press any key to continue after
that.

4. Starting XAMPP Lite

Run the ‘xampp_start.exe’ file.

askaboutphp.com/…/installing-xampp… 4/12
23/10/2010 Installing XAMPP Lite on a Portable St…
This screen will appear, to show you that Apache and MySQL are running.

Open your browser, and type ‘http://localhost/’ into the address bar.

After choosing your language of choice, you’ll end up on this page.

askaboutphp.com/…/installing-xampp… 5/12
23/10/2010 Installing XAMPP Lite on a Portable St…

Well done, you’ve successfully got your XAMPP Lite going…

5. Stopping and Restarting XAMPP Lite

To stop XAMPP Lite, double-click the ‘xampp_stop.exe’ file to stop the server running.

Sometimes, you might need to stop and start XAMPP, use the ‘xampp_restart.exe’ if you need to
restart your server. Normally, this is required after configuration changes.

Well, that’s it. Hopefully you managed to successfully get your XAMPP environment going. I’ll post more
articles later on how to use the XAMPP environment.

Share and Enjoy:

Related Posts:

Writing your first PHP script


How to get started with PHP?
Codeigniter: Setting up multiple sites on one install
Using XAMPP Lite for PHP scripting
Site Update: 2 years old!

Posted on January 3, 2008 at 3:45 pm by Eldee · Permalink


In: PHP Tutorials · Tagged with: Apache, Guides, How-to, mysql, PHP, XAMPP Lite

19 Responses
Subscribe to comments via RSS

1. Written by VitaminCM on April 18, 2008 at 6:02 am

askaboutphp.com/…/installing-xampp… 6/12
23/10/2010 Installing XAMPP Lite on a Portable St…
Permalink

This is a great article.


Here is a Video Tutorial with instructions on setting this up.

2. Written by bumsala on November 11, 2008 at 6:59 pm


Permalink

hi, great article, recently I found nice php utility to manage projects hosted on Xampp. This utility can
allow / disallow Apache’s virtual hosts and even manage them. Its called XamppContent and you can
find it here: XamppContent

3. Written by Michael on June 10, 2009 at 5:35 am


Permalink

Cool article, I had always wanted to do this, but wasn’t sure how it would be possible with services
and such; never knew about XAMPP Lite. Only problem is, how can I overcome the fact that every
computer will map the drive to a different letter? My laptop wrote all the directories in the configuration
files as ‘E’, so my other computers couldn’t get them because they saw the drive as ‘F’ or another one
as ‘H’. I feel I will have to make a small program to replace all these letters in the config files…

4. Written by webmaster on June 10, 2009 at 12:13 pm


Permalink

Hi Michael, what I do is to standardize the drive letters, e.g. i just make sure all the different computers
i work on assign the ‘M:’ drive letter to my maxtor external hdd.

this is probably the easiest approach, just assign the letter you want in “Disk Management” under
“Control Panel -> Administrative Tools -> Computer Management”

5. Written by loid manuel on July 7, 2009 at 1:39 pm


Permalink

can i install xampplite on my 4gb USB FlashDrive? thanks..

6. Written by webmaster on July 7, 2009 at 8:04 pm


Permalink

Hi Loid, yes, it works the same way.


askaboutphp.com/…/installing-xampp… 7/12
23/10/2010 Installing XAMPP Lite on a Portable St…

7. Written by Rob on August 3, 2009 at 6:25 pm


Permalink

I’ve followed your directions on this page for installing xampplite on a portable device but when trying
to start apache I get the following error: ‘Only one usage of each socket address is normally permitted.
: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down.
Unable to open logs.’
What can I do?

8. Written by webmaster on August 4, 2009 at 7:47 am


Permalink

Hi Rob

That means that you have another program that is using Port 80 which is clashing with xampp. You can
either modify xampp to run on another port or you can find what is the other program that is using Port
80.

Typically Port 80 is used by web servers. Its highly likely you have Microsoft IIS turned on in your
Windows installation. You can check if this is so by typing “http://localhost/” into your browser to see if
other webserver services are runing on your machine.

Check out this blog on how to change the default port on XAMPP if you prefer to take this route.
http://veerasundar.com/blog/2009/07/how-to-change-xampp-server-port/

You can check out this XAMPP faq for more actions you can take.
http://www.apachefriends.org/en/faq-xampp-windows.html#nostart

9. Written by fran on August 26, 2009 at 10:25 pm


Permalink

Fixed error “Only one usage of each socket address is normally permitted”:

I found i had more than one instance of apache.exe running in memory even though the xampp control
panel showed it was off. I dont run a service unless it doesnt work – ie standalone. Hit ctrl-alt-esc –
under processes tab click image name to order by name, look for any apache.exe programs – end
them all and retry – should sort you out

when i doubt – restart. if still in doubt, google it.

askaboutphp.com/…/installing-xampp… 8/12
23/10/2010 Installing XAMPP Lite on a Portable St…

10. Written by Dan on November 10, 2009 at 9:34 am


Permalink

when i tried to run the setup file it i get an error message saying that permission was denied. can
anyone help me? here is a screen shot: http://grab.by/pgS

email me at wraithstk@gmail.com

11. Written by webmaster on November 11, 2009 at 8:06 am


Permalink

hi Dan
I’ve no idea why you would get permission denied. Are you using Windows Vista? If you are, maybe
you an execute the setup in WinXP mode? Sorry, not much help here.

12. Written by Paula on December 2, 2009 at 4:34 am


Permalink

Very helpful, runs perfectly on my external HD.


Thank You, that´s a great tutorial!!!

13. Written by Renee on January 28, 2010 at 8:20 pm


Permalink

Well, I give up. I can’t even get the program downloaded. I’ve tried Imapp lite, regular, self-extracting,
and the .zip file. I’ve tried using direct, using mirrors, going straight for the source and I always get the
message that “Firefox has detected that the server is redirecting the request for this address in a way
that will never complete.” I do accept cookies, so don’t understand what the problem is. I even
downloaded an older version from another website, but when I clicked on the zip/exe file I was told
“Error – does not appear to be a valid archive.” What the heck am I doing wrong?

Yes, I have Vista SP2, but since I haven’t even loaded anything yet, figure I’m not dealing with the
next set of problems detailed in the documentation re permissions.

Then I got confused when Apache’s site said “If you choose a root directory “C:\” as target, you must
not start “setup_xampp.bat”. No other websites, including this one, say any such thing. What are we
supposed to use then? Jeez, if I can’t even get this far, I can’t wait until I download Wordpress…

14. Written by Richa on April 8, 2010 at 11:33 am


askaboutphp.com/…/installing-xampp… 9/12
23/10/2010 Installing XAMPP Lite on a Portable St…
Permalink

Thanks a lot…..i could install xampp successfully….

15. Written by chandrima on April 30, 2010 at 12:56 pm


Permalink

if i want to connect with mysql database what port no. is to be used for localhost?? i tried using default
value:3306, but it’s showing error, it’s not getting connected.. plz help. Thnx in advance.

16. Written by Як встановити XAMPP Lite на флешку | maque.org.ua on June 9, 2010 at 2:50 pm
Permalink

[...] Зроблено на основі допису Installing XAMPP Lite on a Portable Storage device [...]

17. Written by suda on June 12, 2010 at 9:39 pm


Permalink

Thanks

18. Written by nas servers on June 30, 2010 at 1:13 pm


Permalink

Thanks, it works on my usb!

19. Written by Nia on July 5, 2010 at 4:04 am


Permalink

THANKS!!!..it finally worked

Subscribe to comments via RSS

Leave a Reply

Name, required Email (will not be published),


required Website, if present
Submit Reply

askaboutphp.com/…/installing-xampp… 10/12
23/10/2010 Installing XAMPP Lite on a Portable St…
« Previous post
Next post »

Batterie pour Laptop Dell


Restez branc hé longtemps avec
un Portable Dell avec Intel® Core
2010
www.Dell.com /SuivezVotreVoie

Install Hard Drive Easily


Partition, Format, Copy Hard Disk.
Fix & Install Any Windows Easily!
www.spotm a u.com

PC Portable Pas Cher


Top des sites Ordi Portables
Dénic hez des Sites Exclusifs !
Bookm arky.fr/PC -P orta ble

Categories
Book Review (5)
News (12)
Pentaho (1)
PHP Tutorials (39)
Website Building/SEO (11)

Tags
Apache Beginners' Guide blogs books cacti cakephp charts codeigniter comment conference crimson
editor errors examples filezilla getting started global warming google google analytics google charts Guides
hosting PHP How-to introduction jquery Microsoft monitoring mysql nofollow open source osspac PHP
PHP 101 php basics phpMyAdmin reviews rrdtool sample codes SEO source code tools
tutorial variables webmasters website XAMPP Lite
Ads by Google
Install
Portable Hard Disk
Install MSI File
Portable HardDrive

Recent Comments
Mark on Codeigniter: Mixing segment-based URL with querystrings
hello on Google Analytics API class for PHP
Condenser Dryer on Why your general email contact is important to your business.
Sublingual Vitamins on Earth Hour 2008 – Make a difference!
Christopher Palmer on Cacti: Ubuntu 8.04 Cacti Plugin – Invalid PHP_SELF Path problem

askaboutphp.com/…/installing-xampp… 11/12
23/10/2010 Installing XAMPP Lite on a Portable St…

Archives
2010 2009 2008 2007

Recent Posts
Codeigniter: Creating dynamic graphs using JQuery and FusionCharts
PHP and jQuery: Submit a form without refreshing the page
Google Analytics officially uses the Asynchronous Tracking tag
PHP Basics: Sorting Arrays
Google Analytics Master Class is back in Singapore!

LCD Pocket Digital


TV
Enjoy Bright LCD
Viewing anywhere
Portable & Modern
Digital TV.
www.m ygotv.com

Code deblocage
pour gsm
Debloquer votre
telephone. La
manipulation est
offerte.
www.antibloca ge .com

X-Ray Fluorescence
XRF
Handheld, high
performance XRF for
Non-destructive
chemic al analysis
www.bruke r-ax s.com /handhe ld

Ordi Portable
(Discount)
Marques d'Ordinateur
Pas Chères Faîtes des
Ec onomies !
fr.e xcite .eu/O rdi-Porta ble

Cache Web Session-


State
Scalable, hi-av
caching for server
farms. Free download!
www.sca leoutsoftware .com

© Ask About PHP.


Powered by WordPress and style modified from Grey Matter.

askaboutphp.com/…/installing-xampp… 12/12

You might also like