https://wiki.uniformserver.com/index.php?title=UniServer_CD:_Introduction&feed=atom&action=historyUniServer CD: Introduction - Revision history2024-03-29T01:07:22ZRevision history for this page on the wikiMediaWiki 1.41.0https://wiki.uniformserver.com/index.php?title=UniServer_CD:_Introduction&diff=3696&oldid=prevRic: New page: {{Nav 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 [[Oi...2009-04-13T18:02:10Z<p>New page: {{Nav 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 [[Oi...</p>
<p><b>New page</b></p><div>{{Nav UniServer CD}}<br />
'''UniServer CD plugin'''<br />
<br />
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: CD Part 1 | 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.<br />
<br />
Strictly speaking it’s not a true plugin because it irreversibly modifies the original server into a dedicated CD development system. <br />
<br />
== Overview ==<br />
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.<br />
<br />
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.<br />
<br />
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. <br />
<br />
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.<br />
<br />
When you are ready, burn the entire content of folder udrive to a CD.<br />
<br />
== Download and Install ==<br />
'''''Options 1'':'''<br />
# Unpack a new copy of Uniform Server 4.1-Mona.<br />
# Download file '''UniServer_CD_1.0.exe''' from [http://sourceforge.net/project/showfiles.php?group_id=53691&package_id=49448&release_id=675564 Sourceforge]<br />
# Save it to folder '''UniServer'''.<br />
# To extract files, double click on file UniServer_CD_1.0.exe, no need to change the path.<br />
# A new folder mona_cd is created in the plugins folder.<br />
# New files are added to folders UniServer and udrive.<br>Note: Several Uniform Server files are updated.<br>Portable Firefox is extracted to folder udrive.<br />
# Navigate to folder UniServer and run CLEAN.bat, this removes all unnecessary files including UniController which is replaced by UniTray.<br />
<br />
'''''Options 2'':'''<br />
# Unpack a new copy of Uniform Server 4.1-Mona.<br />
# Download file '''UniServer_CD_1.0.zip''' from [http://sourceforge.net/project/showfiles.php?group_id=53691&package_id=49448&release_id=675564 Sourceforge]<br />
# Save to any folder<br />
# Extract files, navigate to folder UniServer_CD_1.0<br />
# Copy its entire contents to the installed Uniform Server folder UniServer <br />
# A new folder mona_cd is created in the plugins folder.<br />
# New files are added to folders UniServer and udrive.<br>Note: Several Uniform Server files are updated.<br>Portable Firefox is extracted to folder udrive.<br />
# Navigate to folder UniServer and run CLEAN.bat, this removes all unnecessary files including UniController which is replaced by UniTray.<br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
== Development ==<br />
With the plugin installed Uniform Server becomes a complete CD development system.<br />
<br />
Install packages as required, procedure is identical to a standard installation of Uniform Server.<br />
<br />
* '''Start Servers:''' To start the servers use '''Server_Start.bat''' this also runs UniTray<br />
* '''Stop Servers:''' Use '''UniTray''' to stop the servers (alternatively use Stop.bat) <br />
<br />
Note: When run from a CD the servers will automatically start.<br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
== USB Test ==<br />
After completing development before burning to a CD it is best to perform a dry run on a USB stick.<br />
<br />
Copy the entire content of folder '''udrive''' to the top-level of a USB memory stick<br />
<br />
Set all folders and files to have read only permission (simulates a CD) <br />
<br />
'''Start Servers:'''<br />
<br />
Using a USB memory stick the servers will not automatically run, inserting the memory stick a pop-up is displayed click ok to run. <br />
<br />
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)<br />
<br />
After a successful test you can burn the entire content of folder udrive to a CD or DVD.<br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
== Conflicts ==<br />
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.<br />
<br />
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.<br />
<br />
=== Move Servers ===<br />
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.<br />
<br />
# Navigate to folder UniServer\udrive\plugins\'''move_servers''' and run '''Run.bat'''<br />
# To accept proposed values press enter at all prompts or enter new values as required.<br />
<br />
'''''Note'':''' Run the script before adding applications, take a note of each new value displayed these will be required when installing new application.<br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
== Temporary folder ==<br />
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.<br />
<br />
'''''Note'':'''<br />
<pre><br />
Majority of applications that use a MySQL database cannot run directly from a CD<br />
they require write access hence the need to copy over the database. <br />
That said it is relatively quick to switch between copy and no-copy and perform<br />
a dry run on a USB memory stick to determine if an application will directly<br />
run from a CD.<br />
</pre><br />
Switching and change Temp folder<br />
<br />
* Navigate to folder UniServer\udrive\plugins\'''mona_cd''' and run '''cd_options.bat'''<br />
* To accept proposed values press enter at prompts or enter new values as required. <br />
** First option allows you to change drive and folder name.<br />
** Second option allows you to copy or not to copy MySQL database to temp folder.<br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
== Summary ==<br />
<br />
To all intense and purpose development of a CD is straightforward however you may want to tailor the system for your specific use. The [[UniServer CD: Components | next page]] describes components used and how to modify or update them.<br />
<br />
'''''[[#top | Top]]'''''<br />
----<br />
<br />
[[Category: Uniform Server 4.0-Mona]]<br />
[[Category: Plugins]]</div>Ric