HostOnNet Blog

Apache Directory Listing

To enable Directory Listing in Apache, add following to .htaccess file. if you want to do this in httpd.conf file, in your virtual host entry, add something like


Free Symlink Protection From CloudLinux

Default Cpanel Server installation have Symlink Vulnerability, that allow hacker to hack other sites hosted on the server once he have gained access to one of the web sites by creating Symlink. There are several solutions for this problem, including


Mail using sendmail command

To send email using sendmail, use Now you need to type in press enter, on next line, you can type message (email body). Once you enter the message, end it with a new line (Enter) and a DOT (.) character.


Enable PHP-FPM in Nginx on Ubuntu/Debian

Lets start with install nginx. Restart nginx with command Now you will be able to visit server with IP address, will see default page like Nginx config for default web site is at /etc/nginx/sites-enabled/default, if you remove all comments, it


Install Memcached On Cpanel Server

Memcached is a object cache available from https://memcached.org To install memcached on cpanel server, login to SSH as user root, run Enable memcached start on boot with Start memcached with Enable memcached PHP module For PHP applications to use memcached,


Installing X2Go Server on Debian

To install X2Go server on Debian, add the key Now add X2Go repo by editing file For debian 9, add If you are using different debian version, replace stretch with name of your debian version. You can find this with


Installing X2Go on Ubuntu 16.04

X2GO allow you to connect to remote server (or VPS) and use it as remote desktop. On remote server, you need to install X2Go Server. To connect you need to use X2Go client. Client is available for Windows, Mac and


Check if a command was successful

When you execute a program in linux command prompt or bash script, program return an exit code on completion. Return value is available in special variable $? When a program execute successfully, it return 0. For example Here first command


lspci

lspci list all PCI device on your system. On CentOS, lspci is part of package pciutils To list all PCI devices on your system, run To get detailed listing of devices, run Another useful command is lsusb, that list all