Difference between revisions of "HelloWhiznium"

From
Jump to: navigation, search
Line 4: Line 4:
 
Running HelloWhiznium for the first time
 
Running HelloWhiznium for the first time
  
Copy the preferences file from ... to ... .
+
The executable directory for the HelloWhiznium combined engine Hlwzcmbd is ${WHIZROOT}/bin/hlwzcmbd.
  
If you would like to use HTTPS server, you need to create a private/public key pair, e.g. using OpenSSL. In the executable directory, run
+
Copy the preferences file PrefHlwzcmbd.xml from ${WHIZROOT[_CCH]}/srcrep/hlzw/_ini/hlwzcmbd_<machine> to the executable directory.
  
 +
Perform some required customizations:
  
and rename the generated files
+
<StgHlwzAppsrv><br>
 +
:<Si sref="port"> application server port of choice, e.g. 13100 </Si><br>
 +
:<Si sref="https"> true if you would like to use secure communication (see below) </Si><br>
 +
</StgHlwzAppsrv><br>
 +
<StgHlwzcmbd><br>
 +
:<Si sref="jobprcn"> number of job processor threads, should be at least 2 and otherwise match the number of cores </Si><br>
 +
:...<br>
 +
</StgHlwzcmbd><br>
  
mv ... server.pem
+
 
mv ... server.key
+
<StgHlwzDatabase><br>
 +
:<Si sref="srefIxDbsVDbstype">my</Si><br>
 +
:...<br>
 +
:<Si sref="dbsname">DbsHlwz</Si><br>
 +
:<Si sref="username">mpsitech</Si><br>
 +
:<Si sref="password">asdf1234</Si><br>
 +
:<Si sref="ip">127.0.0.1</Si><br>
 +
:<Si sref="port">3306</Si><br>
 +
</StgHlwzDatabase><br>
 +
 
 +
- or -
 +
 
 +
<StgHlwzDatabase><br>
 +
:<Si sref="srefIxDbsVDbstype">lite</Si><br>
 +
:<Si sref="dbspath">$WHIZROOT/bin/hlwzcmbd/DbsHlwz.sql</Si><br>
 +
:...<br>
 +
</StgHlwzDatabase><br>
 +
 
 +
 
 +
<StgHlwzPath><br>
 +
:<Si sref="acvpath"> $WHIZROOT/acv/hlwz </Si><br>
 +
:...<br>
 +
:<Si sref="tmppath"> $WHIZROOT/tmp/hlwz </Si><br>
 +
:<Si sref="webpath"> $WHIZROOT/web/apphlwz </Si><br>
 +
:...<br>
 +
</StgHlwzPath><br>
 +
 
 +
 
 +
If you would like to use HTTPS for the application server, you need to create a private/public key pair, e.g. using OpenSSL. In the executable directory, run:
 +
 
 +
openssl req -x509 -newkey rsa:4096 -keyout server.key -out server.pem -days 365
  
 
Set up the database:
 
Set up the database:
Line 20: Line 58:
 
sudo mysql -p < ${WHIZROOT}/srcrep/hlwz/_ini/dbshlwz/CreateDbsHlwzMy.sql
 
sudo mysql -p < ${WHIZROOT}/srcrep/hlwz/_ini/dbshlwz/CreateDbsHlwzMy.sql
  
The two 'CREATE USER ...' line needs to be commented out in case the user already exists.
+
The two 'CREATE USER ...' lines need to be commented out in case the user already exists.
  
SQLIte database
+
SQLite database
  
 
In the executable directory, run
 
In the executable directory, run
Line 28: Line 66:
 
sqlite3 DbsHlwz.sql
 
sqlite3 DbsHlwz.sql
 
sqlite3> .read ${WHIZROOT}/srcrep/hlwz/_ini/dbshlwz/CreateDbsHlwzLite.sql
 
sqlite3> .read ${WHIZROOT}/srcrep/hlwz/_ini/dbshlwz/CreateDbsHlwzLite.sql
 +
sqlite3> .quit
 +
 +
As within sqlite3 the shell variable ${WHIZROOT} is unknown, you'll need to expand it manually.

Revision as of 11:32, 24 August 2019

Building HelloWhiznium


Running HelloWhiznium for the first time

The executable directory for the HelloWhiznium combined engine Hlwzcmbd is ${WHIZROOT}/bin/hlwzcmbd.

Copy the preferences file PrefHlwzcmbd.xml from ${WHIZROOT[_CCH]}/srcrep/hlzw/_ini/hlwzcmbd_<machine> to the executable directory.

Perform some required customizations:

<StgHlwzAppsrv>

<Si sref="port"> application server port of choice, e.g. 13100 </Si>
<Si sref="https"> true if you would like to use secure communication (see below) </Si>

</StgHlwzAppsrv>
<StgHlwzcmbd>

<Si sref="jobprcn"> number of job processor threads, should be at least 2 and otherwise match the number of cores </Si>
...

</StgHlwzcmbd>


<StgHlwzDatabase>

<Si sref="srefIxDbsVDbstype">my</Si>
...
<Si sref="dbsname">DbsHlwz</Si>
<Si sref="username">mpsitech</Si>
<Si sref="password">asdf1234</Si>
<Si sref="ip">127.0.0.1</Si>
<Si sref="port">3306</Si>

</StgHlwzDatabase>

- or -

<StgHlwzDatabase>

<Si sref="srefIxDbsVDbstype">lite</Si>
<Si sref="dbspath">$WHIZROOT/bin/hlwzcmbd/DbsHlwz.sql</Si>
...

</StgHlwzDatabase>


<StgHlwzPath>

<Si sref="acvpath"> $WHIZROOT/acv/hlwz </Si>
...
<Si sref="tmppath"> $WHIZROOT/tmp/hlwz </Si>
<Si sref="webpath"> $WHIZROOT/web/apphlwz </Si>
...

</StgHlwzPath>


If you would like to use HTTPS for the application server, you need to create a private/public key pair, e.g. using OpenSSL. In the executable directory, run:

openssl req -x509 -newkey rsa:4096 -keyout server.key -out server.pem -days 365

Set up the database:

MySQL database

sudo mysql -p < ${WHIZROOT}/srcrep/hlwz/_ini/dbshlwz/CreateDbsHlwzMy.sql

The two 'CREATE USER ...' lines need to be commented out in case the user already exists.

SQLite database

In the executable directory, run

sqlite3 DbsHlwz.sql sqlite3> .read ${WHIZROOT}/srcrep/hlwz/_ini/dbshlwz/CreateDbsHlwzLite.sql sqlite3> .quit

As within sqlite3 the shell variable ${WHIZROOT} is unknown, you'll need to expand it manually.