We do support Round the Clock 24 x 7 x 365 (+91) 883 012 3924
header-image

L3 Web Hosting Blog

cPanel, Plesk, Wordpress Hosting SSD disk

Check out L3WebHosting blog for tips and in-depth articles on web hosting services !!

How To Generate An SSL Certificate Signing Request (CSR) In CPanel

In order to install an SSL certificate, you will first need to generate a CSR (Certificate Signing Request)

# Login to cPanel
# Click on Security >> SSL/TLS >> Certificate Signing Requests (CSR)
# Click on the link Generate, view, or delete SSL certificate signing requests.
# Enter details in Generate a New Certificate

Key :
Domains :
City :
State :
Country :
Company :
Company Division :
Email :

# Click on Generate button to generate a CSR.

Once the CSR is generated, you need to provide it to the Certificate Authority like Comodo, RapidSSL etc and they will provide you the SSL certificate and CA bundle for browser compatibility.

Please check How To Install An SSL Certificate on cPanel

Please do contact us at esupport@L3webhosting.com if you require any further assistance.

How To Enable Nginx With PHP-FPM On Plesk

Nginx is supported with PHP-FPM which is a fast and reliable web server.
Plesk Control Panel supports Nginx With PHP-FPM.

Install Nginx with below steps :
# Open Plesk control panel with Admin user or the privileged user
# Click on Tools & Settings
>> Updates and Upgrades
>> Add or Remove components
>> Web Hosting
and install Nginx

Now we need to activate Nginx service in Plesk :
# Open Plesk control panel with Admin user or the privileged user
# Click on Tools & Settings
>> “Service Management”
>> Reverse proxy service (nginx)
and start Nginx service

Please do contact us at esupport@L3webhosting.com if you require any further assistance.

Find where inodes are being used

If you have root user access of your Linux server you can find out where inodes are being used

for i in `find . -type d `; do echo `ls -a $i | wc -l` $i; done | sort -n

This will dump a list of every directory on the filesystem prefixed with the number of files / sub directories in that directory.
The directory with the largest number of files will be at the bottom.

Please do contact us at esupport@L3webhosting.com if you require any further assistance.

How to Find dom-id or Domain ID of Virtual Machines Running On XenServer

Run the following commands to get the Domain ID of a particular VM which running on your XenServer

xl list | grep -i “VM_NAME”

OR

list_domains | grep -i VM_UUID

OR

To find the UUID of the VM , Click on the VM >> Click on General Tab >> Right click On UUID > copy the UUID to clipboard > Now you can paste the same while executing the command –

list_domains | grep -i UUID_Of_THE_VM

Please do contact us at esupport@L3webhosting.com if you require any further assistance.

How To Shut Down XenServer 7.0 Virtual Machine Which Is Unresponsive In Pending Or Amber State

How to shut down a virtual machine which is in a pending state or amber state or not respond to any requests in XenServer 7.0.

Steps :
1. Find the domain ID of the VM.
Run the following command to obtain the domain ID of a particular VM running on XenServer.

# xl list | grep -i “VM_NAME”

OR

# list_domains | grep -i VM_UUID

OR

To find the UUID of the VM , Click on the VM >> Click on General Tab >> Right click On UUID > copy the UUID to clipboard > Now you can paste the same while executing the command –

list_domains | grep -i UUID_Of_THE_VM

2. Open a Command Line Interface on the XenServer running the VM and run the following command:

#xl destroy DomainID

You can contact us at esupport@L3webhosting.com if you require any further assistance.

How to Shut Down XenServer 6.0 Virtual Machine which is Unresponsive in Pending or Amber State

How to shut down a virtual machine which is in a pending state or amber state or not respond to any requests in Xencenter 6.0.

Steps :
1. Disable High Availability (HA) so you don’t run into issues
2. Log into the Xenserver host that is running your VM with issues via ssh or console via XenCenter
3. Run the following command to list VMs and their UUIDs

xe vm-list resident-on=uuid_of_host

4. First you can try just the normal shutdown command with force

xe vm-shutdown uuid=UUID_from_step_3 force=true

5. If that just hangs, use CONTROL+C to kill it off and try to reset the power state. The force is required on this command

xe vm-reset-powerstate uuid=UUID_from_step_3 force=true

6. If the VM is still not shutdown, we may need to destroy the domain
7. Run this command to get the domain id of the VM. It is the number in the first row of output. The list will be the VMs on the host. Dom0 will be the host itself and all numbers after are running VM

list_domains

8. Now run this command using the domain ID from the output of step 7

/opt/xensource/debug/xenops destroy_domain -domid DOMID_from_step_7

Please do contact us at esupport@L3webhosting.com if you require any further assistance.

How to install mod_evasive on cPanel server

mod_evasive is a module for Apache to provide evasive action from DoS HTTP activity or DDoS attack or brute force attack.
It works by inspecting incoming traffic to an apache web server using a dynamic hash table of IP addresses and URLs, then blocks traffic from IP addresses that exceed a predetermined threshold.

Follow below steps for installing mod_evasive on cPanel server

cd /usr/local/src
wget http://www.zdziarski.com/blog/wp-content/uploads/2010/02/mod_evasive_1.10.1.tar.gz
tar -xzf mod_evasive_1.10.1.tar.gz
cd mod_evasive
apxs -cia mod_evasive20.c
/usr/local/cpanel/bin/apache_conf_distiller –update

Add the following code into /usr/local/apache/conf/includes/post_virtualhost_2.conf file.
OR you can do it through WHM > Apache Configuration > Include Editor -> Post VirtualHost Include (choose version 2.2.x).

LoadModule evasive20_module modules / mod_evasive20.so

DOSHashTableSize 3097
DOSPageCount 2
DOSSiteCount 50
DOSPageInterval 1
DOSSiteInterval 1
DOSBlockingPeriod 3600

You can contact us at esupport@L3webhosting.com if you require any further assistance.

How to enable SpamAssassin by default on cPanel server

SpamAssassin identify unsolicited bulk email, more commonly known as spam, and send it to a separate folder (Spam Box) or automatically delete it (Auto-Delete) from your email account.

By default, SpamAssassin on cPanel is disabled so that the user’s cpanel side must be manually enabled.

Follow below steps to enable SpamAssassin by default for all cPanel accounts.

# Login to WHM
# Go to “Service Configuration”
# Go to “Exim Configuration Manager”
# Enable “Apache SpamAssassin: Forced Global ON” option and click on “Save” button

You can contact us at esupport@L3webhosting.com if you require any further assistance.

IP MISSING in “List Accounts”

Some time “List Accounts” shows “MISSING” IP for cPanel account.

This could be due to damaged json files that are destroyed for service queueprocd.
“queueprocd” is a service that updates internal data after account creation, terminate etc. The corrupted file causes the service not to run normally and does not update the internal configuration of Apache and WHM after account creation.

Inorder to fix it, we need to follow below steps :

[root@L3webhosting.com] # cd /var/cpanel/taskqueue
[root@L3webhosting.com] # mv servers_sched.json servers_sched.json-BK
[root@L3webhosting.com] # mv servers_queue.json servers_queue.json-BK
[root@L3webhosting.com] # /scripts/restartsrv_queueprocd

You can contact us at esupport@L3webhosting.com if you require any further assistance.

Enable mod_deflate GZIP Compression on cPanel

Gzip compresses your webpages and style sheets before sending them over to the browser. This drastically reduces transfer time since the files are much smaller.

First need to install “mod_deflate” apache module through EasyApache 4

Add below lines to configure “mod_deflate” in your apache configuration file.


# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE image/x-icon

# /etc/init.d/httpd restart
Or
# service httpd restart

Also you can enable mod_deflate GZIP Compression through cPanel :
Step 1 : Login to cPanel Account
Step 2 : In the Software/Services Section find the “Optimize Website” option.
Step 3 : Now Disable or Enable the Compression of the content available on your website.
Step 4 : Click On “Update Setting” Button.

You can contact us at esupport@L3webhosting.com if you require any further assistance.