Remove /tmp/ cronjob
5 0 * * * /bin/find /tmp/ -type f -print0 | xargs -0 rm
Update LANG Edit environtment vi /etc/environment add these lines… LANG=en_US.utf-8 LC_ALL=en_US.utf-8 Update and upgrade Core yum -y update yum -y upgrade Install NGINX yum install epel-release yum install nginx Start NGINX and Enable Service systemctl start nginx systemctl enable nginx Install PHP 8.0 Enable Remi Repo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm Check yum –disablerepo=”*” –enablerepo=”remi-safe” list php[7-9][0-9].x86_64…
Find and replace text within a file using sed command The procedure to change the text in files under Linux/Unix using sed: Use Stream EDitor (sed) as follows: sed -i ‘s/old-text/new-text/g’ input.txt It tells sed to find all occurrences of ‘old-text‘ and replace with ‘new-text‘ in a file named input.txt The s is the substitute…
The way to reset the root password on centos7 is totally different to Centos 6. Let me show you how to reset root password in CentOS 7. 1 – In the boot grub menu select option to edit. 2 – Select Option to edit (e). 3 – Go to the line of Linux 16 and…
What’s ss Command? ss stands for socket statistics. It is used to dump socket statistics about network/socket connections. It’s showing information similar to netstat, it works better and faster compared with netstat. It can display more TCP and state information than other tools. Since the ss command gets all the information directly from kernel space…
In this guide, we will integrate the Google reCAPTCHA in the PHP contact form. Utilizing this Google reCAPTCHA code, we can validate the human users and protect the form of submission from bots. Integrating Google reCAPTCHA is recommended because It is an effective and efficient way of validating the user against bots. As we know…
OpenCart is one of the simplest e-commerce platforms to build an online store. OpenCart offers you an ‘easy-to-work-with’ code-base with which you can get an e-Commerce site online, quickly. If you are looking for a safe way to move OpenCart website from one domain to another, follow the process below. Here are the steps to…