Category: Ubuntu
-
Apache, Nginx, LiteSpeed, and Caddy
I often see many times in different forums, some of our support tickets, and so forth. What do I need to for my website? I want a VPS or Dedicated Server, but I don’t want to spend a lot of money, but dang I want it to handle my 7,938,093/hits a month site. Quite often…
-
Apache vs Nginx – Static Files
The same old question “What is faster, Apache or Nginx”, well I decided to test this on my own. I used the same machine with the same install with the same configurations to test this. I followed the QEMU install found on this site. Here and install Ubuntu 22 Server install. I then shut down…
-
How to Rsync with non-standard SSH Port
How to Rsync with non-standard SSH Port Run the following command from the terminal to sync files/folders using Rsync with non-standard ssh port. Syntax: # rsync -arvz -e ‘ssh -p <port-number>’ –progress –delete user@remote-server:/path/to/remote/folder /path/to/local/folder For the purpose of this tutorial, I will be using two systems. Remote System Details: IP Address: 192.168.1.103 User name:…
-
How to install OpenLiteSpeed web server on Ubuntu
Update the system packages sudo apt-get updateInstall OpenLiteSpeed dependencies sudo apt-get install -y build-essentialsudo apt-get install -y rcs libpcre3-dev libexpat1-dev libssl-dev libgeoip-dev libudns-dev zlib1g-dev libxml2 libxml2-dev libpng-dev opensslInstall OpenLiteSpeed wget https://openlitespeed.org/packages/openlitespeed-1.4.34.tgztar -xzvf openlitespeed-1.4.34.tgzcd openlitespeed-1.4.34/sudo ./configuresudo make && sudo make installConfigure the Admin user and password for the Web server sudo /usr/local/lsws/admin/misc/admpass.shPlease specify the user name…
-
How to Install LEMP Stack (Nginx, MariaDB, PHP7.4) on Ubuntu 20.04
Updating the system We first update the system to make sure that all our installed packages are upto date. Your Ubuntu system can be updated easily with the following command. Install Nginx We will start by installing the Nginx web server. To complete the installation, use the following command. Output: Once the installation is complete,…
-
How to Install LAMP Stack with MariaDB on Ubuntu 20.04
First, check for any pending system upgrade. Install Apache A command to install apache2 and with its utilities. Next, check the Status of Apache. Output: If Apache is not active can start using the following command. Use the following command to auto starts apache at boot time. To check Apache Version. Output: To Enable Firewall.…
-
Procedure To Add a Swap File Under Linux
You need to use the dd command to create swap file. The mkswap command is used to set up a Linux swap area on a device or in a file. Step 1 – Login as the Root User Open a terminal window (select Applications > Accessories > Terminal) or login to remote server using the ssh client. Switch to…
-
Replace a single string in a large number of files in Unix
If you have Perl installed on your system With Perl, you can make the replacement from the Unix command line prompt. At the prompt, enter: perl -pi -e ‘s/old_string/new_string/g’ file_pattern Replace old_string with the string you want to replace and new_string with the replacement string. Replace file_pattern with the files you want to modify. This can be a shell wildcard, such as *.html. The…
-
Sysctl optimization
You can find a lot of optimization tips for Linux kernel configuration over the Internet, but not all of them are explained well. Here is our optimization setup for your attention. We will go step by step to have some explanation on what we’re going to do and optimize. All these configuration lines are being…
-
How to Set Up SSH Keys on Ubuntu 20.04
Introduction SSH, or secure shell, is an encrypted protocol used to administer and communicate with servers. When working with an Ubuntu server, chances are you will spend most of your time in a terminal session connected to your server through SSH. In this guide, we’ll focus on setting up SSH keys for an Ubuntu 20.04…