1) PHP >= 7.4, including packages: "mysql”, "mbstring", "simplexml", "gd", "curl", "gmp", "zip", "bcmath".
2) MySQL/MariaDB >= 5.7, authorization using "mysql_native_password".
3) The root directory of the website on the server should be "/public", permissions "755", owner "www-data".
5) All web server requests should be redirected to "/public/index.php".
6) GeoIP plugin or connecting to the CloudFlare service to obtain information about the geography of users.
Nginx:
server { listen 80; server_name demo.exchanger-cms.com; root /var/www/demo.exchanger-cms.com/public; add_header X-Frame-Options "SAMEORIGIN"; add_header X-Content-Type-Options "nosniff"; index index.php; charset utf-8; location / { try_files $uri $uri/ /index.php?$query_string; } location ~ \.php$ { try_files $uri = 404; fastcgi_pass unix:/var/run/php/php7.4-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; include fastcgi_params; } location ~ /\.(?!well-known).* { deny all; } }
Apache:
<VirtualHost *:80> <Directory /var/www/demo.exchanger-cms.com> Options -Indexes AllowOverride All Require all granted </Directory> ServerAdmin [email protected] ServerName demo.exchanger-cms.com DocumentRoot /var/www/demo.exchanger-cms.com/public </VirtualHost>
1) Unpack archive with the script files on the server.
2) Log in to the dashboard using the authentication data on the script download page in your account.
3) Go to "Application Settings" - "Database Connection" and connect to the database.
4) Set up the task scheduler (CRON) to run a command every minute:
/usr/bin/php /your.site/public/index.php >> /dev/null 2>&1
5) Go to "Application Settings" - "General Application Settings" and disable CRON Scheduler URL. This option disables the legacy way the task scheduler works via "wget".
Installation on a server with control panel
The process of installing script updates is automatic. You can check for available updates in "Software Update".
Roll Back
Backups are saved before each update in a website directory named "backup-{hash}-{version}.zip". To install a backup, unzip the archive to the root directory of the website.