QUIQQER Headless Setup
Description
The Headless setup is meant for non-interactive environments.
So whenever the user is not able to perform inputs or read the output.
This includes, but is not limited to: docker setup, automated setups and automated test environments.
How TO
Step 1: Download the setup
cd /var/www/html
curl -OJL https://update.quiqqer.com/quiqqer.tgz
tar -xzvf quiqqer.tgz
Step 2: Edit the preset file
nano templates/presets/default.json
Edit the preset file to your liking.
Make sure to include the project name: "project": { "name": "", [..]
Step 3: Create a file with necessary setup data
Create the file var/tmp/setup.json
and edit its contents.
This file contains all information that would be provided by the user in a normal setup.
mkdir var/tmp -p
nano var/tmp/setup.json
{
"step": 32,
"data": {
"lang": "%lang%",
"version": "%version%",
"database": {
"create_new": false,
"driver": "mysql",
"host": "%dbhost%",
"user": "%dbuser%",
"pw": "%dbpass%",
"name": "%dbname%",
"prefix": "%dbprefix%",
"port": "%dbport%"
},
"user": {
"name": "%user%",
"pw": "%password%"
},
"paths": {
"host": "http:\/\/localhost",
"httpshost": "",
"cms_dir": "\/var\/www\/html\/",
"var_dir": "\/var\/www\/html\/var\/",
"usr_dir": "\/var\/www\/html\/usr\/",
"opt_dir": "\/var\/www\/html\/packages\/",
"url_dir": "\/",
"url_lib_dir": "\/lib\/",
"url_bin_dir": "\/bin\/"
},
"preset": "default"
},
"stepsum": 63
}
Step 4: Run setup
After that you can execute the setup by
php setup.php --no-interaction