Why have a complete WebServer in a pendrive?
are several reasons:
- You may be making a demonstration in a company and does not want to take an entire notebook.
- You use several different computers and want to have a work environment always close by (regardless of having internet or not on site)
- have some web applications running locally , etc. [/ list]
In my case, I did not follow the tips of [url=http://www.firepages.com.au/php_usb.htm]link since I had the amp running on my home machine, I just copied the Apache, PHP and MySQL and changed the paths of the Apache httpd.conf . The rest, it worked straight that it is a marvel.
After "lifted" all manually system, I created a PHP script that runs all servers. (I rely on the tip)
start.batStart.php ]/pdrive/php/php.exe -c /pdrive/php/php.ini -f /pdrive/start.php
That's it guys. Now I have a portable webserver in the pendrive, and of course, other portatis programs very useful as<? echo "starting MySQL ....\n"; pclose( popen( 'start \\pdrive\\mysql\\bin\\mysqld-nt.exe --basedir=/pdrive/mysql --datadir=/pdrive/mysql/data --port=3306 --console --standalone' ,'r' ) ); echo "starting apache....\n"; flush(); pclose(popen('start \\pdrive\\apache\\apache.exe','r')); flush(); sleep(5); echo 'opening localhost'; exec( 'start http://localhost:80'); ?>
- notepad ++
- NVU
- Portable Firefox
- Putty
- WSFTP, and there goes ... [/ list]
: -O