|
UniServer CD: Introduction | Components |
|
| Uniform Server 4.1-Mona UniServer CD |
UniServer CD plugin
The following plugin turns Uniform Server 4.1-Mona into a working CD development system. I have covered this to a certain degree in the Oily-Rag 1 series, however never got around to producing a complete plugin. This plugin addresses that by assembling all components required into a functional product.
Strictly speaking it’s not a true plugin because it irreversibly modifies the original server into a dedicated CD development system.
Portable Firefox has been integrated into this plugin providing a consistent method for displaying content and removing the need to use a host PC's browser.
Similarly the need to use a host PC,s "hosts" file to resolve local Internet addresses has been replaced with a PAC file (my_hosts.pac). Firefox has been pre-configured to look in the root folder www for this file.
The above provides a working environment that mimics CD operation. The development system is fully portable copy folder UniServer and all its content to any location and you are ready to continue development from that new location.
Burning CD’s for testing is environmentally unfriendly and time consuming a better method is to copy the entire contents of folder udrive to a USB memory stick. Simulate a CD by setting all folders and files to read only access and perform a dry run.
When you are ready, burn the entire content of folder udrive to a CD.
Options 1:
Options 2:
With the plugin installed Uniform Server becomes a complete CD development system.
Install packages as required, procedure is identical to a standard installation of Uniform Server.
Note: When run from a CD the servers will automatically start.
After completing development before burning to a CD it is best to perform a dry run on a USB stick.
Copy the entire content of folder udrive to the top-level of a USB memory stick
Set all folders and files to have read only permission (simulates a CD)
Start Servers:
Using a USB memory stick the servers will not automatically run, inserting the memory stick a pop-up is displayed click ok to run.
Alternatively double click on file AutorunPro.EXE, for testing this removes the need for re-inserting the memory stick (Its this file that is automatically run from a CD)
After a successful test you can burn the entire content of folder udrive to a CD or DVD.
One thing to remember even when run from a CD these are live servers, as a consequence the servers will fail to start if the host machine has servers running on the standard ports. In addition if the host is running PHP with eAccelerator again Uniform Server will fail.
A solution is to close any sunning servers on a host machine. However this may be inconvenient hence preferred solution is to move Uniform Server to different ports before burning a CD.
Uniform Server has a pre-installed plugin that moves the servers to different ports and an option to disable eAccerator note it also updates portable Firefox to these new ports.
Note: Run the script before adding applications, take a note of each new value displayed these will be required when installing new application.
Uniform Server provides an option to change the temporary folder created on the host PC. You can change both the drive and folder name used. In addition disable copying of the MySQL databases.
Note:
Majority of applications that use a MySQL database cannot run directly from a CD they require write access hence the need to copy over the database. That said it is relatively quick to switch between copy and no-copy and perform a dry run on a USB memory stick to determine if an application will directly run from a CD.
Switching and change Temp folder
To all intense and purpose development of a CD is straightforward however you may want to tailor the system for your specific use. The next page describes components used and how to modify or update them.