Knowledgebase : Web Hosting > Tutorials

Our default firewall rules allow most applications/software to run without issues on our shared, cloud web hosting, semi-dedicated, and reseller hosting plans. If you're running an application/software which requires we whitelist an IP or open a non-standard port please open a ticket with our support department and provide us with:

  • The port(s) and/or IP(s) you need whitelisted.

  • An explanation of why the whitelist is necessary.

  • The name of the application/software you're attempting to use.

Any website hosted through Hawk Host which is using Hawk Host's nameservers (nsX.hawkhost.com) will have full control over their DNS zone using the Zone Editor interface found in cPanel. You can use this interface to add or edit your domains A, AAAA, CAA, CNAME, DMARC, MX, SRV, and TXT records.

Editing existing DNS Records for your domain

  1. Login to your hosting accounts cPanel and use the search to access the "Zone Editor" interface:



  2. You will be redirected to the Zone Editor and a list of all domains hosted from your account will be shown.

  3. Locate the domain you're looking to modify and to the right of the domain click the "Manage" button:



  4. After clicking Manage you will be redirected to your domain DNS zone. All your existing DNS records will be listed with an "Edit" button listed to the right of each record. Use this button to edit any of the provided values for your existing DNS records.

Adding an A Record to your domain

  1. Login to your hosting accounts cPanel and use the search to access the "Zone Editor" interface:



  2. You will be redirected to the Zone Editor and a list of all domains hosted from your account will be shown.

  3. Locate the domain you're adding an A record to and to the right of the domain click the "+A Record" button:



  4. A popup window will appear asking for your domain for the new record along with the IP address where the record should be pointed. For example if we wanted to add an A record for blog.yourdomain.com pointed to the IP address 1.2.3.4 we would enter those details as follows:



  5. Click "Add An A Record" to save your changes and add the record to your DNS zone for your domain.

Adding a CNAME Record to your domain

  1. Login to your hosting accounts cPanel and use the search to access the "Zone Editor" interface:



  2. You will be redirected to the Zone Editor and a list of all domains hosted from your account will be shown.

  3. Locate the domain you're adding an A record to and to the right of the domain click the "+CNAME Record" button:



  4. A popup window will appear asking for your domain for the new record along with the CNAME (destination) where the record should be pointed. For example if we wanted to a CNAME record for blog.yourdomain.com and redirect those requests to yourotherdomain.com we would enter those details as follows:



  5. Click "Add A CNAME Record" to save your changes and add the record to your DNS zone for your domain.

Adding an MX Record to your domain

  1. Login to your hosting accounts cPanel and use the search to access the "Zone Editor" interface:



  2. You will be redirected to the Zone Editor and a list of all domains hosted from your account will be shown.

  3. Locate the domain you're adding an MX record to and to the right of the domain click the "+MX Record" button:



  4. A popup window will appear asking for MX Priority (0 is the lowest possible) along with the Destination (your email server) where the record should be pointed. For example if we wanted to an MX record for with a priority 0 and route mail through yourdomain.com we would enter that information as follows:



  5. Click "Add An MX Record" to save your changes and add the record to your DNS zone for your domain.

Adding a DMARC Record to your domain

Please refer to our KB article How do I create DMARC entries for my domain names? for a guide on creating DMARC records for your domain.

Adding other (AAAA, CAA, SRV, TXT) DNS Records to your domain

  1. Login to your hosting accounts cPanel and use the search to access the "Zone Editor" interface:



  2. You will be redirected to the Zone Editor and a list of all domains hosted from your account will be shown.

  3. Locate the domain you're looking to modify and to the right of the domain click the "Manage" button:



  4. From the middle-right of the Zone Records page click the arrow dropdown next to "+ Add Record" to add your new record. Select your record type from the provided dropdown:



  5. Follow the provided prompts to complete the process of adding your new record to this domains zone file.

    Yes, do the following within cPanel:


    1) Search for the "Password Protect Directories" function within cPanel

    2) Once you click it you will be prompted for which website you would like to password protect a directory, select your website and click "Go"

    3) Select the folder you wish to password protect

    4) You'll be brought to a page where you can enable/disable password protection on the directory, add/modify/delete authorized users
    This guide assumes you've already setup your e-mail accounts through cPanel if you haven't please login to your cPanel account and select the "E-Mail Accounts" option.

    1. Once you open up the Mail client you will be prompted with a "Welcome to Mail" window asking you to fill out your name, e-mail and password. Fill it out according to the e-mail account you setup. (Picture)

    2. In the following dialog it will ask you to configure your "Incoming Mail Server". I would recommend you select either "POP" or "IMAP" for the account type. Inside the "Incmoing Mail Server" input box you will be putting "mail.yourdomain.com" (replace "yourdomain.com" with your actual domain). (Picture)

    3. You will now be asked to setup your "Outgoing Mail Server". This is the same as the previous dialog except you'll need to check "Use Authentication". (Picture)

    4. Once you hit "Continue" from the previous dialog it should attempt to connect. If everything was successful you should be presented with the Mail client ready for use. If you have trouble at this point please contact support with any error(s) you're receiving.

    This article assumes you have already installed the LiteSpeed Cache (LSCache) plugin for WordPress. If you have not yet installed and enabled LiteSpeed WordPress cache plugin for your WordPress site please refer to our KB article: How to install and enable LiteSpeed Cache plugin for WordPress

    All Hawk Host shared, reseller, and semi-dedicated plans provide support for Redis and Memcached. Instead of using an IP/port for these services we provide a socket you can use to connect to either application. This article will describe how to configure your LiteSpeed WordPress cache plugin to use a Redis or Memcached socket:

    1. Login to your cPanel account and use the search to access the "Server Application Manager" interface:



    2. From the Server Application Manager interface click "Enable" to spin up your Redis or Memcached instance:



    3. It will take approximately 5 minutes for the instance to start. While you wait for your Redis or Memcached instance to start, use the cPanel search for the "Select PHP Version" interface to ensure we have the right PHP extensions enabled:



    4. From the "Select PHP Version" interface click the "Extensions" tab:



    5. From the Extensions tab make sure you have enabled either the Redis or Memcached PHP extension, whichever you intend on using for your LSCache setup:



    6. Use cPanel search to go back to the "Server Application Manager" interface. You should now see a Socket created with a path provided:



    7. Now that everything is completed in cPanel you will need to login to your websites WordPress admin dashboard. From the WordPress admin dashboard use the left side navigation menu and click the "LiteSpeed Cache" plugin:



    8. From the LiteSpeed Cache plugin dashboard click the "Cache" menu from the left side navigation:



    9. From the LiteSpeed Cache Settings interface click the "[6] Object" tab:



    10. Change the "Object Cache" toggle to "ON":



    11. Select your desired cache method, either Memcached or Redis.

    12. In the "Host" field enter the Socket path from the Server Application Manager in cPanel from step 6.

    13. Change the "Port" field to 0.

    14. All other settings can be left as default unless you have a reason to change them. Verify your entries and click "Save Changes" to complete the process:

    15. If your configuration is correct you should see a "Connection Test: Passed" under the Status display:


    cPanel has included video tutorials for every option under the control panel. To access these tutorials and get help with the options, look for the "Video Tutorials" section in your cPanel.

    To utilize cloud compute snapshots you must first purchase the feature. Please refer to this KB article for a guide on how to purchase and enable snapshots for your cloud compute. 

    To create, revert, or delete a cloud compute snapshot:

    1. Login to your client area at https://my.hawkhost.com/clientarea.php

    2. Once you've logged in use the main menu navigation to select "Services" and then "My Services":



    3. Click the green "Active" button to the right of the listed compute service you will be using with snapshots:



    4. From the compute control panel select the "Snapshots" link:



    5. There will be three options available to you. Take Snapshot, Revert, and Delete:

      Take Snapshot: Use the "Take Snapshot" option to create a point in time complete snapshot of your compute. This will be a full and complete snapshot of your entire compute and all its settings as it exists when the snapshot is created.

      Revert: The "Revert" option is used when you wish to roll back your compute to a previous date/snapshot. This will replace the existing compute with the contents/settings of the compute from the time and date the snapshot was created. This will overwrite the existing compute with the full contents of the selected snapshot. Be careful when reverting as this process is not reversible. It is recommended you take a manual backup of any important data, websites, files, or other settings from the compute before completing a revert. 

      Delete: The "Delete" option will permanently delete the snapshot. Use this option if a snapshot is no longer needed, or you need to create a newer snapshot and do not have any additional purchased snapshot slots available.
    Error pages are determined by the HTTP

    You can add custom error pages by logging into cPanel and selecting the the "Error pages" under "Advanced". From you you can add custom error pages in HTML and SHTML form.

    You can also have custom error pages by simply modifying the .htaccess file in your account with the following:

    ErrorDocument 403 /403.html
    ErrorDocument 404 /404.html

    That would redirect anyone who received a 403 or 404 to /403.html or /404.html.


    Example Error Codes (Full list)

    400 - Bad Request
    401 - Authorization Required
    403 - Forbidden
    404 - Not Found
    405 - Method Not Allowed
    406 - Not Acceptable (encoding)
    407 - Proxy Authentication Required 
    408 - Request Timed Out
    409 - Conflicting Request
    410 - Gone
    411 - Content Length Required
    412 - Precondition Failed
    413 - Request Entity Too Long
    414 - Request URI Too Long
    415 - Unsupported Media Type
    500 - Internal Server Error
    501 - Not Implemented
    502 - Bad Gateway 
    503 - Service Unavailable
    504 - Gateway Timeout505 - HTTP Version Not Supported


    You can view the CPanel documentation at the official website: http://www.cpanel.net/support/docs/index.htm

    SpamExperts is an enterprise level email filtering solution that is included for free with all shared, reseller, and semi-dedicated hosting plans. If you'd like to utilize our incoming email filtering on your account, you can do so through cPanel. Activation takes less than 5 minutes, at which point all of your incoming mail will be passed through our filtering/detection systems. By default, all outgoing email is filtered through our systems. As a result no action is necessary on your behalf to utilize outgoing filtering. To enable SpamExperts incoming filtering:

    1. Login to cPanel for your account.

    2. Once you've logged in to cPanel use the search bar to look for the "Professional Spam Filter" and click on the link:



    3. Under the Professional Spam Filter interface, click the link titled "Login". This will activate and configure SpamExperts on your hosting account:



    4. You will then be redirected to your SpamExerts user interface. From here you can configure your settings, search for filtered mail/spam, create whitelists and blacklists, and much more. We suggest spending 10-15 minutes familiarizing yourself with the user interface/control panel.

    Please note that the default settings we create when you activate SpamExperts will address nearly all of the common requirements for most users. You're not required to do any further configuration or modification unless you deem it necessary for your domain(s)/setup. Should you experience any issues activating SpamExperts, or if you're unsure about a specific feature or setting, our support team would be happy to help. Please submit a ticket at https://my.hawkhost.com/submitticket.php for further assistance.

    Proactive Defense is a unique Imunify360 feature that can prevent malicious activity through PHP scripts. It is available as a PHP module for Apache and LiteSpeed web servers and analyzes script activity using known patterns like obfuscated command injection, malicious code planting, sending spam, SQL injection etc. This feature is available on all shared, cloud web hosting, semi-dedicated, and reseller hosting plans.

    To enable Proactive Defense:

    1. Login to cPanel and use the search to locate the Imunify360 interface. Click the Imunify360 icon.



    2. From the Imunify360 interface, select the Proactive Defense option from the top menu navigation.

    Using Proactive Defense:

    1. Proactive Defense offers three modes:

      Disabled: Proactive Defense will not be used for your account.
      Log only: Proactive Defense will detect/identify malicious PHP scripts, code, etc. but it will not take action, only log the events.
      Kill Mode: Proactive Defense will immediately kill the PHP script performing malicious activity under your account. Kill Mode also logs events in addition to killing scripts.

    2. When Kill Mode is enabled, any detected malicious PHP scripts and their actions will be displayed under Detected Events. When an event is detected you will be given Action options on how to handle the Detected Event. Options include:

      View file content: View the content (code) of the malicious PHP script
      Move IP to the Black List: Block the IP which called the script and prevent it from completing the same request in the future
      Move file to Ignore List (ignore detected rule): Allows you to exclude the file from Proactive Defense analysis for a particular rule. Useful in the case of a false-positive detection, or when debugging a detection issue.
      Move file to Ignore List (ignore all rules): Allows you to exclude the file from Proactive Defense for all rules
      Remove file from Ignore List: Removes the file form your Ignore List and will enable Proactive Defense detection on the file again

    Additional reading/details about Proactive Defense can be found on the the Imunify360 Documentation Page

    A lot of times, you'll find you need to block an IP or an entire range of IPs from accessing your website for various reasons. There are a few ways to do this:

    1. Login to cPanel, and type 'IP Deny' into the top left finder. (Picture)

    2. If you want to block a single IP, type in the IP and click 'add'. (Picture)

    3. Once added, you should see the entry at the bottom of the IP Deny Manager page. (Picture)

    4. If you want to block a range of IPs, type in the first, second, or third octets and click 'add'. (Picture)

    5. Once added, you should see the entry at the bottom of the IP Deny Manager page. (Picture)

    Alternatively, you can modify your .htaccess file, which can be found in the root directory of your websites FTP. Below is a quick how-to on doing this, but some further reading is available on Google for those who are interested.

    1. To block a single IP:

      order allow,deny
      deny from 192.168.1.1
      allow from all

    You'll want to replace 192.168.1.1 with the IP you want to deny.

    1. To block multiple IPs:

      order allow,deny
      deny from 192.168.1.1
      deny from 201.202.203.204
      deny from 8.18.250.251
      allow from all

    Again make sure you're replacing these IPs with the ones you actually want to ban.

    1. To block an entire range of IPs:

      order allow,deny
      deny from 192.168.
      allow from all

    This will block any incoming requests from IPs starting with 192.168.

    Hawk Host is an official hosting provider of CloudFlare. As a result, we have implemented a module right in cPanel to allow one click activation of CloudFlare with any domain on our servers. To active CloudFlare on any Hawk Host shared hosting account:

    1. Login to your cPanel account and type 'CloudFlare' into the top left finder

    2. If this is the first time accessing the CloudFlare interface, you will be asked to create an account. Provide your email address and agree to the terms of service once you read it. You will then be emailed a welcome email by CloudFlare for your Hawk Host account

    3. Once your account is created, you will be taken to the CloudFlare interface which lists all of your accounts domains. By default, they will not be powered by CloudFlare

    4. To enable CloudFlare for any domain, simply click on the cloud. Once selected, CloudFlare will be enabled and the cloud will go from a grayed out image to bright orange

    5. Once enabled, you can select the 'Statistics and Settings' option to view traffic for your domain and also modify the security settings. To view all of your available options, you must login to your CloudFlare account directly

    6. Your site is now fully CloudFlare enabled. To disable CloudFlare, simply select the orange cloud again and it will be grayed out, indicating CloudFlare is no longer enabled
    Note: CloudFlare does not modify the base A record for your domain (IE: domain.com) and only modifies sub-domains / CNAME records. If you want your base domain to be CloudFlare enabled you'll need to have it redirect to www.yourdomain.com. To achieve this follow these instructions:
    1. Add or modify your existing .htaccess file (usually located in /home/yourusername/public_html/.htaccess) and add the following lines:
    2. RewriteEngine On
      RewriteCond %{HTTP_HOST} ^yourdomain.com [NC] # Replace with your actual domain
      RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301] # Replace with your actual domain

    All shared, cloud web hosting, semi-dedicated, and reseller plans include the ability to edit your PHP options through cPanel using the Select PHP Version interface. Common options include:

    • Max execution time (max_execution)time): How long your PHP script can run before it times out and the process is killed
    • Max input vars (max_input_vars): Number of variables in a GET/POST request that will be accepted
    • Memory limit (memory_limit): The maximum amount of memory (RAM) a single PHP script/process can use
    • Upload max filesize (upload_max_filesize): Sets the limit for how large an uploaded/attached file may be when processed through a PHP script

    To adjust your PHP Options:

    1. Login to cPanel for your hosting account and use the search to find the "Select PHP Version" interface:



    2. From the Select PHP Version interface select the "Options" menu:



    3. Use the provided forms and dropdown menus to adjust your PHP options as required by your scripts/software:



    4. When you make changes you will see a dialogue menu in the top right of your screen confirming the changes were saved:

    In order to allow remote hosts to connect to your MySQL databases, our support team needs to whitelist the IP(s) you're connecting from through our firewall. Please open a ticket with our support department and provide us with a list of the IP(s)/hosts you need whitelisted for remote MySQL access.

    You also need to specifically allow remote connections from the host you're trying to connect from.

    1. Login to cPanel for your account.

    2. Type 'Remote MySQL' into the top left finder, and click on the 'Remote MySQL' interface icon:



    3. Fill out the 'Add Access Host' fields with your IP details:



    4. Once added, you'll now see the IP in the 'Manage Access Hosts' section:

    All shared, cloud web hosting, semi-dedicated, and reseller hosting plans offer the following PHP versions:

    • PHP 4.4 (EOL)
    • PHP 5.1 (EOL), PHP 5.2 (EOL), PHP 5.3 (EOL), PHP 5.4, PHP 5.5 (EOL), PHP 5.6 (EOL)
    • PHP 7.0 (EOL), PHP 7.1 (EOL), PHP 7.2 (EOL), PHP 7.3, PHP 7.4
    • PHP 8.0

    Any PHP version with (EOL) means it has reached its end of life and is no longer receiving feature updates. Custom security patches are still applied through CloudLinux however it is strongly recommended to not run any EOL version of PHP. We recommend running PHP 7.3 or newer.

    To change your accounts PHP version:

    1. Login to cPanel for your account.

    2. In the top left search bar, type "Select PHP Version":



    3. From the Select PHP Version interface use the "My Domains" select your new default PHP version:



    4. Select your desired PHP version and then click "Set as current":

    From this interface you can also enable/disable various modules specific to your desired PHP version. You can also modify your custom php.ini settings using the "Options" menu from the top navigation. Refer to our KB article for more details on modifying PHP options or extensions

    Please note for these changes to take effect on all addon domains you will need to make sure your sites are set to the "inherit" setting through the MultiPHP Manager interface in cPanel.

    All of our accounts fully support the use of G Suite / Google Apps. To configure G Suite email with your account, either contact our support department or make use of the Zone Editor within cPanel. Be sure to fully consult all relevant Google documentation before making changes to your account.

    Changing your MX records to use G Suite Email
    1. Login to cPanel for your domain

    2. Type 'Zone Editor' into the search bar in cPanel and click the icon




    3. Click 'Manage' next to the domain you're configuring for G Suite email



    4. Click 'Edit' next to your existing MX record and modify the record to match the Priority 1 record from G Suite (Click here for G Suite Documentation) and then click 'Save Record'



    5. Click 'Add Record' and proceed to add the MX records per G Suite documentation until all 5 records are added



    6. Once your G Suite records are added, use the cPanel search to find the 'Email Routing' interface

    7. Make sure your Email Routing is either configured to 'Automatic' and showing 'Remote', or manually change the setting to 'Remote'.


    All of your email will now be routed through G Suite for the domain(s) you modified.


    Creating CNAME records to point to G Suite:
    1. Login to cPanel for your domain

    2. Type 'Zone Editor' into the search bar in cPanel and click the icon



    3. Click 'Manage' next to the domain you're configuring a CNAME record

    4. Click 'Add Record' and modify the name / TTL / record settings accordingly


    Repeat step 4 as necessary until each CNAME is created.
    In order to create a MySQL database you must first login to cPanel and follow these steps:

    1. Select the "MySQL Databases" option (you can use the search in the top left to find the option quickly) (Picture)

    2. Under "Create New Database" there is a text box to put your database name. Put in the name you would like and click "Create Database" (Picture)

    3. After you add the database you now must create a user and assign it to that database. To do this scroll down on the page and you will see an area to create a user. Enter the username and password you want and click "Create User" (Picture)

    4. Now you must assign the user to your database. Further down on the page there is a section called "Databases" - it will list your database and user you just created. Make sure the two dropdown boxes match the correlate to the database and user you just created and then click "Add" (Picture)

    5. You will be prompted with a screen asking for which permissions you want to grant the user. If you're not sure simply click "All Privileges" and click the submit button. (Picture)

    6. You can now use your database by supplying your script with the appropriate database and username.

    DMARC (Domain-based Message Authentication, Reporting, and Conformance) allows you to configure how a mail server handles receiving email from a specific domain when the emails SPF or DKIM checks fail. DMARC records can be added using the Zone Editor interface in cPanel:

    1. Login to cPanel for your hosting account.

    2. Use the cPanel search to locate and click on the "Zone Editor" interface:



    3. From the "Zone Editor" interface you will see your domain(s) listed. Click "Manage" to the right of the domain name that needs a DMARC record:



    4. You will be redirected to the Zone Editor for your domain. From the middle-right of the page select the dropdown arrow next to "+ Add Record" and select "Add "DMARC" Record":