|
4.0-Mona: Introduction | Install | Security features | Enable SSL | Multi-Servers | UniController | UniTray | Security and passwords | Known Issues | Support
|
|
| Uniform Server 4.0 - 4.4-Mona |
Install – Multi-Servers
With the introduction of Uniform Server 4.1-Mona running multi-servers is made extremely easy using its inbuilt plugin. This plugin allows you to move the servers to different ports renaming executables and services to avoid conflicts.
Although this was possible with 4.0-Mona it required editing a number of files which was prone to error.
Why would you want to run several servers on the same PC? It allows you to experiment within a single environment and explore front and backend servers. Another use, with each server being independent you can host a single application allowing you to have a personal MediaWiki and say another with Wordpress both running from their own USB memory sticks.
Unlike earlier versions of Uniform Server all scripts in 4.1-Mona directly obtain port information from Apache and MySQL configuration files. In addition executable names are not assumed they are checked at source. Hence if any of these parameters are changed they are automatically picked up allowing the servers to be moved.
Uniform Server’s security features track these changes preventing false security alerts.
I recommend starting with a fresh install of Uniform Server (just extract it to any folder). The script reads current server configuration and increments their values these are both displayed. Incremented values are only recommendations you can override these if you wish.
Run Script:
Current Apache port = 80 Proposed port [81] : Current SSL port = 443 Proposed port [444] : Current MySQL port = 3306 Proposed port [3307] : Current Apache name = Apache.exe Proposed name [Apache1.exe] : ===== SERVICE Path and Service names ==== Current Path = c:/UniServer Proposed path = [c:/UniServer1] : Current Apache name = Apache2 Proposed name = [Apache3] : Current MySQL name = MySQL Proposed name = [MySQL1] : ===== Controller Executable name ==== Current = UniController.exe Proposed [UniController1.exe] : ===== eAccelerator ==== If running a single server do not disable eAccelerator. For multi-servers enter YES Disable_eAccelerator type YES or N [YES] : Commit type Y or N [Y] :
You can now copy this server to a USB memory stick or run the service script to install as a service.
Alternatively run it from its current location.
To create another multi-server install a fresh copy of Uniform Server v4.1-Mona and run the move script twice. Again this server can be installed on a USB memory stick, installed as a service or run from its current location.
Note 1: For each new multi-server run the move-server script appropriate number of times.
Note 2: With the exception of ports 135 and 445 the script does not check for ports in use (would lead to confusion) hence there may be a conflict, run the script again and manually enter your new values. The two ports that are checked are skipped and the next value used.
Note 3: Running more than a single server in either Basis or Disk-root mode with eAccelerator cause a conflict hence the need to disable it. However it may be enabled for all servers running as a service and one running in Basic or Disk-root.
This is an extreme example however does demonstrate the power of Uniform Server Mona.
The following shows how to set-up five servers, runs two as a service, one basic on hard drive, one disk-root and one basic on a USB memory stick.
You now have five running servers.
Note: If you cannot remember what ports were assigned run UniControllers test facility; for services check Apache and MySQL configuration files.
You can move the servers manually I have included this section to provide an insight into what the move server script performs.
| Parameter | Original configuration | New Configuration |
| Apache port | 80 | 81 |
| SSL port | 443 | 444 |
| MySQL port | 3306 | 3307 |
| Apache name | Apache.exe | Apache1.exe |
| Service path | c:/UniServer | c:/UniServer1 |
| Service Apache name | Apache2 | Apache3 |
| Service MySQL name | MySQL | MySQL1 |
| Unicontroller name | UniController.exe | UniController1.exe |
To move a server manually perform the following:
Skip this section if you don't want to run as a service
When manually moving a server although there are a number of steps to perform it is relatively easy.
Using 4.1-Mona's in-built script it is extremely easy to move a server requiring just a few key presses.