How to Change OpenCart Timezone

Go to system/startup.php and find following lines of code: if (!ini_get(‘date.timezone’)) { date_default_timezone_set(‘UTC’); } Replace with following lines of code by changing to your timezone date_default_timezone_set(‘Australia/Sydney’); Synchronize PHP and Database Timezone The query we use to set database timezone if you are super admin is below: SET time_zone=’offset’; But everyone has no super admin access…

How to move OpenCart website from one domain to another?

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…

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…

WHM / cPanel : 550 Please turn on SMTP Authentication in your mail client

ERROR:- The response from the remote server was: 550 Please turn on SMTP Authentication in your mail client. mail-qk1-f172.google.com [209.85.222.172]:36503 is not permitted to relay through this server without authentication. SOLUTION:- Manage SMTP restrictions Click Enable to deny users the ability to bypass your mail server to send mail. To allow users the ability to bypass your…

How to redirect HTTP to HTTPS Using .htaccess

Chrome and Firefox have started showing insecure warnings on sites without SSL certificates. Without SSL, your website will show insecure to the visitors. Therefore, using an SSL-encrypted connection for safety, accessibility or PCI compliance reasons is necessary. It becomes very important to redirect from HTTP to HTTPS. What is SSL? SSL (Secure Sockets Layer) is…

How to Check and Upgrade your Linux Kernel Version via Command Line in CentOS 7

This article describes how to check and upgrade the Linux kernel in OpenVZ, KVM, and Dedicated Servers (including the CloudLinux platform). Checking the Kernel Version To check system parameters such as the kernel version and build date, OS architecture, hostname, etc., you can use the uname command, which is included in coreutils package: # uname -rv 3.10.0-693.11.6.el7.x86_64 #1 SMP Thu Jan…

How to Check Apache Concurrent Connections in Linux Using netstat and ss Command?

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…