Making PHP development portable

Ralph van den Berg's picture

I’m not sure on what nerd-level you put yourself, but I feel sincerely handicapped if I don’t have my computer at my disposal with my code editor and apache service running. It happens quite often that I come up with new ideas for programming or I just have the urge to test something out, and I’m on a computer where it’s not feasible to install all the software and services I need to test these things out. I actually have a couple pages in a notebook (the paper kind) covered with code snippets. I give you the solution.

You can have all the software and services running off of a flash drive, which will work as a plug-n-play wherever you are. You can find everything you need, and much more, from PortableApps.com. For your graphic-design needs: Gimp Portable. For coding, with all the syntax highlighting glory: Notepad++ Portable. For your localhost php server: XAMPP (not portable by name, simply install on the root of your flash drive. The only problem is changing the config files every time Windows assigns your thumb drive a new letter).

There are many more apps you can install on your flash drive, such as OpenOffice Portable, AutoHotKeys (I like!), Firefox Portable, Thunderbird Portable, and a range of useless crap: i.e. games. These all make life easier, in that instead of lugging your laptop around, you just take your thumb drive and plug it into any Windows machine and run your favorite apps with your settings, leaving no traces on the host computer.


Comments

Ralph van den Berg's picture

Almost Forgot: FileZilla

I forgot to mention that you can also add FileZilla Portable to your thumb drive!

...Almost feels like I don't need a computer anymore...

---Ralph van den Berg
visit RalphvandenBerg.com

Ralph van den Berg's picture

Update: About XAMPP installation

One way to fix the problem of the drive letters for your XAMPP installation is to change the letter to something like 'X' before installing XAMPP. Then, on other machines, before you try to start the apache service and mysql service, change the letter of your thumb drive to what you set it to when you installed XAMPP, in this case 'X'.

I've done this, and it works great. Another thing, from my experience I've found out that it's best to install PortableApps on the root of your external drive, same as XAMPP. I had some of it in sub-folders before, and I was having performance problems, and errors here and there.

---Ralph van den Berg
visit RalphvandenBerg.com

bigsimon's picture

XAMPP

One time i try to run a website on USB Key with XAMPP .. so slow !! MySQL ... not a success story :)

Ralph van den Berg's picture

True

It's true about being slow. What I actually started doing is keeping a XAMPP lite installer on the thumb drive, and not respecting other people's computer and going against most of what I've said before and installing it anyway.

The original point I was trying to make before was more along the lines of "in case of emergency" so speed shouldn't be important, just be happy with what you got...

---Ralph van den Berg
visit RalphvandenBerg.com