Category: advanced

Create a PHP file to display the date & time

To display the current server configured date and time on your web hosting account, you can place the following code listed below into a php file. <?php echo date(“l jS \of F Y h:i:s A”); ?> The above code will display the current date as configured in the format of: Day of the week Day

Continue reading…

How to force www or non-www versions of your website using .htaccess rules

To force your website to use either “www” or “non-www” versions, simply use the code below in your .htaccess file in the public_html root OR the location of your websites main files. You may need to create the .htaccess file (AKA dot htaccess) To force www: RewriteEngine On RewriteCond %{HTTP_HOST} ^yourdomain.com [NC] RewriteRule ^(.*)$ http://www.yourdomain.com/$1

Continue reading…

How to Change the PHP Timezone on Shared and Reseller Web Hosting

Quick Steps: Step 1. Login to cPanel and locate “Select PHP Version”. Step 2. Click on “Switch to PHP options” on the far right side. Step 3. Specify the timezone under “date.timezone” option. To change the timezone on your hosting account, you’ll first need to log into cPanel and locate the “Select PHP Version” option. Once you’ve clicked the

Continue reading…

403 Forbidden Error | Solutions | VeeroTech Hosting

When you see “403 Forbidden” when trying to access your website use the following guide to correct it. Quick Steps: Step 1: Check for incorrect .htaccess rules. Step 2: Check for improper file access permissions. Step 3: Check to see if you have selected an incorrect version of PHP in cPanel. If you see a

Continue reading…

Install CSF (ConfigServer Security & Firewall) via SSH on CentOS 7

In this guide we’ll explain how to install CSF on your CentOS 7 VPS. All commands – without sudo. systemctl disable firewalld systemctl stop firewalld yum clean all yum -y update yum -y install wget perl ipset unzip net-tools perl-libwww-perl yum -y install perl-LWP-Protocol-https perl-GDGraph bind-utils cd /opt wget https://download.configserver.com/csf.tgz tar -xzf csf.tgz cd csf

Continue reading…