Installing XAMPP Lite on a Portable Storage device

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.

Without further ado, let’s get started.

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

XAMPP Download Page

XAMPP Zip option

2. Installing your XAMPP Lite

XAMPP Download Complete

XAMPP extract path

3. Setup the XAMPP Lite.

Run XAMPP setup file

XAMPP run config done

4. Starting XAMPP Lite

XAMPP Start file

XAMPP Start screen

XAMPP Browser screen

XAMPP Home Page

5. Stopping and Restarting XAMPP Lite

XAMPP Stop file

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:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • DZone
  • Propeller
  • Reddit
  • StumbleUpon
  • Technorati
  • Yahoo! Buzz
Posted on January 3, 2008 at 3:45 pm by Eldee · Permalink
In: PHP Tutorials · Tagged with: , , , , ,

19 Responses

Subscribe to comments via RSS

  1. Written by VitaminCM on April 18, 2008 at 6:02 am
    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.

  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.

  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
    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. [...] Зроблено на основі допису 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