Advertisements

Tag archive for: Raspbian Stretch

How to setup a Raspberry Pi web server with Raspbian Stretch Lite, Nginx, MariaDB and PHP as the LEMP stack

Raspberry Pi LEMP Linux Nginx MariaDB PHP

When you want to deploy a PHP application that you wrote, you can first deploy it on a Raspberry Pi. Once your PHP application gets enough traction, you can then port it over to a computer with more horsepower.

When your PHP application employs MySQL or MariaDB as the backing database, we can put it up on a LEMP stack. In this situation, HTTP requests will first be directed to the Nginx reverse proxy server. Whenever the request is made to a php application, Nginx will then pass it on to the PHP7 Fast CGI Process Manager (PHP FPM) for generating the HTTP response.

Given these points, this post provides the steps to setup a Raspberry Pi web server with Raspbian Stretch Lite, Nginx, MariaDB and PHP as the LEMP stack.

Advertisements

How to enable VNC server on Raspbian Stretch with raspi-config

When you have a VNC server enabled on your Raspbian Stretch, you will be able to access your Raspberry Pi from another computer. Furthermore, you will be able to use your Raspberry Pi from a graphical user interface.

Therefore, if you want to enable SSH server on your Raspbian Stretch but is not really comfortable with a command line interface, a VNC server is what you should enable instead.

In such a situation, you can use raspi-config to enable VNC server on Raspbian Stretch. Let see how we can do so.

How to configure locale settings of Raspbian Stretch with raspi-config

Locales are a framework to switch between multiple languages and allow users to use their language, country, characters, collation order and etc. Therefore, it is an important setting to configure before using your Raspberry Pi.

Given that, let us look at how we can configure locale settings of Raspbian Stretch with raspi-config.

How to connect your Raspberry Pi to a WiFi network with raspi-config in Raspbian Stretch

When you own a Raspberry Pi with in-built WiFi or an attached USB WiFi adapter, you will be able to connect it to a WiFi network.

Given that WiFi connectivity, you can use then your Raspberry Pi as a HTTP server and/or a HTTP client on the Internet without using a network cable.

When you have installed Raspbian Stretch on your Raspberry Pi, you can use raspi-config to connect your Raspberry Pi to a WiFi network. For this purpose, you can follow the steps mentioned in this post.