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”Change log level to errors only:
error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR
Make sure that the following extensions are uncommented
extension=php_curl.dll
extension=php_mbstring.dll
extension=php_openssl.dll
extension=php_pgsql.dll
extension=php_pdo_pgsql.dll
Note |
---|
Download cacert.pem certificate and add path under below
|
Go to PHP folder and Install composer:
Code Block |
---|
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php --install-dir=./ --filename=composer |
Install Postgres for Windows
Configuring the database in CMD
Code Block |
---|
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; |
For Postgres 15 and newer here are additional steps:
Code Block |
---|
GRANT ALL PRIVILEGES ON DATABASE webclient TO webclient;
\c webclient postgres
# You are now connected to database "webclient" as user "postgres".
GRANT ALL ON SCHEMA public TO webclient; |
Copy and prepare the code
Copy Clone the package to /var/www/html
Prepare 4 config files and copy them Web client package from GitHub. Go to /api/conf.d
folder:
admin_channel.json
Initialize the database
Open this URL in your browser window
http:// folder and run the composer:
Code Block |
---|
php.exe path_to_php_folder\composer install |
Test the web server
For testing, we recommend using the built-in PHP web server. You can launch it using the following command:
Code Block |
---|
start php.exe -S your_server_ip:port |
...
It should show something like this in the browser:
...
-t path_to_the_web_client |
Where path_to_the_web_client
is the path to the www
folder of the package.