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!):
problem:
curiously the above action modifies the file C:\UniServerZ\home\us_config\us_config.ini
from false
to true
RunAtPcStartUpEnabled=true
RunApacheAtStartUp=true
RunMysqlAtStartUp=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:\UniServerZ\core\apache2\bin\httpd_z.exe -k install -n "us_apache_1"
C:\UniServerZ\core\mysql\bin\bin\mysqld_z.exe --install "us_mysql_1" --defaults-file=C:/UniServerZ/core/mysql/my.ini
C:\UniServerZ\core\apache2\bin\httpd_z.exe -k start -n "us_apache_1"
sc.exe start "us_mysql_1"
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