Ansible automation – Logging user-data script output for EC2 Date Posted: 06-10-2017 When you write ansible playbooks, you may want to log the user_data output of EC2 instance launch. To achieve this, add these below codes at the top of your script vi user_data.sh #!/bin/bash -e exec > >(tee /var/log/user-data.log|logger… Continue Reading Ansible automation – Logging user-data script output for EC2

Add webmail alias in VestaCP panel – ubuntu 16.04 Date Posted: 05-10-2017 Assumptions:- We assume you have the following server setup VestaCP Ubuntu 16.04 Apache2 Solution:- Add this line at the bottom of /home/admin/conf/web/apache2.conf file <VirtualHost xx.xx.xx.xx:8080> ServerName webmail ServerAlias webmail.* DocumentRoot /usr/share/roundcube <Directory /usr/share/roundcube> AllowOverride All </Directory> </VirtualHost> Verify… Continue Reading Add webmail alias in VestaCP panel – ubuntu 16.04

zone example.com/IN: loading from master file /home/admin/conf/dns/example.com.db failed: permission denied Date Posted: 05-10-2017 Assumptions:- We assume that you have the following setup VestaCP Ubuntu 16.04 Bind9 Error:- Bind might refuse to reload due to below errors zone example.com/IN: loading from master file /home/admin/conf/dns/example.com.db failed: permission denied   Fix:- Check permission… Continue Reading VestaCP – bind – loading from master file failed: permission denied

Start vncserver at boot – ubuntu 14.04 Date Posted: 05-10-2017 Write a sample script startvnc.sh and update the code mentioned below. vi /root/startvnc.sh #! /bin/bash USER=root HOME=/root export USER HOME cd /root /usr/bin/vncserver :1 Make this script executable chmod +x /root/startvnc.sh Update rc.local file with this script vi /etc/rc.local  Find… Continue Reading start vncserver at boot – ubuntu 14.04

How to install Ioncube loader on Linux Date Posted: 03-10-2017 Ioncube loader is a php module used to encrypt php code. This post explains on how to install Ioncube loader on linux server. The Linux server can be Ubuntu, centos or other operating system. Prerequisites: Linux Host. Apache Webserver. If… Continue Reading How to install Ioncube loader on Linux

Add Access Control Allow Origin Region(CORS) for fonts in NGINX? Date Posted: 02-10-2017 In this post, we will explain on how to allow cors (Cross Origin Region) for fonts on nginx. We may have seen the following on google chrome console or firefox firebug addon. No ‘Access-Control-Allow-Origin’ header is Prerequisites:… Continue Reading Allow Cross Origin Region(CORS) for Fonts in NGINX

How to install SQL management Studio on plesk server Date Posted: 29-09-2017 Sql management studio is a management tool used to connect to your MSSQL server from your windows server. Assumption: Windows Server MSSQL Server. Implementation: Login to server using RDP. Download the SQLManagementStudio_x64_ENU.exe from the below URL. http://www.microsoft.com/en-us/download/details.aspx?id=29062 Double click… Continue Reading How to install SQL management Studio on plesk server

ERROR 1273 (HY000) at line 25: Unknown collation: ‘utf8mb4_unicode_520_ci” Date Posted: 04-10-2017 Recently, when we tried to resource the dump which we had taken on one server and tried to restore it on another server. The restore failed with an error: ERROR 1273 (HY000) at line 25: Unknown collation: ‘utf8mb4_unicode_520_ci”… Continue Reading Unknown collation: utf8mb4_unicode_520_ci

How to make MSSQL to Listen on Port(1433) on MSSQL Server Date Posted: 29-09-2017 After installing MSSQL, it was not listening to default port 1433. In this post, we will explain on how to make mssql to listen on default port 1433. Resolution: Open Sql Configuration Manager. Click on Sql Server Management… Continue Reading How to make MSSQL to Listen on Port(1433) on MSSQL Server

How to install mylittleadmin on plesk windows Date Posted: 29-09-2017 Mylittleadmin is used to manage MSSQL database in a hosting environment. In this post, we will explain on how to install mylittleadmin on plesk windows server. Assumption: RDP Access to the server Plesk panel access Implementation: Login to the server… Continue Reading How to install mylittleadmin on plesk windows