Raspberry Pi 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,

APT-GET Update sudo
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 himself in front of the installation package version:

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 clicking, sure no problem:

Start Service nginx sudo
sudo Service php7.3-FPM restart
download pi Dashboard, giving permissions:

APT-GET Git the install the sudo
CD / var / WWW / HTML
the sudo Git clone https://github.com/spoonysonny/pi-dashboard.git
the sudo chown -R & lt WWW-PI-Data Dashboard
under nginx modified 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重启下:

sudo service nginx restart
better. Configuration is complete, you can now http: // your IP / pi-dashboard / directly access to.

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, still very
commendable; ----------------
Disclaimer: This article is CSDN blogger "soulman1234 'original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/soulman1234/article/details/100751208

发布了259 篇原创文章 · 获赞 316 · 访问量 93万+

Guess you like

Origin blog.csdn.net/u014756827/article/details/104248256