here is the answer of your *portable wamp* problem. this is sort term solution from me. follow my step.
1.) right-click "wamp server icon" in the system tray and then click "exit", if your wamp still run.
2.) make a backup of your wamp
3.) open notepad++ (not notepad). if you don't have notepad++, get it from [
sourceforge.net], and then install it.
.... i use version 5.6.6. if yours doesn't appears or behaves like mine, you should update yours.
.... you can use another text editor with regular expression and recursive find capabilities.
4.) click "menu seach" -> "find in files..." or press "Ctrl+Shift+F"
5.) if you install wamp in "C:\wamp", fill "find what" box with "C: ([/\\])wamp".
.... (note: replace the space between ":" and "(". i add space because if not, it will appear like this:
)
.... or, if you install wamp in "D:\path\to\wamp", fill "find what" box with "D: ([/\\])path[/\\]to[/\\]wamp".
.... (note: replace the space between ":" and "(". i add space because if not, it will appear like this:
)
.... if you don't understand regular expression, ask sameone.
6.) if you want to move to "E:\new\path\of\wamp", fill "replace with" box with "E:\1new\1path\1of\1wamp".
.... or, if you want to move to "F:\the\pendrive\wamp", fill "replace with" box with "F:\1the\1pendrive\1wamp".
7.) fill "Filters" box with "*"
8.) if you install wamp in "C:\wamp", fill "directory" box with "C:\wamp".
.... or, if you install wamp in "D:\path\to\wamp", fill "directory" box with "D:\path\to\wamp".
9.) click "regular expression" circle.
10.) click "replace in files" button, then, click "OK" botton if alert appears.
11.) if you want to move to "E:\new\path\of\wamp", move the whole installation to "E:\new\path\of\wamp".
...... or if you want to move to "F:\the\pendrive\wamp", move the whole installation to "F:\the\pendrive\wamp".
the path configuration is finish!
in every computer which you want to run wamp:
12.) find "uninstall_services.bat" file in the root of wamp installation, and then double click it.
13.) find "wampmanager.exe" file in the root of wamp installation, and then double click it.
14.) click "wamp server icon". traverse the menu "apace" -> "service" -> "install servise", and then click that menu.
15.) click "wamp server icon". traverse the menu "mysql" -> "service" -> "install servise", and then click that menu.
the service configuration is finish!
if your pendrive letter different in every computer, each time you plug the pendrive in, you should do path configuration.
tips:
*) before you do path configuration, i recommend you to move "www" folder and "data" folder (in "{wamp root}\bin\mysql\mysqlx.x.xx" folder) outside wamp root folder, temporarily. notepad++ will scan all wamp subdirectory. the more files and/or the bigger database objects which you have, the more time notepad++ will consume. after you do path configuration, you should restore these folder location.
*) as an alternative, you can put "www" folder outside wamp root directory permanently, but you sould configure "httpd.conf" file in "{wamp root}\bin\apache\Apache2.2.11\conf" directory manually. find line with string "DocumentRoot "{pendrive letter}:/wamp/www/"" and line with string "<Directory "{pendrive letter}:/wamp/www/">", and change with new "www" folder path. meanwhile, you can do same thing with your "data" folder. open "my.ini" file in "{wamp root}\bin\mysql\mysqlx.x.xx" folder. find line with string "datadir={pendrive letter}:/wamp/bin/mysql/mysql5.1.36/data", and change with new "data" folder path. unfortunately, you must change this {pendrive letter} each time you plug the pendrive in.
*) files contain wamp path are just some. you don't have to backup whole wamp, just for do path configuration. you can find these files with the same procedure for configure the path. in step 10th, click "find all" button. you will see a list of all files contain the string which you search in the bottom. if the list is to long. right-click in that list, and then click "collapse all" menu. you just have to backup these files outside the wamp folder.
this procedure is still unoptimized. next time, i will write optimized procedure (or script to automate this procedure).
in first line, i write this is short term solution. weather i write optimized procedure (or script) or not, this is not true solution. what i mean of true solution is the change of "wampmanager.exe" behaviour. in my mind, "wampmanager.exe" should check the correctness of these paths in every configuration files which it reads and in the windows registry in early step. if the paths are not correct, it must correct these. another usual steps continue that step.