In this article going to discuss login and logout using php .The first read previous article  https://blog.pheonixsolutions.com/basic-insert-delete-update-database-image-upload-using-php/. LOGIN.PHP $query=mysql_connect(“localhost”,”root”,””); mysql_select_db(“demo”,$query); session_start(); if(isset($_POST[‘send’])) { $name=$_POST[‘name’]; $password=$_POST[‘password’]; if($name!=”” && $password!=””) { $s=mysql_query(“select *from reg where name = ‘$name’ AND password = ‘$password'”); $a=mysql_fetch_array($s); $count=mysql_num_rows($s); if($count==0) { echo “user does not exist”; } else… Continue Reading Basic Login and logout using php

In this post, we are going to explain how to insert, delete, update tables on a database using php. DataBase And Table: CREATE DATABASE demo; CREATE TABLE reg ( id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY, name VARCHAR(30) NOT NULL, password VARCHAR(30) NOT NULL, address VARCHAR(30) NOT NULL, email VARCHAR(50), fathername… Continue Reading Basic insert, delete, update database & Image upload using php

In this post, we will explain how to upgrade IPMI firmware version on supermicro motherboard. Its highly recommended to perform this maintenance when OS is installed on the server and it has ipmicfg  installed in it because incase if the ipmi interface goes down, we can bring the interface up using ipmicfg.… Continue Reading IPMI Firmware Upgrade – SuperMicro

You may seen lot of posts on installing node, npm and pm2. Here we go in our site, how to install node, npm and pm2 on linux distribution. Let’s download the node version and extract the files. cd /opt;wget https://nodejs.org/dist/v6.2.2/node-v6.2.2-linux-x64.tar.gz && tar -xvf node-v6.2.2-linux-x64.tar.gz Create a symlink to /use/bin directory ln… Continue Reading Installing node,npm and pm2

Let’s consider, we want to move the job to one project to another project or move the jobs to one rundeck server to another rundeck server. Rundeck provides an option to export the job in the form of xml or yaml. First download the jobs from existing project or source rundeck… Continue Reading Exporting/Importing a job on Rundeck

In this post, we will explain on how to add simple rundeck jobs. We are not going to cover how to install rundeck on the host. This post defaults assumes that rundeck is installed and running on port 8000. Configure rundeck user on remote host:   useradd rundeck passwd rundeck… Continue Reading Setting a job on Rundeck

Rundeck is an awesome tools which we simply impressed recently. It has an inbuilt to run commands, creating jobs, scheduling jobs, etc., Refer our previous posts to know more about rundeck. In this post, we will try to give some example how can we restrict user access to project level.… Continue Reading Rundeck ACL Policy Creation

Consider a scenario, where a jumpbox has port access to a server and your local machine doesn’t have access. Here is a solution that you can apply that will redirect your request to jumpbox and you can access the server using loop back IP address from your local machine.  … Continue Reading Port forwarding using proxypass in local machine

In this post, we will explain how to setup failover on rundeck. Rundeck officially doesn’t supports failover. This approach we tested on Centos 6 and its working fine. Moreover, use this approach on your own risk 😛 Assumption: This post assumes that rundeck is running on host1 listens on port… Continue Reading Rundeck Failover Setup

The following script will help you to create a temporary user on the host and delete all the content associated with the user after 3 hours. These scenario will be working incase if a user wants to access the hosts for sometime, troubleshoot issues, verify logs, etc., Replace variable with… Continue Reading Create temporary User on Linux Host