Old:4.0-Mona: UniController

Revision as of 12:44, 21 June 2013 by BobS (talk | contribs) (BobS moved page 4.0-Mona: UniController to Old:4.0-Mona: UniController without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

 

The Uniform Server 4-Mona

UniController Uniform Server 4.0-Mona

UniController is a standalone controller for Uniform Server Mona.

This independence means there is a potential conflict with other methods (Disk Start.vbs, Server_Start.bat, usb_server_start.bat and Unitray) of starting and stopping (Stop.bat and usb_server_stop.bat) the servers.

UniController resolves this issue by automatically detecting a running server and issues a warning it cannot be started.

Similarly other methods of stating and stopping the servers detect UniController is in control and will issue a warning accordingly.

This close interaction prevents the servers being incorrectly started or stopped.

UniController detects how Uniform Server has been installed (Basic, Disk-Root or Service) and functions accordingly. It was not designed for service control hence will issue a warning and not run.

Top

Installation

The following looks at installing Uniform Server with reference to Unicontroller.

Basic

Basic installation, extract Uniform Server V4.0-Mona to any folder.

  1. Double click UniController.exe (allow access when challenged by firewall)
  2. The first free drive letter is automatically detected and displayed (normally Z)
  3. If you wish change this drive letter (make sure its not in use)
  4. You can now start either or both servers. (again allow access when challenged by firewall)
  5. The servers are run on a virtial drive(letter used as above)

Disk-Root

Start with a basic installation of Uniform Server V4.0-Mona copy the entire content of folder udrive to a hard disk's root or USB root (top-level). From folder UniServer copy UniController.exe to disk root.

  1. Double click UniController.exe (allow access when challenged by firewall)
  2. The drive letter selection box is grayed out. It displays actual drive letter where Uniform Server is installed.
  3. You can now start either or both servers. (again allow access when challenged by firewall)
  4. The servers do not run on a virtual but from the installation drive.

Top

Buttons

They perform the function displayed note server control buttons toggle between start and stop prevents accidentally trying to run the same server again.

Two buttons Apanel and phpMyAdmin are shortcuts these are initially grayed out and become available after the apropriate server has been started.

  1. Apanel Displays Apanel in a browser - Automatically starts browser if not already running.
  2. phpMyAdmin Displays phpMyAdmin in a browser - Automatically starts browser if not already running.

Test Button:

  1. Initially run reports status of the server ports for Apache and MySQL. Ports are extracted from the configuration files.
  2. This is followed by an option to perform a syntax check on Apache,s configuration file. Any errors prevents Apache running.
  3. Start MySQL and an additional option is provided allowing you to start a command window to run mysqladmin.exe.

Note: Test provides diagnostics before starting the servers, however may be run with the servers running.

Window Buttons:

  1. Minimise: Minimises window to the icon tray. (bottom right)
  2. Close window: Closes UniController. If either or both servers running requests confirmation. Once confirmed shuts downs the servers before closing UniController.

Top

Multi-Servers

Unicontroller has provision to run multi-servers to achieve this Apache's executable is renamed. This needs to be picked up by UniController, to communicate a name change UniController uses a configuration file see this section for details.

Top

Remote operation

UniController implements a form of push and pop, saves the caller address on completion restores this address. This allows UniController to be run by other programs from any location.

The following example shows how to auto-run UniControler on a USB memory stick. There are two versions corresponding to how Uniform Server has been installed (Basic or Disk-root) they differ only in paths to UniController and Uniform Server icon.

Top

USB autorun - Basic

This assumes you copied folder UniServer straight to a USB stick and not to a sub-folder.

Create a new file named autorun.inf save this to the top-level of your USB memory stick. It should contain the following lines:

[autorun]
open=UniServer\UniController.exe
action=Run UniController
icon=UniServer\udrive\docs\SRC\uslogo.ico

Test:

  1. Remove and re-insert USB stick (always use Safely Remove Hardware).
  2. A pop-up is displayed “What do you want Windows to do” the action “Run UniController” is automatically selected click OK to run.
  3. Note you can change this action name “Run UniController” in autorun.inf, it can be anything you prefer.
  4. Similarly use your own icon (I have used the one in doc simply to demonstrate the path).

Note: If you installed UniServer in a sub-folder make sure the path to UniController.exe and uslogo.ico includes this sub-folder.

Top

USB autorun - Disk-Root

This assumes you copied the contents of folder udrive and UniController.exe to the USB root (top-level).

Create a new file named autorun.inf save this to the top-level of your USB memory stick. Its similar to the above only difference are the paths:

[autorun]
open=UniController.exe
action=Start UniController
icon=docs\SRC\uslogo.ico

Test:

  1. Remove and re-insert USB stick (always use Safely Remove Hardware).
  2. A pop-up is displayed “What do you want Windows to do” the action “Run UniController” is automatically selected click OK to run.
  3. Note you can change this action name “Start UniController” in autorun.inf, it can be anything you prefer.
  4. Similarly use your own icon (I have used the one in doc simply to demonstrate the path).

Note: When UniController.exe is run the drive letter is grayed out.

UniTray

If you wish to use UniTray instead of UniController change the open command to point to UniTray.

Summary

UniController is a powerful little utility.

If the utility does not meet your requirements the source code is included in the docs folder, check out this page covers installing source code on lcc-win32 where you can modify and recompile the code. UniController is an enhanced version of Unicon however installation and compiling are identical.

Top