PHP / SQL development environment on USB flash drive (OS independent)

1

I am looking for a way to set up a development environment for web applications (using PHP and either MySQL or SQLite) on a USB flash drive: that means at least a web server, a database manager and hopefully an IDE to work on the application.

Now my problem is that I work on several computers with different OS (mainly Windows 7 and Linux). This requirement renders most of the solutions I found very difficult to implement, because it usually ends up by installing every software twice (one for each OS) without mentioning the config problems.

Is there a way to get around this ?

As I looked for OS independent software to do this, I thought of Java: is it possible to manage this with Java based software (which ones ?) and will it work no matter the OS ?

Related questions that I found here:

Aabaz

Posted 2011-09-06T09:03:28.150

Reputation: 111

Answers

1

The only solution I can think of would be virtualization. Sun Virtualbox runs on pc/max and linux. If you created a vm on your flash drive, theoretically, you would be able to take that to your other workstation and load it. Then it would simply be a matter of installing your web stack and development tools. The OS that makes the most sense logistically for this is a really stripped down linux.

gview

Posted 2011-09-06T09:03:28.150

Reputation: 506

Thanks for your answer, I tried that a while ago with Ubuntu but it was really (really) slow and took ages to boot up. Do you think it depends on the system installed on the flash drive (maybe Ubuntu is too bloated) or on the performance of the host system ? – Aabaz – 2011-09-06T09:41:49.540

Probably a little of both. Virtualization is not going to be as fast as native, but that's the cost of portability. You also need enough memory and cpu power on the hosts to be able to keep the guest in memory. Personally I only have the server components in virtualbox, and have dev tools on my workstations where i want the performance and responsiveness. The code stays in version control so i can sync things that way. – gview – 2011-09-06T17:21:23.373

1

The only way i see OS independence is to use a portable windows versions of what you need, and run the software in linux on wine.

Alternately, run a server (VM or physical) for development, use local versions of the tools in question, and upload it to the server, which should hugely simplify things. If its within a lan, use remote access for the tools you need. In short have one workspace and use your other systems as thin clients to it.

Journeyman Geek

Posted 2011-09-06T09:03:28.150

Reputation: 119 122

-1

Try Eclipse which is best for the Mysql and Php development. Looking forward for your reply, Hope it helps.

Elsner Technologies

Posted 2011-09-06T09:03:28.150

Reputation: 124

1

Thank you for your answer. This is a seven year old question, and it asks for a web server and a database manager which are OS-independent and how to set these up. Saying "use Eclipse" doesn't provide an answer, at least as I interpret the original question. If you are going to recommend software, please read how to recommend software in answers, particularly the bits in bold; then edit your answer to follow the guidelines there.

– bertieb – 2019-05-23T10:56:58.467