Install Pi-Dashboard on Raspberry Pi

1. Installation and configuration running environment

1: Enter the following command in the terminal:

sudo apt-get update
sudo apt-get install nginx php7.3-fpm php7.3-cli php7.3-curl php7.3-gd php7.3-cgi
sudo service nginx start
sudo service php7.3-fpm restart

If the installation is successful, you can access the default page of Nginx from http://Raspberry Pi IP/

2: Configure Nginx so that it can configure PHP
Edit /etc/nginx/sites-available/default
Replace the contents with

location / {
index index.html index.htm index.php default.html default.htm default.php;
}
 
location ~\.php$ {
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
#fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;

After saving and exiting, restart Nginx:
sudo service nginx restart
3: Install and configure MySql
Installation: sudo apt-get install mariadb-server-10.0
Change the MySQL password:
Execute MySQL commands

MariaDB [(none)]> use mysql;
MariaDB [mysql]> update user set plugin='mysql_native_password' where user='root';
MariaDB [mysql]> UPDATE user SET password=PASSWORD['The password you set'] WHERE user='root';
MariaDB [mysql]> flush privileges;
MariaDB [mysql]> exit;

Restart the service: service mysql restart

2. Install Pi-dashboard

cd /var/www/html
sudo git clone https://github.com/nxez/pi-dashboard.git

After restarting the Raspberry Pi, you can access it through http://Raspberry Pi IP/pi-dashboard
1.png

Link to this article:

https://xj-blog.com/index.php/archives/3/