This software provides a detailed view of the xdag network presented in a nice UI.
- network statistics and graphs
- list of latest main blocks
- mining calculator
- balance checker
- block details
- API interface
- responsive design
- install, configure and run XdagJ
adduser explorer- explorer runs as regular user, sudo premissions should not be given. Continue as root or as regular user with sudo permissions.- install PHP8.4
sudo apt install lsb-release ca-certificates apt-transport-https software-properties-commonsudo add-apt-repository ppa:ondrej/phpsudo apt install php8.4-fpm php8.4-cli php8.4-bcmath php8.4-curl php8.4-gd php8.4-mbstring php8.4-mysql php8.4-opcache php8.4-readline- create PHP-FPM pool:
nano /etc/php/8.4/fpm/pool.d/explorer.conf
[explorer]
user = $pool
group = $pool
listen = /run/php/php8.4-fpm-$pool.sock
listen.owner = www-data
listen.group = www-data
listen.mode = 0660
pm = dynamic
pm.max_children = 10
pm.start_servers = 3
pm.min_spare_servers = 1
pm.max_spare_servers = 4
sudo systemctl enable php8.4-fpmsudo systemctl restart php8.4-fpm
- install MySQL 8.0+
sudo apt install mysql-server mysql-clientsudo mysqlALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '...............';- choose a strong passwordexitsudo mysql_secure_installation
- configure MySQL 8.0+
sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf- add
disable_log_binat end of file - add
tmp_table_size = 2Gat end of file - add
max_heap_table_size = 2Gat end of file sudo systemctl enable mysqlsudo systemctl restart mysql
- create database and MySQL user for explorer app
sudo mysql -p- enter root passwordCREATE USER explorer@'%' IDENTIFIED BY '...............';- choose a strong passwordCREATE DATABASE explorer CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;GRANT ALL ON explorer.* TO explorer@'%';FLUSH PRIVILEGES;exit
- install composer
- install NojdeJS 18
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -sudo apt install -y nodejs
- prepare explorer app
sudo mkdir /var/www/explorer && sudo chown explorer:explorer /var/www/explorer- as
exploreruser, change into/var/www/explorerfolder - execute
git clone https://github.com/XDagger/explorer.git . - execute
composer install,npm ci,npm run production,cp .env.example .env,php artisan key:generate - edit
.envand supply MySQL connection parameters and XdagJ RPC URL - execute
php artisan migrate - add crontab entry:
* * * * * /usr/bin/php8.4 /var/www/explorer/artisan schedule:run >> /dev/null 2>&1
- install and configure nginx
sudo apt install nginx- replace default server:
truncate -s 0 /etc/nginx/sites-available/default,nano /etc/nginx/sites-available/default
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
merge_slashes off;
root /var/www/explorer/public;
index index.php;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location = /index.php {
include fastcgi_params;
fastcgi_read_timeout 320;
fastcgi_param DOCUMENT_ROOT $realpath_root;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_pass unix:/run/php/php8.4-fpm-explorer.sock;
}
location = /favicon.ico {
access_log off;
log_not_found off;
}
location = /robots.txt {
access_log off;
log_not_found off;
}
}
sudo systemctl enable nginxsudo systemctl restart nginx
- optionally install Let's Encrypt certificate, configure https redirects
As explorer user, change into /var/www/explorer folder
git pullcomposer installphp artisan migratenpm cinpm run production