Coral: start multi servers

From The Uniform Server Wiki
Revision as of 12:52, 7 February 2012 by BobS (talk | contribs) (Expanded on using this before loading apps)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Multi-Servers

Multi-servers enable you to run more than one copy of The Uniform Server (Apache and MySQL) on the same PC. Moving servers to different ports also allows you to run The Uniform Server alongside other servers such as IIS. It also allows you to have multiple separate instances of The Uniform Server running at the same time. This page details the changes made when the Multi-servers menu is invoked.

NOTE: It it best to run this procedure on a newly-installed version of The Uniform Server, since applications will be unaware of the changes. If moved after installation, many applications will require changes to database fields in order to run properly.

UniServer 8-Coral
  Home
» Quick Start
  General
  Apache
  MySQL
  PHP
  MSMTP
  CRON
  DtDNS
  Db Backup
  Perl
  Main Index

Multi Servers

Multi-servers enables you to run more than one copy of The Uniform Server (Apache and MySQL) on the same PC. To achieve this, the executables and services are renamed and the ports the servers run on are changed.

Values under the old column are the current server values. After clicking “Run Move Servers” these values are overwritten in their corresponding configurations files with the values shown in the new column.

Changes are reflected in the tray icon, which is numbered 1 to 9. This number generally corresponds to the digit appended to the executable and service names. The number of separate server sets is not limited to 9, but subsequent sets will not show a digit.

Note:
Normally you would run this menu on a newly extracted copy of The Uniform Server and then add any applications using appropriate configuration parameters. Changing the applications after moving the ports is difficult and error-prone.

When installing the applications, you will need to explicitly specify the new ports on any URLs, such as in http://localhost:83 (site location or server name) and 127.0.0.1:3308 (MySQL).

Top

Files modified

After running Multi-servers the following files are updated:

Apache

  • UniServer\usr\local\apache2\conf\httpd.conf
  • UniServer\usr\local\apache2\conf\extra\httpd-vhosts.conf
  • UniServer\usr\local\apache2\conf\extra\ssl.conf

MySQL

  • UniServer\usr\local\mysql\my.ini
  • UniServer\usr\local\mysql\small_my.ini
  • UniServer\usr\local\mysql\medium_my.ini

PHP

  • UniServer\usr\local\php\php.ini
  • UniServer\usr\local\php\php.ini_development
  • UniServer\usr\local\php\php.ini_production

UniController

  • UniServer\uni_con\uni_con_program.hta
  • UniServer\uni_con\uni_con_service.hta
  • UniServer\uni_con\config_tracker.ini

Cron

  • UniServer\uni_con\cron_service\srvstart.ini
  • UniServer\uni_con\cron_service\start_automatic.vbs
  • UniServer\uni_con\cron_service\z_install.bat

Cron

  • UniServer\uni_con\cron_service\z_service_start.bat
  • UniServer\uni_con\cron_service\z_service_stop.bat
  • UniServer\uni_con\cron_service\z_uninstall_service.bat


After running Multi-servers the following executables are renamed. Note: x is new digit appended to executable name.

  • UniServer\usr\local\apache2\bin\httpd1.exe to UniServer\usr\local\apache2\bin\httpdx.exe
  • UniServer\usr\local\mysql\bin\mysqld1.exe to UniServer\usr\local\mysql\bin\mysqldx.exe