Similar Posts
AutoSSL issue with cpnginx
cat /usr/local/nginx/conf/vhost.ssl.d/domainname.com.conf Add below lines before – location = /favicon.ico { #………….. Cpnginx OCSP stapling protection for security start ……………….. ssl_stapling on; ssl_stapling_verify on; ssl_trusted_certificate /usr/local/nginx/conf/ssl.ca.d/gameoncricket.com_ca-bundle; resolver 127.0.0.1 8.8.8.8 4.2.2.1 8.8.4.4 4.2.2.2 valid=300s; resolver_timeout 5s; #………….. Cpnginx OCSP stapling protection for security end………………….. After above, nginxctl rebuildvhost domainname.com check nginx status – systemctl status nginx.service…
Error: Invalid command ‘SSLEngine’, perhaps misspelled or defined by a module not included in the server configuration
it’s necessary to install mod_ssl. On RHEL and CentOS, this is done with yum install mod_ssl.
WP Contact Form 7 Split/Separate fields
Step-1: Add 2 hidden fields to the contact form [hidden your-first-name id:first-name-p] [hidden your-last-name id:last-name-p] Step-2: Write below jquery script in the footer $(“#name_field_id”).focusout(function(){ str = $(this).val(); if(str){ s = str.split(/(?<=^\S+)\s/); //split string in name field after first space found. $(“#last-name-p”).val(s[1]); //s[1] value after the first space set to hidden field. } }); Output will…
How to use sed to find and replace text in files in Linux / Unix shell
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…
How do I set up an FTP server and an FTP user on my Lightsail instance?
I want to set up an FTP server and FTP user on my Lightsail instance running Amazon Linux 2, CentOS, Ubuntu or Debian. How can I do this? Resolution Note: FTP transmits all data and passwords as plain text. SFTP is a more secure way to connect to your instance and transmit data. For information on…
Install Linux Centos 7, Nginx, MySQL, Postgres, PHP 8.0
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…