how to starting Apache and MySQL automatically in UniServer Zero by command line

i want to start Apache and MySQL automatically by command line in uniserver zero XIV

here official site propose that you start it with the following command (And works!):

UniController.exe start_both
UniController.exe stop_both

It can also be done manually by GUI (And works!):

enter image description here


curiously the above action modifies the file C:UniServerZhomeus_configus_config.ini from false to true


But if I do the modification directly in the file us_config.ini (without opening the application), and change these values from false to true, when I restart the PC, apache + mysql does not start, so the above action must do something else

Also here official site propose to install and run as a service (And it does not work!):

C:UniServerZcoreapache2binhttpd_z.exe -k install -n "us_apache_1"
C:UniServerZcoremysqlbinbinmysqld_z.exe --install "us_mysql_1" --defaults-file=C:/UniServerZ/core/mysql/my.ini
C:UniServerZcoreapache2binhttpd_z.exe -k start -n "us_apache_1"
sc.exe start "us_mysql_1"

enter image description here

but these commands are incomplete and contain source errors

What is the correct way to start with the PC apache + mysql in UniServer Zero XIV (by cmd command line or modifying .ini file)? thanks


The following solved the problem:

First: Change false to true in UniServerZhomeus_configus_config.ini


Second: Open CMD with administrative privileges and run the following commands:

REG ADD "HKLMSOFTWAREMicrosoftWindowsCurrentVersionRun" /V "UniServerRun" /t REG_SZ /F /D "%homedrive%UniServerZUniController.exe pc_win_start"

Or on some win x64:

REG ADD "HKLMSOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionRun" /V "UniServerRun" /t REG_SZ /F /D "%homedrive%UniServerZUniController.exe pc_win_start"

and reboot…

PD: To delete the registry keys:

REG DELETE "HKLMSOFTWAREMicrosoftWindowsCurrentVersionRun" /V "UniServerRun" /F


REG DELETE "HKLMSOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionRun" /V "UniServerRun" /F