Author Topic: Webserver On a Thumb Drive?  (Read 2026 times)

0 Members and 1 Guest are viewing this topic.

Offline Sandwich

  • Got Screen?
  • 213
    • Skype
    • Steam
    • Twitter
    • Brainzipper
Webserver On a Thumb Drive?
Would anybody have any ideas how I can get a typical USB thumb drive to work as a PHP/MySQL webserver, so I can take it in to another computer and load up a dynamic site in a browser? I have an inkling that it's impossible, but can't hurt to ask.
SERIOUSLY...! | {The Sandvich Bar} - Rhino-FS2 Tutorial | CapShip Turret Upgrade | The Complete FS2 Ship List | System Background Package

"...The quintessential quality of our age is that of dreams coming true. Just think of it. For centuries we have dreamt of flying; recently we made that come true: we have always hankered for speed; now we have speeds greater than we can stand: we wanted to speak to far parts of the Earth; we can: we wanted to explore the sea bottom; we have: and so  on, and so on: and, too, we wanted the power to smash our enemies utterly; we have it. If we had truly wanted peace, we should have had that as well. But true peace has never been one of the genuine dreams - we have got little further than preaching against war in order to appease our consciences. The truly wishful dreams, the many-minded dreams are now irresistible - they become facts." - 'The Outward Urge' by John Wyndham

"The very essence of tolerance rests on the fact that we have to be intolerant of intolerance. Stretching right back to Kant, through the Frankfurt School and up to today, liberalism means that we can do anything we like as long as we don't hurt others. This means that if we are tolerant of others' intolerance - especially when that intolerance is a call for genocide - then all we are doing is allowing that intolerance to flourish, and allowing the violence that will spring from that intolerance to continue unabated." - Bren Carlill

 
Webserver On a Thumb Drive?
I am 99% sure its impossible....i thought of something similiar once.....but since you cant run server software on a thumb drive its impossible.

 
Webserver On a Thumb Drive?
Unless of course you loaded the server software on the target machine, but is that probably defeats the purpose of what your trying to do...

 
Webserver On a Thumb Drive?
A drive isn't a processor, you're only bet  is getting a big drive, a Linux distro, and boot from the thumbdrive into a linux distro running all your stuff.
just another newbie without any modding, FREDding or real programming experience

you haven't learned masochism until you've tried to read a Microsoft help file.  -- Goober5000
I've got 2 drug-addict syblings and one alcoholic whore. And I'm a ****ing sociopath --an0n
You cannot defeat Windows through strength alone. Only patience, a lot of good luck, and a sledgehammer will do the job. --StratComm

 

Offline Sandwich

  • Got Screen?
  • 213
    • Skype
    • Steam
    • Twitter
    • Brainzipper
Webserver On a Thumb Drive?
I guess it would require there being some sort of standalone Apache "program" that one could run that would map http://127.0.0.1/ to a folder.
SERIOUSLY...! | {The Sandvich Bar} - Rhino-FS2 Tutorial | CapShip Turret Upgrade | The Complete FS2 Ship List | System Background Package

"...The quintessential quality of our age is that of dreams coming true. Just think of it. For centuries we have dreamt of flying; recently we made that come true: we have always hankered for speed; now we have speeds greater than we can stand: we wanted to speak to far parts of the Earth; we can: we wanted to explore the sea bottom; we have: and so  on, and so on: and, too, we wanted the power to smash our enemies utterly; we have it. If we had truly wanted peace, we should have had that as well. But true peace has never been one of the genuine dreams - we have got little further than preaching against war in order to appease our consciences. The truly wishful dreams, the many-minded dreams are now irresistible - they become facts." - 'The Outward Urge' by John Wyndham

"The very essence of tolerance rests on the fact that we have to be intolerant of intolerance. Stretching right back to Kant, through the Frankfurt School and up to today, liberalism means that we can do anything we like as long as we don't hurt others. This means that if we are tolerant of others' intolerance - especially when that intolerance is a call for genocide - then all we are doing is allowing that intolerance to flourish, and allowing the violence that will spring from that intolerance to continue unabated." - Bren Carlill

 
Webserver On a Thumb Drive?
I think the main issue is storage!=processing.

You need to process stuff to make it dynamic, therefore, you need software installed on some computer.
just another newbie without any modding, FREDding or real programming experience

you haven't learned masochism until you've tried to read a Microsoft help file.  -- Goober5000
I've got 2 drug-addict syblings and one alcoholic whore. And I'm a ****ing sociopath --an0n
You cannot defeat Windows through strength alone. Only patience, a lot of good luck, and a sledgehammer will do the job. --StratComm

 

Offline aldo_14

  • Gunnery Control
  • 213
Webserver On a Thumb Drive?
Hmm.... what are you trying to do, exactly?  Dynamically generate content off of a USB drive and view it on a local PC?

(i.e. instead of from remote server, take it from a local server using the USB drive data?)

 

Offline Martinus

  • Aka Maeglamor
  • 210
    • Hard Light Productions
Webserver On a Thumb Drive?
[color=66ff00]Looked into thumbdrive distro's a while back and their issues, you need to be careful with the application; thumbdrives have a limited read write life which certain applications can murder.

Offhand I can only remember featherlinux. You get a surprising amount of applications in one of those. Hmmm, Knoppix boots off a CD and might have what you need, they push everything under the sun into one of those ISO's. :nod:
[/color]

 

Offline Sandwich

  • Got Screen?
  • 213
    • Skype
    • Steam
    • Twitter
    • Brainzipper
Webserver On a Thumb Drive?
Quote
Originally posted by aldo_14
Hmm.... what are you trying to do, exactly?  Dynamically generate content off of a USB drive and view it on a local PC?

(i.e. instead of from remote server, take it from a local server using the USB drive data?)


I have a prototype website I'm building in PHP with a MySQL database tie-in. I'd like to take it to the client's offices to show them, but they do not have any computers with Apache or the equivalent installed. And let's just say that for the sake of argument, I can't upload it anywhere.
SERIOUSLY...! | {The Sandvich Bar} - Rhino-FS2 Tutorial | CapShip Turret Upgrade | The Complete FS2 Ship List | System Background Package

"...The quintessential quality of our age is that of dreams coming true. Just think of it. For centuries we have dreamt of flying; recently we made that come true: we have always hankered for speed; now we have speeds greater than we can stand: we wanted to speak to far parts of the Earth; we can: we wanted to explore the sea bottom; we have: and so  on, and so on: and, too, we wanted the power to smash our enemies utterly; we have it. If we had truly wanted peace, we should have had that as well. But true peace has never been one of the genuine dreams - we have got little further than preaching against war in order to appease our consciences. The truly wishful dreams, the many-minded dreams are now irresistible - they become facts." - 'The Outward Urge' by John Wyndham

"The very essence of tolerance rests on the fact that we have to be intolerant of intolerance. Stretching right back to Kant, through the Frankfurt School and up to today, liberalism means that we can do anything we like as long as we don't hurt others. This means that if we are tolerant of others' intolerance - especially when that intolerance is a call for genocide - then all we are doing is allowing that intolerance to flourish, and allowing the violence that will spring from that intolerance to continue unabated." - Bren Carlill

 
Webserver On a Thumb Drive?
Knoppix, or some other LiveCD.

It'll allow you to use the local RAM as RAM, saving your drive. You might still be safer of with a CD, though.
just another newbie without any modding, FREDding or real programming experience

you haven't learned masochism until you've tried to read a Microsoft help file.  -- Goober5000
I've got 2 drug-addict syblings and one alcoholic whore. And I'm a ****ing sociopath --an0n
You cannot defeat Windows through strength alone. Only patience, a lot of good luck, and a sledgehammer will do the job. --StratComm

 
Webserver On a Thumb Drive?
Quote
Originally posted by Sandwich


I have a prototype website I'm building in PHP with a MySQL database tie-in. I'd like to take it to the client's offices to show them, but they do not have any computers with Apache or the equivalent installed. And let's just say that for the sake of argument, I can't upload it anywhere.


Well, if you need to borrow use of a remote machine I can give you an MySQL and FTP account on my old freespaceserver  that used to hold Game Warden.

 

Offline Sandwich

  • Got Screen?
  • 213
    • Skype
    • Steam
    • Twitter
    • Brainzipper
Webserver On a Thumb Drive?
The problem with Knoppix is that I need to configure the MySQL and PHP parts of the webserver, and that configuration is not saved on disc, but on HDD.

And I have access to plenty of webservers online that I could potentially use, I just was wondering if there was a USB drive way to accomplish the goal. Guess not, though.
SERIOUSLY...! | {The Sandvich Bar} - Rhino-FS2 Tutorial | CapShip Turret Upgrade | The Complete FS2 Ship List | System Background Package

"...The quintessential quality of our age is that of dreams coming true. Just think of it. For centuries we have dreamt of flying; recently we made that come true: we have always hankered for speed; now we have speeds greater than we can stand: we wanted to speak to far parts of the Earth; we can: we wanted to explore the sea bottom; we have: and so  on, and so on: and, too, we wanted the power to smash our enemies utterly; we have it. If we had truly wanted peace, we should have had that as well. But true peace has never been one of the genuine dreams - we have got little further than preaching against war in order to appease our consciences. The truly wishful dreams, the many-minded dreams are now irresistible - they become facts." - 'The Outward Urge' by John Wyndham

"The very essence of tolerance rests on the fact that we have to be intolerant of intolerance. Stretching right back to Kant, through the Frankfurt School and up to today, liberalism means that we can do anything we like as long as we don't hurt others. This means that if we are tolerant of others' intolerance - especially when that intolerance is a call for genocide - then all we are doing is allowing that intolerance to flourish, and allowing the violence that will spring from that intolerance to continue unabated." - Bren Carlill

 

1-Off

  • Guest
Webserver On a Thumb Drive?
Extract THIS onto your hard-drive, copy it to the 'thumb' drive.

Then (assuming you've got a driverless USB drive) you can just plug it into a port, open the drive, double-click Start.bat and "Start MySQL Server" on the subsequent admin page, and you're good to go with a fully functional PHP/MySQL/Apache setup running off the drive.

Lord knows how fast or how stable it'll be, but it'll work [in theory].

*waits to be banned again*

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Webserver On a Thumb Drive?
You'd be much better off asking on a Linux forum...

This sounds like something someone might have done, just for amusement. I don't think you'd be able to boot directly from the thumb drive (you'd need a floppy) but it should be possible to make a distro entirely on the thumb drive that does what you want (mounted read-only and using a ramdisk for all file writing needed) - and just have the boot loader on a floppy.

The question is whether or not that exists atm...
-C

 

Offline Sandwich

  • Got Screen?
  • 213
    • Skype
    • Steam
    • Twitter
    • Brainzipper
Webserver On a Thumb Drive?
Quote
Originally posted by 1-Off
Extract THIS onto your hard-drive, copy it to the 'thumb' drive.

Then (assuming you've got a driverless USB drive) you can just plug it into a port, open the drive, double-click Start.bat and "Start MySQL Server" on the subsequent admin page, and you're good to go with a fully functional PHP/MySQL/Apache setup running off the drive.

Lord knows how fast or how stable it'll be, but it'll work [in theory].

*waits to be banned again*


an0n?? :wtf:

That project is precisely what I was looking for. :yes: It works beautifully - danke sheun! :)
SERIOUSLY...! | {The Sandvich Bar} - Rhino-FS2 Tutorial | CapShip Turret Upgrade | The Complete FS2 Ship List | System Background Package

"...The quintessential quality of our age is that of dreams coming true. Just think of it. For centuries we have dreamt of flying; recently we made that come true: we have always hankered for speed; now we have speeds greater than we can stand: we wanted to speak to far parts of the Earth; we can: we wanted to explore the sea bottom; we have: and so  on, and so on: and, too, we wanted the power to smash our enemies utterly; we have it. If we had truly wanted peace, we should have had that as well. But true peace has never been one of the genuine dreams - we have got little further than preaching against war in order to appease our consciences. The truly wishful dreams, the many-minded dreams are now irresistible - they become facts." - 'The Outward Urge' by John Wyndham

"The very essence of tolerance rests on the fact that we have to be intolerant of intolerance. Stretching right back to Kant, through the Frankfurt School and up to today, liberalism means that we can do anything we like as long as we don't hurt others. This means that if we are tolerant of others' intolerance - especially when that intolerance is a call for genocide - then all we are doing is allowing that intolerance to flourish, and allowing the violence that will spring from that intolerance to continue unabated." - Bren Carlill

 

Offline IceFire

  • GTVI Section 3
  • 212
    • http://www.3dap.com/hlp/hosted/ce
Webserver On a Thumb Drive?
WOW...I'm in awe!
- IceFire
BlackWater Ops, Cold Element
"Burn the land, boil the sea, you can't take the sky from me..."

 

1-Off

  • Guest
Webserver On a Thumb Drive?
See, I do have my non-destructive uses.

Incidentally, you didn't ban my IP, you banned the local subnet exchange thingy's IP - it's semi-transparent as a security precaution - which means you've banned a large part of North Eastern UK. Good going :yes:

 

Offline Sandwich

  • Got Screen?
  • 213
    • Skype
    • Steam
    • Twitter
    • Brainzipper
Webserver On a Thumb Drive?
So tell me then, why do you keep on doing things that get you banned?
SERIOUSLY...! | {The Sandvich Bar} - Rhino-FS2 Tutorial | CapShip Turret Upgrade | The Complete FS2 Ship List | System Background Package

"...The quintessential quality of our age is that of dreams coming true. Just think of it. For centuries we have dreamt of flying; recently we made that come true: we have always hankered for speed; now we have speeds greater than we can stand: we wanted to speak to far parts of the Earth; we can: we wanted to explore the sea bottom; we have: and so  on, and so on: and, too, we wanted the power to smash our enemies utterly; we have it. If we had truly wanted peace, we should have had that as well. But true peace has never been one of the genuine dreams - we have got little further than preaching against war in order to appease our consciences. The truly wishful dreams, the many-minded dreams are now irresistible - they become facts." - 'The Outward Urge' by John Wyndham

"The very essence of tolerance rests on the fact that we have to be intolerant of intolerance. Stretching right back to Kant, through the Frankfurt School and up to today, liberalism means that we can do anything we like as long as we don't hurt others. This means that if we are tolerant of others' intolerance - especially when that intolerance is a call for genocide - then all we are doing is allowing that intolerance to flourish, and allowing the violence that will spring from that intolerance to continue unabated." - Bren Carlill

 

1-Off

  • Guest
Webserver On a Thumb Drive?
Because of the 'Circle Jerk Effect'.

Whereby - being generally pussies - the collective asshattery of the Admin staff results in my innocuous jokes being taken as intentional slander.

From there it progresses into a group therapy session before Shrike comes along and goes "Christ! Just ban him, you bunch of little goddamn girls..."

In short: It's everbody's fault but my own.

 

Offline redsniper

  • 211
  • Aim for the Top!
Webserver On a Thumb Drive?
It is an0n. I guess I was wrong in the other thread. Welcome back. (don't know for how long)
Whoa... post # 1337 :arr:
"Think about nice things not unhappy things.
The future makes happy, if you make it yourself.
No war; think about happy things."   -WouterSmitssm

Hard Light Productions:
"...this conversation is pointlessly confrontational."