Second, raspberry pie 4, Raspbian buster installation Pi Dashboard dashboard

Undertake a above, Raspberry Pi system has completed the installation and complete access to external networks, then, to install the Raspberry Pi to a dashboard.

First, you need to install list has: nginx, PHP7 *, git.

Install nginx,

sudo apt-get update
sudo apt-get install nginx

Then install PHP, because I am here using the latest version of the system, so the online PHP7.0 NA, the installation will not find the package, we can look at their version before installing the package:

sudo apt-cache search php

I am here mainly 7.1,7.2,7.3.

Installation command:

sudo apt-get install nginx php7.3-fpm php7.3-cli php7.3-curl php7.3-gd php7.3-mcrypt php7.3-cgi

Start it, sure no problem:

sudo service nginx start
sudo service php7.3-fpm restart

Download pi Dashboard, giving permissions:

sudo apt-get install git
cd /var/www/html
sudo git clone https://github.com/spoonysonny/pi-dashboard.git
sudo chown -R www-data pi-dashboard

Under modify nginx configuration, the configuration location:

sudo nano /etc/nginx/sites-available/default
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_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}

nginx restart follows:

sudo service nginx restart

All right. Configuration is complete, you can now http: // your IP / pi-dashboard / direct access to it.

External network configuration access, you can configure your router on a virtual server, using non-external port 80, the port internal matter.

You can also access! This is my visit to my Raspberry Pi in the field, it is very commendable;

 

 

 

 

Published 22 original articles · won praise 1 · views 6913

Guess you like

Origin blog.csdn.net/soulman1234/article/details/100751208