HostOnNet Blog

Benchmarking Hard disk with dd

To see how much sequential write your hard disk can handle, run Example [root@ssd backup]# dd if=/dev/zero of=hon-test bs=64k count=16k conv=fdatasync && rm -f hon-test 16384+0 records in 16384+0 records out 1073741824 bytes (1.1 GB) copied, 6.86452 s, 156 MB/s

Mounting WebDAV on Linux using Davfs

WebDAV stands for “Web-based Distributed Authoring and Versioning”. It is a set of extensions to the HTTP protocol which allows users to collaboratively edit and manage files on remote web servers. To mount a WebDAV file system on Linux, for

Install Xen on CentOS

Xen is an Open Source Virtualization software developed by the Linux Foundation and is supported by Intel. Amazon AWS use Xen for powering its EC2 instances. Other alternative for Xen are KVM, OpenVZ, WMWare and LXC. To install Xen on

Feral Interactive Offers Free Steam Key for Mesa Developers

Popular Linux game studio Feral Interactive have officially announced Free Steam keys for all their Linux Games to Mesa Developers. Mesa is an open-source implementation of the OpenGL and Vulkan specifications. Having games available to linux graphics stack developers allow

Nginx List Installed Modules

To list all installed modules in NginX web server, run Example [root@3blogger ~]# nginx -V nginx version: nginx/1.10.2 built by gcc 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC) built with OpenSSL 1.0.1e-fips 11 Feb 2013 TLS SNI support enabled configure arguments:

Blocking Traffic With Apache GeoIP Module

To install GeoIP module in CentOS Apache server, run Now verify mod_geoip installed in apache by running Example [root@3blogger ~]# httpd -M | grep geoip geoip_module (shared) [root@3blogger ~]# Now edit /etc/httpd/conf/httpd.conf add following In your Apache VirtualHost, add This

Enable monitoring of service on Cpanel Server

To enable monitoring of all services on Cpanel Server, run Example root@server20 [~]# whmapi1 enable_monitor_all_enabled_services — data: services: – monitored: 1 service: mysql metadata: command: enable_monitor_all_enabled_services reason: OK result: 1 version: 1 root@server20 [~]# See also tailwatch, cpanel server

Repair MySQL database with mysqlcheck

mysqlcheck command can be used to check, repair, optimize or analyzes tables in a MySQL database. To check a database for errors, run If you database need user name and password, specify it with -u USER-NAME -p, for example This

Install Nginx on CentOS 7

First enable epel repository by running Now you can install nginx with Nginx configs are available in folder /etc/nginx, main config file is /etc/nginx/nginx.conf To start nginx, run To Stop, run To allow HTTP and HTTPS in firewall, run

Deleting spam mails with exiqgrep

exiqgrep is a command to search in exim mail queue. To freeze all mail from a domain, run To freeze all mails by recipient domain, run To delete all frozen mails, run