Posted Date:08-05-2017 In this post we will explain how to dropdown list dynamically using html,php First we explain dynamic dropdown list using php Dynamic dropdown list using php Step 1: Create a new file dropdown.php step 2:  Create a mysql connection code inside dropdown.php $mysqlserver=”localhost”; $mysqlusername=”root”; $mysqlpassword=””; $link=mysql_connect($mysqlserver, $mysqlusername, $mysqlpassword)… Continue Reading Dynamic Dependent drop down list using html,php,mysql

Scenario 1: I had setup SSH key with a passphrase  to access all my servers/machines. However, its annoying(also non-productive) to enter passpharse every time I want to ssh into another machine. Scenario 2: I want clone a git repo into another machine other from my laptop. However, that git repo… Continue Reading How to use SSH Key with passpharse for SSH forwarding

Nikto vulnerability scan for domains|Shell script to scan cPanel accounts Date Posted: 06-05-2017 Nikto is an opensource webserver scanner which helps to perform security scan on the webserver. In this post, we will explain on how to install nikto scan tool and create a script to scan cPanel accounts. Installation:… Continue Reading Nikto vulnerability scan for domains|Shell script to scan cPanel accounts

Date Posted: 04-05-2017 We are getting continuous 500 internal server on our php-fpm/fcgi apache server. The log reports the following error [Day Month xx 10:09:14.269068 2017] [fastcgi:error] [pid 1422] [client xx.xx.xx.xx:59020] FastCGI: incomplete headers (0 bytes) received from server “/usr/lib/cgi-bin/php7-fcgi” [Day Month  xx 10:09:46.864781 2017] [fastcgi:error] [pid 1690] [client xx.xx.xx.xx:59021] FastCGI: comm with server… Continue Reading FastCGI: comm with server “/usr/lib/cgi-bin/php7-fcgi” aborted: idle timeout

Create User and login without password(passwordless authentication)|Private/Public Key Based Authentication Date Posted:04-05-2017 Using password based login is always security risk. Incase if the password is known to others then it will be easy for them to access the machine. To overcome this situation, its always good to create a user… Continue Reading Create User and login without password(passwordless authentication)

Install Apache with php-fpm on Ubuntu 16 Date Posted:03-05-2016 Php-fpm is a FastCGI Process Manager which is faster to serve php when compared to mod_php. In this post, we will explain on how to install Apache with php-fpm on Ubuntu 16 host. Implementation: Let’s Start with apache2 installation. apt-get install… Continue Reading Install Apache with php-fpm on Ubuntu 16