#RASPBERRY PI APACHE SERVER TUTORIAL INSTALL#
sudo apt-get install php7.3-fpm php7.3-mbstring php7.3-mysql php7.3-curl php7.3-gd php7.3-curl php7.3-zip php7.3-xml -yģ. Before you run the command below, make sure that you are running Raspbian Buster or newer. Before we get started with configuring PHP for NGINX, we need to go ahead and install PHP 7.3 it and some recommended PHP modules that will make it easier when dealing with more extensive PHP scripts. We will also have to utilize PHP-FPM and not standard PHP due to the way NGINX works.Ģ. We instead must make changes to its configuration files to get it to load in. Unlike Apache, NGINX won’t be automatically set up for use with PHP.hostname -IĦ.If installing NGINX on the Raspberry Pi went as planned, you’ll see a friendly “Welcome to nginx” message when you navigate to in a browser. To view your IP address, you may run the command hostname -I. As such, you can test if NGINX installed properly by navigating to RASPBERRY PI'S IP ADDRESS]/.ĥ. NGINX places an HTML file under the web folder.
So let’s type the following command into terminal to start up the web server on your Raspberry Pi. Now with NGINX installed, we can now start up the software. Finally, let’s install NGINX onto our Raspberry Pi by running the following command on your Raspberry Pi. With the packages now up to date we can proceed on with the installation of NGINX. Before we get started with setting up the NGINX web server on the Raspberry Pi, we must first make sure our Raspberry Pi is up to date by running the following two commands on it.Ģ.It is a web server that can also be used as a reverse proxy, load balancer, mail proxy and HTTP cache. In its initial release, it functioned for HTTP web serving. NGINX is a popular lightweight web server application you can install on the Raspberry Pi to allow it to serve web pages.