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 !!

Error: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80

Cause :

Another process already uses 80 port and Apache cannot bind to it.

Resolution :

Evaluate which process(es) may be using port 80 with the following commands:

fuser -n tcp 80

ps aux | grep PID

// PID equal to the ports listed with the fuser command.

OR

ss -plnt sport eq :80

Then, kill of the offending processes.

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

Install Lighttpd Web Server on Linux

Lighttpd is an open source web server.
Lighttpd is designed and optimized for high performance environments with low memory and CPU utilization.

# Use below command to install Lighttpd on CentOS

# yum install lighttpd lighttpd-fastcgi

# For systemd systems

# sytemctl start lighttpd

# For sysvinit systems

# service lighttpd start

# Check Lighttpd version

# lighttpd -version
lighttpd/1.4.39 (ssl) – a light and fast webserver
Build-Date: May 23 2018 10:26:17

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

How to Install/Enable ELRepo on CentOS/Linux

ELRepo is a CentOS Community Approved third-party RPM repository mainly focuses on hardware related packages to enhance your experience with Enterprise Linux.

1. Import the official GPG key of ELRepo Project.

# rpm –import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org

2. Run the below commands to Install EPEL Repository to RHEL, CentOS 6 & 7 Systems.

[Install/Enable ELRepo for RHEL 7/CentOS 7]
# rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm

[Install/Enable ELRepo for RHEL 6/CentOS 6]
# rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm

3. Run the below command to verify and confirm the ELRepo is installed in your system.

# yum repolist
elrepo ELRepo.org Community Enterprise Linux Reposit 123

4. Use the below command to list out, list of packages available from ELRepo.

# yum –disablerepo=”*” –enablerepo=”elrepo” list available

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

Monitor Disk I/O activity using IOTOP & IOSTAT commands

We can monitor I/O activity in linux box using iotop and iostat commands

Use the below command to install iotop in linux system. To install iotop to RHEL/Centos/Scientific Linux, probably you need to enable EPL or REPOFORGE or REMI repository because there is no official package on this.

# Install iotop on Ubuntu/Debian/LinuxMint #
$ sudo apt-get install iotop

# Install iotop on RHEL/Centos/SL/Fedora 21 & older systems #
# yum install iotop

# Install iotop on Fedora 22 & later systems #
# dnf install iotop

# Install iotop on openSUSE #
# zypper install iotop

Use the iotop command to monitor disk I/O on individual process. This tool output smiler to top command

$ iotop -o

Use the below command to install iostat in linux system. You have to install sysstat because iostat is part of sysstat package.

# Install iostat in Ubuntu/Debian/LinuxMint #
$ sudo apt-get install sysstat

# Install iostat on RHEL/Centos/SL/Fedora 21 & older systems #
# yum install sysstat

# Install iostat on Fedora 22 & later systems #
# dnf install sysstat

# Install iostat on openSUSE #
# zypper install sysstat

To print individual hard disk I/O activity, use the iostat command

$ iostat -dx 5

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

How to completely remove or disable Cpanellogd on cPanel server

If you create the following file, it should disable cpanellogd:

touch /etc/cpanellogddisable

After disabling cpanellogd, you need to kill any current processes of cpanellogd.

ps aux | grep cpanellogd
kill -9 PID#

Replace PID# with the PID of cpanellogd processes.

cPanel auto restart cpanellogd so you need to move the following files :

mv /usr/local/cpanel/cpanellogd /usr/local/cpanel/cpanellogd.backup
mv /usr/local/cpanel/libexec/cpanellogd /usr/local/cpanel/libexec/cpanellogd.backup

Once done cpanellogd will no longer run on your cPanel server.

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

How To Install An SSL Certificate on cPanel

First you need to generate a CSR (Certificate Signing Request).
See for more details How To Generate An SSL Certificate Signing Request (CSR) In CPanel

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 in zip file.

Now Login to cPanel
# Click on Security >> SSL/TLS >> Install and Manage SSL for your site (HTTPS)
# Click on Manage SSL sites
# Select the domain name from the drop down.
# Paste the SSL certificate in the Certificate: (CRT) box and CA bundle in Certificate Authority Bundle: (CABUNDLE) box.
# If you click on Autofill by Certificate, private key will be fetched automatically.
Check the tick box Enable SNI for Mail Services and click on Install Certificate.

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

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.