Postfix is a free and open-source mail transfer agent (MTA) that routes and delivers electronic mail, intended as an alternative to Sendmail MTA. Remove sendmail if it was already installed on your system yum remove sendmail #1 Install Postfix Now Install Postfix  and make sure it started at boot by adding… Continue Reading install and configure postfix and dovecot on CentOS

You might get not found error (404) when you access laravel API end points on nginx. To resolve this we need to add below rules in nginx.conf. Post that reload nginx conf. location @rewrite { rewrite ^/(.*)$ /index.php?_url=/$1; } location / { try_files $uri $uri/ @rewrite; } $ service nginx… Continue Reading Laravel route gives 404 error on nginx

Add PureFTP service to Fail2ban – Ubuntu Date Posted: 23-06-2017 Prerequisites: Ubuntu Host Fail2Ban Service – Incase, if fail2ban service is not installed, follow the below mentioned post to install. Install Fail2ban on Ubuntu Implementation: Copy the file pure-ftpd.conf to pureftpd.conf cp /etc/fail2ban/filter.d/pure-ftpd.conf /etc/fail2ban/filter.d/pureftpd.conf Open the file /etc/fail2ban/jail.local and append the below lines. vi /etc/fail2ban/jail.local [pureftpd]… Continue Reading Add PureFTP service to Fail2ban – Ubuntu

Add Exim service on Fail2Ban – Ubuntu Date Posted: 21-06-2017 In our previous, we explained on how to install Fail2ban on Ubuntu host. Incase, if fail2ban is not installed then follow below post to install. Install Fail2Ban on Ubuntu Implementation: If you followed our previous post, just append the below… Continue Reading Add Exim service on Fail2Ban – Ubuntu

Posted Date:20-06-2017 In this post we will explain dynamically set codeigniter baseurl. Step 1: navigate to application/config and open config.php file edit $config[‘base_url’] using following code. $config[‘base_url’] = ((isset ( $_SERVER [‘HTTPS’] ) && $_SERVER [‘HTTPS’] == “on”) ? “https” : “http”); $config[‘base_url’] .= “://” . $_SERVER [‘HTTP_HOST’]; $config[‘base_url’] .=… Continue Reading Dynamically set CodeIgniter Base URL

Posted Date:19-06-2017 In this post we will explain Make the <li class> to be Active when click menu Step 1: Include jQuery Plugin necessary  jquery files. <source src=”http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js”></source > <source src=”https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.4/js/bootstrap.min.js” type=”text/javascript”></source > <source src=”https://cdnjs.cloudflare.com/ajax/libs/admin-lte/2.3.11/js/app.min.js” type=”text/javascript”></source > Step 2:Add the following jquery script code for dynamic active class var url = window.location.href; // for sidebar… Continue Reading Make the menu to be Active when click menu

Posted Date:19-06-2017 In this we will explain check box checked or not. Step 1: Include jQuery  Plugin <source src=”http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js”></source > Step 2:Create the HTML page using  following code <!DOCTYPE html> <html> <head> <title>Check/uncheck </title> <source src=”http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js”></source> </head> <body> <input type=”checkbox” class=”test” value=”” > $(document).on(‘click’, ‘.test’ , function() { if ($(‘.test’).prop(‘checked’)==true)… Continue Reading check / uncheck checkbox using jquery?

Yum roll back an update on centos: Date Posted: 16-06-2017 There are few scenarios after installing new packages, some functionality may break. In such scenario, its hard to figure out what went wrong so we immediately want to revert back. In this post, we will explain on how to roll… Continue Reading Yum roll back an update on centos

Posted Date:04-03-2017 In this Post we will explain how to use jquery custom rule,remote,extension validation in html form.   Step 1:Create mysql table name as users using following code — phpMyAdmin SQL Dump — version 3.5.2.2 — http://www.phpmyadmin.net — — Host: 127.0.0.1 — Generation Time: Jun 15, 2017 at 09:21 AM… Continue Reading jquery custom rule,remote,extension validation

Install Fail2ban on Ubuntu 16 Date Posted: 14-06-2017 Fail2ban is a service used to ban IP address which makes unsuccessful attempts. In our previous post, we explained on how to install fail2ban on centos 7 server. In this post, we will explain on how to install fail2ban on ubuntu host. Incase… Continue Reading Install Fail2ban on Ubuntu 16