Click to See Complete Forum and Search --> : Portable PHP?
Pc_Madness
Aug 1st, 2005, 08:20 PM
lol, it so doesn't exist, but I figured I should ask.
If I was to make a Code Snippet Library app thing that was web based, would I some how be able to stick it onto my USB Key without having to install Apache and PHP on every machine I wanted to view it on? I guess I'd need Portable MySQL as well. :p
I know you can create PHP executables, but I don't think they'd be able to parse my php pages and show them in a browser that I can surf :(
ninjanutz
Aug 1st, 2005, 09:50 PM
if it does exist that would be awesome
Pc_Madness
Aug 1st, 2005, 10:47 PM
http://www.webservusb.com/
Damnit, if only it was free. :( Probably approaching this in the wrong way, I need to look for portable web servers...
visualAd
Aug 2nd, 2005, 02:38 AM
I have Apache, MySql, PHP 4 and PHP 5 all running off my USB disk I type. Its completely portable. The trick is, is to set all the file paths in the configuaration files relative to the root of the USB disk. I.e: the entire path without the drive letter e.g. \programs\apache\apache2.
I have attached the httpd.conf config file I use for my portable version of Apache as an example.
This is a subject I hope to be writing another tutorial on in the near future. :p
Pc_Madness
Aug 2nd, 2005, 08:32 PM
Do you have logging turned off and stuff like that? I don't really want it to be writing stuff to my USB Key when it doesn't have to. :(
Edit: Hurry up visualDad and gimmie a tutorial or something. :( Why must people be offline when I get interested in something? :p
visualAd
Aug 4th, 2005, 01:17 PM
I actually keep the loggin on, I have a 1Gb USB disk so don't really care if there is a 1Mb log on my disk :D. But, it can be turned off, PHP can be configured use a temporrary directory which is on the USB drive when creating files and Apache can run standalone instead of as a service.
Pc_Madness
Aug 5th, 2005, 02:16 AM
I actually keep the loggin on, I have a 1Gb USB disk so don't really care if there is a 1Mb log on my disk :D. But, it can be turned off, PHP can be configured use a temporrary directory which is on the USB drive when creating files and Apache can run standalone instead of as a service.
USB drives are only good for so many writes... 10,000 to a 100,000 or something and then they're no good, so I dunno, will have to look into it and see what files Apache changes while running and then start looking at PHP and MySQL
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.