How to use HTTP Basic authentication with cURL

To access sites that use HTTP Basic authentication with curl, use command


If you don’t specify password, curl will promt for password. See curl […]

Read More…

How to install Imunify360 antivirus

Imunify360 is a security software that include antivirus, firewall, intruder detection and web application firewall (WAF). It can block attacks and malware uploads in real time. To start installation, run the following script with your activation key:

If you have an IP-based license, run the same script with no arguments:

See imunify […]

Read More…

Show IP address in history

On Linux Server, history command shows previously executed commands. If you have many people working on a server, it is better log IP address of the user who run the command along with time for security reason. To log, IP and date, create file

In the file, add

Make it executable

Create […]

Read More…

elasticsearch insufficient memory

When starting elasticsearch on CentOS 7 server, it failed with error. Checking the logs with

Found following errors

To fix it, edit file

At end of the file, add

Restart elasticsearch with

Verify elasticsearch is running with

See elasticsearch […]

Read More…

Change MySQL root password in Virtualmin

virtualmin mysql password

To change MySQL root password in Virualmin server, login to virtualmin, navigate to

Click on “Change Administration Password” button. On next page, it will show current MySQL root password and provide option to change MySQL root password. See Virtualmin […]

Read More…


The setfacl utility sets Access Control Lists (ACLs) of files and directories. To install setfacl on Ubuntu/Debian, run

Here is an example, where we create 2 users, one user will be given access to folder inside another users home directory.

in setfacl, -m option is used to modify. u specify user, if you […]

Read More…


cryptsetup is used to encypt disk on Linux. I used TrueCrypt before this. After TrueCrypt stopped the project, i started using cryptsetup for my encrypted drive. To mount an encrypted disk, run


See mount […]

Read More…

Elasticsearch failed to start on CentOS 7

After installing elasticsearch on CentOS 7, it failed to start with error

On checking journalctl, i get

To fix this, edit file

At end of the file, add

Now elasticsearch will start

Verify service is running with

To confirm elasticsearch is running, use command

See elasticsearch […]

Read More…


oneinstack is a free hosting management software available at Documentation available at To find MySQL root password, run

Nginx configuration files

Restart Nginx

See Hosting Control Panels […]

Read More…