bakr_2k5 0 Report post Posted February 18, 2007 Run a webserver from USB-stick on windows guideIntroductionA few weeks ago we got a 256MB USB-stick from school (yes I didnât have one yet!), and I havenât played with it since I got it till my computer broke and I had to use my moms laptop. Since I didnât want to break up my moms laptop, I thought about my USB-stick and wanted to install a webserver on it. Though it can also be used if you want to demonstrate a project of yours to your clients or friends whatsoever! It can even be used as a real webserver! But please keep in mind that a USB-stick isnât the fastest medium to run a webserver from.In this guide weâll be using:* 256MB USB-stick ( Directory I:\ )* HP Pavilion ze4500 laptop with Windows XP Professional SP2* WAMP (Windows â Apache â Mysql â PHP) packagesNote: When I refer to the USB-drive, I mean the drive I:\. But youâll have to change the path according to your own USB-stick!!1. Installing XAMPP (lite) on USB-stickIn this chapter weâre going to install XAMPP (lite) from apache friends on a USB-stick. XAMPP is a free software package containing the Apache HTTP Server, MySQL database and necessary tools to use the PHP and Perl programming languages. The program is released under the GNU General Public License and serves as a free, easy-to-use web server, capable of serving dynamic pages. Currently, XAMPP is available for Windows, Linux, Sun Solaris and Mac OS X (the X in its name could stand for any one of these operating systems; for example, WAMP and LAMP refer to Windows and Linux respectively).Source: https://en.wikipedia.org/wiki/XAMPP 1.1 Downloading XAMPP (lite)First, go to this address: https://www.apachefriends.org/download.html. From there scroll down to download section, youâll see three kind of packages:* Installer* ZIP archive* Selfextracting 7-ZIP archiveYouâll need the ZIP archive or the Selfextracting 7-ZIP archive.If you scroll down even more, Iâll find XAMPP lite, which is a reduced version of XAMPP, and is half the size of the full package. Here youâll need the archives too and not the installer!Now download the package you wantXAMPP (Selfextracting 7-ZIP archive)https://www.apachefriends.org/download.html?win32-1.5.5.exeXAMPP lite (Selfextracting 7-ZIP archive)https://www.apachefriends.org/download.html?win32-1.5.5.exeAnd save it to a location of your choice, though the desktop would be best for fast access and such!1.2 Installing XAMPP (lite)If youâve downloaded the ZIP file, extract it to âC:\xamppâ. If youâve downloaded the Selfextracting 7-ZIP archive, double click the file and enter âC:\xamppâ as the destination directory.Now copy the extracted xampp directory to your USB-drive, and wait till itâs done. After itâs done, go to âI:\xamppâ (Where I:\ is the USB-drive!) and double click âsetup_xampp.batâ. This will configure PHP. Though Iâm not very sure itâs needed, but it canât hurt anyway!When âsetup_xampp.batâ is done, double click âxampp-controll.exeâ. Now thereâs popping up a control panel for xampp. To test if itâs working, start the Apache server and the MySQL server, and browse to LOCALHOST/ youâll see the xampp splash screen and choose a language of your choice. Now click on âStatusâ in the left navigation panel. And check if the things are running that you want to have running. To test xampp even more, check out the demos which can be found on your left in the navigation panel.Now if itâs working, you should make xampp a bit more secure. Click âSecurityâ in the navigation panel. A new window will open and youâll see that youâre xampp installation is pretty much completely insecure! Now scroll a bit more down and youâll see a link to fix this. Yes, click it. Now you should only insert the fields in the MYSQL SECTION, and click âPassword changingâ. If youâre really paranoid with security you could also fill in the second section on that page, though I donât think it will help much. And since you arenât going to run a 24/7 server on a USB-stick, at least I hope for your visitors, you donât have to be 100% secure!Now youâre done setting up XAMPP (lite) on a USB-stick. And you can put your webpages and such in âI:\xampp\htdocs\â. Also you can remove the files and directories from htdocs since they arenât needed anymore.2. Installing WOS Portable on USB-stickIn this chapter weâre going to install WOS Portable on a USB-stick. WOS stands for Webserver On Stick, and as the name says, itâs intended to be ran from a USB-stick. An Apachewebserver with PHP and MySQL develops its full power now on every USB Stick on the world. Faithful to the Plug&Play motto:"Plug in and Play"(Here it really works ;-)Just plug in your USB stick in any Windows ÂŽ computer. A complete Apache webserver with PHP and MySQL starts. And you can enjoy the full power of WOS (Webserver on Stick).Source: http://forums.xisto.com/no_longer_exists/ 2.1 Downloading WOS PortableFirst surf to http://forums.xisto.com/no_longer_exists/ which is the page for WOS Portable. On the left navigation panel click âdownloadâ. Now youâre prompted with a WOS X page, but we donât what that because itâs much bigger than WOS Portable. So click âNo thanks, take me to the downloadâ button. Now if you already own a WOS Portable package you can choose to upgrade or to obtain a new package. For this guide, weâre going to click the âI do not have a WOS Portable II Package and want to obtain a new packageâ radio button, then we click go. Now weâre prompted with a package choose menu kind of thing, we have to select a few packages. For this example weâll only take the âApache2_SE, MySQL5_SE and PHP4/5_SEâ. Itâs your choice to choose PHP4, PHP5 or both. âSE stands for Small Editionâ. Now when you scroll down, youâll be seeing a calculator for the size of the packages, which is pretty handy since no USB-stick has the same capacity. So take a good look at it, that you donât exceed you USB-sticks capacity! When your satisfied with you selections click the âDownload nowâ button. Now you can download the file, save it to a location of your choice and wait till itâs done downloading.2.2 Installing WOS PortableOk, weâre done downloading. Now extract the âwosportable.zipâ file to âC:\wosportableâ. Go to the wosportable dir and take a look, you see that there are three (3) files with the extension â.wosâ these are package files which are unpacked and installed with âwos.exeâ. So, double click âwos.exeâ. Choose a language, weâre going for the English language. Youâre now prompted with a screen where youâll find your chosen packages from the website, just click âInstallâ at the bottom right. When itâs done youâll see the server screen, click end. Now copy the wosportable directory (âC:\wosportableâ) to your USB-stick (âI:\wosportableâ). This might take some time depending on your USB transfer speed and such. Ok, when itâs done, double click âwos.exeâ on your USB-stick, the server is started immediately, and your browser will popup. When the browser fails to load the first time, just hit the refresh button. Now youâre done installing WOS Portable!2.3 Upgrading WOS PortableAs you might have seen we forgot to get âPHPMyAdminâ with WOS Portable. Just go to http://forums.xisto.com/no_longer_exists/ again, and click download on the left navigation menu, click the âNo thanks, take me to the downloadâ button, now click he first radio button with âI have already a WOS Portable II Package and want to update itâ, and click go. Scroll down till you find âPHPMyAdminâ and click âdownload nowâ. Just save it to your USB-stick in the folder âwosportableâ! If you have the WOS Portable server still running end it by clicking on âEndâ in the server screen thing. And restart âwos.exeâ, now you see that you can install âPHPMyAdminâ just click install. This might take some time! When itâs done it will start the server automatically. Now browser to localhost/phpmyadmin to verify the installation. And youâre done.3. Last word from meAll this could be done with much more packages, but I donât have them all you see. And since these two plus the writing took me almost two days, it wouldnât be smart to take 100 WAMP packages! I hope you like my guide and that you can learn something from it. I made it with love so treat it with love! Also, Iâm sorry I didnât use any pictures in here, but since working on a laptop isnât really comfortable for me I just skipped them. Maybe when my PC is fixed, Iâll edit it and add pictures!When I have my PC up and running again, Iâll be making the same guide but then for Linux, I hope!bakr_2k5 Share this post Link to post Share on other sites
bluefish1405241537 0 Report post Posted February 20, 2007 This is awesome! It's just what I've been looking for. I work on a variety of different computers, and it's very annoying to have to set up servers on each one and make sure that I'm using the newest version of the server. It's great that you know these programs. I used WAMP5 before, and it's all right, but it went kind of weird on Windows 2000 (I'm not sure if it was just the version of Windows, but there was a bug). XAMPP seems to be better, with more features (not that I really need it - I'm a down-to-the-basics kind of guy, but it's handy all the same). And WOS is a real discovery. Kudos to you for bringing this to my (and hopefully other people's) attention! Share this post Link to post Share on other sites
iGuest 3 Report post Posted April 28, 2008 Excellent post. I've just come across it and wish I'd seen it a few weeks ago when I was setting up Apache, PHP and MySQL on my laptop. Never mind. I'm going to try installing XAMPP on a usb stick. If it fails I'll use WOS instead. I want to create a portable version of my work journal, this seems like just the thing.Thanks! Share this post Link to post Share on other sites
herper 0 Report post Posted April 14, 2009 the only thing i find wrong with this so far is why don't you just extract it directly to the jump drive to save the time??I may be missing something though. Share this post Link to post Share on other sites
Staldon 0 Report post Posted April 18, 2009 (edited) For setting up a portable server I would recommend Server2Go. It has been specially made for setting up quick portable server. You can show your web applications directly from the CD or if you have it on USB you can work on it right away without installing or setting up anything. It does include the basic necessities like Apache, PHP, MySQL, Mod Rewrite, GDLib and other extensions for PHP. Edited April 18, 2009 by Staldon (see edit history) Share this post Link to post Share on other sites
yordan 10 Report post Posted April 18, 2009 I would say that portable XAMPP is the best solution for this. You get it from here : http://portableapps.com/apps/development/xampp XAMPPthe complete, portable serverXAMPP is an integrated server package of Apache, mySQL, PHP and Perl (the AMPP in XAMPP) that all run from a removable drive. Everything is pre-configured and ready to go just by unzipping or installing it. Share this post Link to post Share on other sites
iGuest 3 Report post Posted May 25, 2011 Great article!Run A Webserver From Usb-stick On Windows GuideThank you! I really needed a fast way to setup a portable server, MoWEs was the answer!Just a comment, in the article it seems as if you're suggesting that both HAVE to be installed, it could help for you to clarify these are alternatives and not both required.Other than that, great job! -reply by Rafa Share this post Link to post Share on other sites