AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Change default phpmyadmin url nginx9/23/2023 ![]() ![]() Start by setting the user to the username that you’re currently logged in with. If you would find it easier to see the whole thing at once, feel free to download the complete Nginx config kit now. I’m not going to list every configuration directive but I am going to briefly mention those that you should change. Include /etc/nginx/modules-enabled/*.conf Next, open the Nginx configuration file, which can be found at /etc/nginx/nf: sudo nano /etc/nginx/nf Run the following to get your server’s open file limit and take note, we’ll need it as well: ulimit -n Take note of the number as we’ll use it in a minute: grep processor /proc/cpuinfo | wc -l However, before opening the configuration file, you need to determine your server’s CPU core count and the open file limit.Įnter the following command to get the number of CPU cores your server has available. Out-of-the-box Nginx is pretty well optimized, but there are a few basic adjustments to make. Now that Nginx has successfully been installed it’s time to perform some basic configuration. Once complete, you can confirm that Nginx has been installed with the following command: nginx nginx -vĪdditionally, when visiting the Fully Qualified Domain Name (FQDN) pointing to your server’s IP address in the browser, you should see an Nginx welcome page. Then install Nginx: sudo apt install nginx -y ![]() There may now be some packages that can be upgraded, let’s do that now: sudo apt dist-upgrade -y Instead, I like to use the package repository maintained by Ondřej Surý that includes the latest Nginx stable packages.įirst, add the repository and update the package lists: sudo add-apt-repository ppa:ondrej/nginx -y Although the official Ubuntu package repository includes Nginx packages, they’re often very outdated. Nginx has become the most popular web server software used on Linux servers, so it makes sense to use it rather than Apache. Last login: Wed Sep 21 19:19:37 2022 from Nginx Usage of /: 44.2% of 4.67GB Users logged in: 0 System information as of Wed Sep 21 19:30: In this chapter I will guide you through the process of setting up Nginx, PHP-FPM, and MySQL-which on Linux is more commonly known as a LEMP stack-that will form the foundations of a working web server.īefore moving on with this tutorial, you will need to open a new SSH connection to the server, if you haven’t already: ssh ssh to Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-41-generic x86_64) In chapter 1 of this guide, I took you through the initial steps of setting up and securing a virtual server on DigitalOcean using Ubuntu 22.04. ![]()
0 Comments
Read More
Leave a Reply. |