Debian Codegraph @

INSTALL

raw
1 # Telemetry library, management/analysis console
2
3 The usual cmake/make/make install.
4
5 # Server
6
7 Requires PHP >= 5.5 and Sqlite, MySQL or PostgreSQL, Apache with SSL set up.
8
9 - copy src/server to your webserver
10 - (alternatively) use "make deploy", after setting the SERVER_DEPLOY_HOST and SERVER_DEPLOY_PATH
11 cmake options accordingly
12 - make sure .htaccess files are enabled by your Apache settings
13 - set up authentication:
14 - users with access to the analytics sub-folder have read-only access to all product settings
15 and telemetry data
16 - users with additional access to the admin sub-folder have write access to all products
17 - rename config/localconfig.php.example to config/localconfig.php and adjust
18 settings in there based on your database setup
19 - connect to the server using either UserFeedbackConsole or the userfeedbackctl command line tool,
20 that will trigger the database
21 - (optional) verify that access controls a set up correctly using the 'userfeedbackctl scan-server'
22 command
23
24 Docker users might find https://github.com/KDAB/kuserfeedbackdocker useful.
25
26
27 ## Local Development
28
29 The following setup works locally without the need of a full webserver with SSL and authentication
30 setup. It's also used by the automated tests.
31
32 - configure database access via src/server/config/localconfig.php as described above
33 - in src/testserver, run: 'php -S localhost:1984 router.php'
34 - connect via UserFeedbackConsole to trigger database setup