Tag Archives: article

How to Install LEMP on Ubuntu 16.04

The following article describes how to install a LEMP stack on an Ubuntu 16.04 VPS. LEMP (Linux, Nginx, MySQL, PHP) should not be confused with the popular LAMP (Linux, Apache, MySQL, PHP) stack. This tutorial is for the LEMP (Nginx) stack and it s commonly used on Ubuntu 16.04 servers. Update the server Make sure that all installed packages on your Ubuntu 16.04 VPS are up to date. apt-get update && apt-get upgrade You can also configure automatic updates. Install Nginx Before installing the Nginx web server, make sure that there is no other web server like Apache installed on the [ ]

12 useful examples of Linux grep command

In this article, we are going to provide you with useful examples of Linux grep command including the two variant programs: egrep and fgrep. grep (global regular expression print) is used to search for text strings and regular expressions line by line which match a specified pattern within one or more files. Listed below are some simple and useful examples of how to use the grep command on Linux and search for a string in one/multiple files. Search for lines containing DB_USER in WordPress configuration file (wp-config.php): # grep ‘DB_USER’ wp-config.php define(‘DB_USER’, ‘wpuser’); Search for all PHP files containing str_replace [ ]