Install PHP7.4
It’s crucial to install 7.4, not 8.x
Configure php.ini
Directory in which the loadable extensions reside uncommented
; On windows:
extension_dir =”<path>/ext”
Make sure that the following extensions are uncommented
extension=curl
extension=mbstring
extension=openssl
extension=php_pdo_pgsql.dll
Download cacert.pem certificate and add path under below
curl.cainfo
Install Postgres for Windows
Configuring the database in CMD
psql -U postgres postgres=# create database webclient; postgres=# create user webclient; postgres=# alter user webclient with encrypted password 'webclient' postgres-# grant all privileges on database webclient to webclient
Copy and prepare the code
Copy the package to /var/www/html
Prepare 4 config files and copy them to /api/conf.d
folder:
admin_channel.json
Initialize the database
Open this URL in your browser window
http://your_server_ip:port/api/v1/db/update
It should show something like this in the browser: