|
Standalone Servers
|
Uniform Server Zeros modular architecture allows each server (Apache and MySQL) to be run independently from the main WAMP server. This requires renaming the server and controller executables. Optionally moving servers to different ports, allows you to run these servers alongside The Uniform Server Zero and IIS. This page details the changes required.
Apache
You can run Apache as an independent server running on standard ports. Alternatively run independently on none-standard ports catering for a multi-server environment. The following details configuration and modifictions required.
Apache preliminary
Create individual Apache server as follows:
- Create a new folder c:\New_UniServer2
- Download and save the latest controller file (ZeroXII_controller_2_0_0.exe) to folder New_UniServer2
- The file is a self-extracting archive, double click on above file to run the extrater.
- A new folder C:\New_UniServer2\UniServerZ is created containing the controller application UniController.exe and support folders and files.
- Download the following plugins and save to folder C:\New_UniServer2\UniServerZ.
- ZeroXII_apache_2_4_17.exe - Apache server
- Installation, double click the plugin file to run the extracter.
- If prompted allow overwriting of existing files.
- If you wish; delete the installation files, they are no longer required.
Apache Change controller name
You cannot run two instances of UniController.exe the executable name must be unique.
- Rename file C:\New_UniServer2\UniServerZ\UniController.exe to C:\New_UniServer2\UniServerZ\UniController2.exe
- Note: You can use a different name so long as the name is unique and has the file extension .exe
Apache Change Icon
To distinguish between server instances the tray icon requires changing.
The following parameters in configuration file C:\New_UniServer2\UniServerZ\home\us_config\us_config.ini allow you to change icon and hover text:
- ServerType - Set Server type valid values APS0 to APS3 sets icon - For this example use APS1
- ServerTypeText1 - First line of hover text - For this example use "Uniform Server Portable"
- ServerTypeText2 - Second line of over text - For this example use "Apache Standalone server 1"
Icons are shown on the right: Icons left to right APS0,APS1,APS2 and APS3
|
|
Change Apache server executable
To avoid conflicts when running multi-servers requires the Apache executable to be renamed.
- Navigate to folder C:\New_UniServer2\UniServerZ\core\apache2\bin
- Rename Apache executable file from httpd_z.exe to httpd_z2.exe
- The file name must start with httpd_ followed by any unique string and terminated with file extension .exe
- For convenience it is easier just to increment the digit.
Change Apache server ports:
To avoid conflicts when running multi-servers requires the Apache server ports to be changed. If this is the only instance of Apache skip port change and allow server to run on default standard ports.
- Start UniController2.exe
- Change standard port from 80 to 82:
- Apache > Change Apache ports > Change Apache port
- Enter 81 and click OK
- Note: Again it is easier just to increment, however you can enter a different unique port.
- Change ssl port from 443 to 445:
- Apache > Change Apache ports > Change Apache SSL port
- Enter 445 and click OK
- Note: Again it is easier just to increment, however you can enter a different unique port.
MySQL
You can run MySQL as an independent server running on standard ports. Alternatively run independently on none-standard ports catering for a multi-server environment. The following details configuration and modifictions required.
MySQL preliminary
Create individual MySQL server as follows:
- Create a new folder c:\New_UniServer3
- Download and save the latest controller file (ZeroXII_controller_2_0_0.exe) to folder New_UniServer3
- The file is a self-extracting archive, double click on above file to run the extrater.
- A new folder C:\New_UniServer3\UniServerZ is created containing the controller application UniController.exe and support folders and files.
- Download the following plugin and save to folder C:\New_UniServer3\UniServerZ.
- ZeroXII_mysql_5_5_46.exe - MySQL server
- Installation, double click the plugin file to run the extracter.
- If prompted allow overwriting of existing files.
- If you wish; delete the installation files, they are no longer required.
MySQL Change controller name
You cannot run two instances of UniController.exe the executable name must be unique.
- Rename file C:\New_UniServer3\UniServerZ\UniController.exe to C:\New_UniServer3\UniServerZ\UniController3.exe
- Note: You can use a different name so long as the name is unique and has the file extension .exe
MySQL Change Icon
To distinguish between server instances the tray icon requires changing.
The following parameters in configuration file C:\New_UniServer3\UniServerZ\home\us_config\us_config.ini allow you to change icon and hover text:
- ServerType - Set Server type valid values MYS0 to MYS3 sets icon - For this example use MYS1
- ServerTypeText1 - First line of hover text - For this example use "Uniform Server Portable"
- ServerTypeText2 - Second line of over text - For this example use "MySQL Standalone server 1"
Icons are shown on the right: Icons left to right MYS0,MYS1,MYS2 and MYS3
|
|
Change MySQL server executable
To avoid conflicts when running multi-servers requires the MySQL executable to be renamed.
- Navigate to folder C:\New_UniServer3\UniServerZ\core\mysql\bin
- Rename MySQL executable file from mysqld_z.exe to mysqld_z3.exe
- The file name must start with mysqld_ followed by any unique string and terminated with file extension .exe
- For convenience it is easier just to increment the digit.
Change MySQL server port:
To avoid conflicts when running multi-servers requires the MySQL server port to be changed. If this is the only instance of MySQL skip port change and allow server to run on default standard port.
- Start UniController3.exe
- Change standard port from 3306 to 3308:
- MySQL > Change MySQL port
- Enter 3308 and click OK
- Note: Again it is easier just to increment, however you can enter a different unique port.
Summary
With the above modifications you can run Apache and MySQL as seperate servers.
|