First, make sure that all your system packages are up-to-date by running the following apt commands in the terminal. Install phpMyAdmin with Nginx on Ubuntu 20.04 LTS Focal Fossa We recommend acting as a non-root sudo user, however, you can harm your system if you’re not careful when acting as the root. A non-root sudo useror access to the root user.SSH access to the server (or just open Terminal if you’re on a desktop).It’s recommended that you use a fresh OS install to prevent any potential issues.A server running one of the following operating systems: Ubuntu 20.04, 18.04, and any other Debian-based distribution like Linux Mint.Type or paste the following lines into the new file. Open a new file called info.php within your document root in your text editor: We can do this by creating a test PHP file in our document root. We can test it to validate that Nginx can correctly hand. Your LEMP stack should now be completely set up. Step 5: Create a PHP File to Test Configuration When you are ready, reload Nginx to make the necessary changes: If any errors are reported, go back and recheck your file before continuing. Test your configuration file for syntax errors by typing: When you’ve made the above changes, you can save and close the file. If you do not have a domain name pointed at your server and you do not know your server’s public IP address, you can find it by typing one of the following into your terminal: With the new firewall rule added, you can test if the server is up and running by accessing your server’s domain name or public IP address in your web browser. You should see HTTP traffic allowed in the displayed output: Since we haven’t configured SSL for our server yet, in this guide, we will only need to allow traffic on port 80. It is recommended that you enable the most restrictive profile that will still allow the traffic you want. Nginx registers itself with ufw upon installation, so the procedure is rather straight forward. If you have the ufw firewall running, as outlined in our initial setup guide, you will need to allow connections to Nginx. On Ubuntu 16.04, Nginx is configured to start running upon installation. Since this is our first time using apt for this session, we should start off by updating our local package index. This means we can use the apt package management suite to complete the installation. In order to display web pages to our site visitors, we are going to employ Nginx, a modern, efficient web server.Īll of the software we will be using for this procedure will come directly from Ubuntu’s default package repositories. You are now ready to begin the steps outlined in this guide. Once you have your user available, sign into your server with that username. You can learn how to set up this type of account by completing our Ubuntu 16.04 initial server setup. Prerequisitesīefore you complete this tutorial, you should have a regular, non-root user account on your server with sudo privileges. We will describe how to get the rest of the components up and running. The Ubuntu operating system takes care of the first requirement. In this guide, we will demonstrate how to install a LEMP stack on an Ubuntu 16.04 server. The backend data is stored in the MySQL database and the dynamic processing is handled by PHP. This is an acronym that describes a Linux operating system, with an Nginx web server. The LEMP software stack is a group of software that can be used to serve dynamic web pages and web applications.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |