HostOnNet Blog

Configuring DNS resolver with resolv.conf

resolv.conf is used by Linux servers for specifying DNS servers used to domain name resolution. Location of the file is Example In above example, google public name servers 8.8.8.8 will be used for DNS resolution. If you edit this file,


Can’t locate Time/HiRes.pm

When running bytes unixbench on a linux server, i get error To fix, you need to find which package provides this file, this is done with command Now to install package, run


dpkg

Installing a .deb Package To install .deb file, run dpkg -i file-name.deb Example Remove a Package Force Remove a Package List Installed Packages To check if a package is already installed, use dpkg -l with grep. To see which Package


Cpanel Server

Install Install Cpanel DNS Only Server Cpanel/WHM HOW-TOs Get access to Cpanel/WHM using whmapi1 Fix SSH in Cpanel Server with WHM root Access TailWatch – Monitor Services in Cpanel Server Cpanel webmail down, cpanel_php_fpm keep failing Building Packages For EasyApache


mdadm

mdadm is a command line tool to manage Software Raid in Linux. To see stats of Raid, run


Adding ISO Files to ProxMox

To add ISO images of CentOS to Proxmox, run Now ISO will be available for Install in new VMs created using ProxMox. List VMS On ProxMox Server


Mounting NFS file system in CentOS 7

When i try mounting NFS file system on CentOS 7, i get following error To mount NFS File system on CentOS 7, you need to install nfs-utils Once installed mount -t nfs worked properly.


Blocking Layer 7 DDoS with CloudFlare Firewall using Fail2ban

Fail2Ban can be configured to work with CloudFlare Firewall to block Layer 7 DDos (DoS) attacks. On Ubuntu install fail2ban with command Now you can edit and remove most of the [SECTION] from /etc/fail2ban/jail.conf if you are not using them.


PostgreSQL FATAL: Peer authentication failed for user “USER_NAME”

On running a Ruby On Rails Application (anyone else use PostgreSQL ?), i get following error This is fixed by editing file pg_hba.conf 9.5 is version of postgresql. So it will be different on your server. On CentOS Server, the


No PostgreSQL clusters exist; see “man pg_createcluster”

On Ubuntu VPS starting PostgreSQL, got following error Starting PostgreSQL manually get following error To fix, you need to set locale. Refer Blog Post https://blog.hostonnet.com/ubuntu-14-04-openvz-locale-cannot-set-lc_all-to-default-locale-no-such-file-or-directory Once this is fixed, PostgreSQL started working properly.