Wiki ⇒ Build local server ⇒ Install onto a thumb drive or non-connected laptop ⇒ CPG Dragonfly™ CMS
8. 6: Install onto a thumb drive or non-connected laptop
These instructions, when appropriately modified to your specific situation, will intall any PHP/MySQL driven app such as Dragonfly or a bulletin board or a gallery or a shopping cart, onto any drive - such as a thumb drive (some call them jump drive, flash drive, etc.) or the hard drive of a laptop that is not connected to the Internet so the app can be run as an offline demo.
A "virtual drive" will act as its own server using Mambo Stand Alone Server. At the time these instructions were written, the latest version of the installer was MSAS v 4.5.2
1) Download the MSAS 4.5.2 Installer from:
You may have to pasre that address back until you get to an updated version.
2) If you are like me, your download will default to your desktop.
3) If you intend to install on a thumb drive it should be plugged in and recognized at this time. I'm using a 1gig Lexar Jump Drive which offers me a public drive and a secure, password-protected drive. The drive names used in this tutorial will depend on what other drives are on your hard drive. In my case, the jump drives are F (open drive) and G (secure drive). I'm going to install the demo onto G because I have configured it as the larger of the two drives - and because that is a password secured drive. Just keep in mind that your own jump drive letters may vary.
4) after the download is complete, and you are still connected to the internet, launch the recently downloaded MSAS installer. Pay attention to where the installer wants to put the MSAS itself. Do not accept the default that will want to install it into
I changed it to G:\MSAS.
5) After the installation is complete remain connected to the Internet. You will want the browser open when you do the later steps so you may as well leave it open now.
6) use the MyComputer file manager to open the directory of files that are on Drive G.
7) open the MSAS folder and click on the msas452.exe file. (ignore the config file - it will be invoked automatically)
8) a "first time" dialog will open. Take note of what it says and then proceed. I mean write it down. You may be prompted for it in some circumstances.
9) The config file will now kick in and ask you to choose a drive in which the demo will operate. I chose "Z". I consider this a virtual drive because it can be seen in the file directory ONLY when MSAS is active. That's a point to rememebr later.
10) MSAS should now be active and providing a localhost server running in this Drive Z. You can confirm this by looking at the file directory. Take note that the last folder in drive Z is "www." You will install your program (bulletin board, store, gallery, etc.)into that folder. 11) in www create a folder and name it whatever is appropriate. In my case it was "Demo" for the shopping cart that I want to show off without having to be connected to the Internet.
11) move all the program's files into Demo. Paste them or drag and drop them. Pay attention that you are not moving the top level folders from the download. Just move the folders and files for the prog itself, just as if you were putting them onto a live online server.
12) return to the open MSAS window and click on PHP MyAdmin.
13) in PHP MyAdmin, in the blank field beneath "Create new database," I put "demodb" and clicked "create".
14) at the top of the next screen click on "localhost." That will bring you back to the same screen for "create" but don't be confused. You have created the new dB. But now you must grant access to some one to use this new dB.
15) part way down the list below where you created the new dB, click on "Privileges".
16) when the screen changes, you will note "Add a new User" roughly in the center of the screen. Click on it.
17) a dialog called "Login Information" will open. fill the fields as follows: User name: demouser (or whatever you want for yourself) Host: click on the down arrow and choose "local" it will become "localhost" Password: pw (note: the thumb drive I'm using is encrypted so the app-pw can be that simple). Re-type: pw
YOU ARE NOT DONE YET WITH THIS SCREEN
18) click on "Check All"
19) Scroll down and click on "go" At this point you are ready to setup the store. You will note that your browser's URL is showing "http://localhost:85/admin/phpMyAdmin/"
20) copy that URL into the clipboard.
21) If you are using Firefox, the next step is easier. Open a new tab. If you are using MS/IE, open a new browser window. Paste the URL into the address field of this new tab or window but do not launch it.
22) edit that URL to http://localhost:85/demo/install/ and launch it. (Some progs have an index.php file that will be invoked but some may require a more complete path that includes a file name such "install.php". This assumes your program has an installer. If not, the intall ation probably offers you a config file that must be edited to accomplish the same thing. in which case, skip to step 24.
23) If your program has an installer, you now should be at Step One of its installer. Click your way through. Fill in the fields using the data you created - keeping in mind that the server is localhost. And in my case I used demo, demodb, demouser and pw in the appropriate fields. I repeated them for the Admin setup. Again, because this is not a live site, security is not an issue.
24) Many programs do not have a step by step installer but require that you edit a Config file that may be named, in the download, something like "config.sample.php" or "config.edit.php". Then this file must be renamed "config.php" and uploaded to the server. If that's the case, install the edit file into the folder "demo" as you did all the other fiels back at step 11.
25) most installers and config files will force you to stop at this point and remove files that were used in the install. This is a security measure to deny a malaicious visitor an open back door. BY removing the installer, that door is gone. Since my demo is on a thumb drive and access to it uses an encrypted password, I don't have to worry about that. But the program may still require that I remove - or at least rename - those folders / files.
26) BEFORE YOU TRY TO OPEN THE DEMO - go back to the File Directory for Z. Find the folder "install". Do not remove it. Rename it something like "NOTinstall." You are not on the internet and there is no security risk here. By saving it under another name, you can always rename it back to "install" and reuse it, if you screw up and need to re-install, which I have a habit of doing. When you do a live installation - yes, you should remove the install folder.
27) I'm using Firefox (what else?) and so my next step is to open a new Firefox tab and open the demo.
The URL is "http:/localhost:85/demo/"
Most apps will offer an Admin Control Panel behind an address such as the ACP's address at
Remember when you want to close down and then reopen the demo, you must
a) open the jump drive,
b) launch MSAS452.exe,
c) open a browser and
d) use one of those two URLs to either open the demo or its ACP.
Good luck to all, Joe Harkins,
owner of www.buildinghosting.com
Cube Cart online stores, Open-Realty and Invision Boards
and other PHP/MySQL driven applications
installed, skinned, hosted etc. at reasonable prices
Created: Wednesday, February 22, 2006 (17:45:44) by therealjoe