How to convert AWS .pem key to putty .ppk key

Here I have AWS key .pem , to connect with putty in windows we need the .ppk format ,so here i have to convert AWS .pem key to putty .ppk key ,in simple have to convert .pem to .ppk

How convert AWS .pem key to putty .ppk key for that we have lots of software available, here am going to show with the help of  PuTTYgen

1 Download .pem (Privacy Enhanced Mail) from  AWS , is a base64 container format for encoding keys and certificates

 

2 ) Download PuTTYgen from online and install

 

3) Open PuTTYgen

convert AWS .pem key to putty .ppk key

4) Click Load button and load the .pem files

convert AWS .pem key to putty .ppk key

5) Click “save private key ” button and save your ppk files

so you converted AWS .pem key to Putty Private Key(ppk) or in simple .pem to .ppk

How to setup two domain using Lamp or XAMPP AWS Linux 2

Suppose we need to create two domain with xampp Let say tutorialshore.com and viewshore.com

First we have to install xampp in your AWS Linux 2  see below link for that

How to install xampp and FTP in AWS Linux 2 server

Then folle below steps

1 Allow custom virtual hosts from Apache config


open Apache config file using below command

# vi /opt/lampp/etc/httpd.conf

 

Find out below code
# Virtual hosts
#Include etc/extra/httpd-vhosts.conf

Replace above code with 

# Virtual hosts
Include etc/extra/httpd-vhosts.conf

 

2) Add custom domain in the hosts file

#vi /etc/hosts


127.0.0.3	tutorialshore.com
127.0.0.5	viewshore.com



3) Add custom domain in the hosts file

#vi /etc/hosts
 
add this two host at the end

127.0.0.3	tutorialshore.com
127.0.0.5	viewshore.com

4) Create your virtual hosts

#vi /opt/lampp/etc/extra/httpd-vhosts.conf

Add below line at the end


<VirtualHost 127.0.0.3:80>
 DocumentRoot "/opt/lampp/htdocs/tutorialshore"
 DirectoryIndex index.php

 <Directory "/opt/lampp/htdocs/tutorialshore">
 Options All
 AllowOverride All
 Require all granted
 </Directory>
</VirtualHost>

<VirtualHost 127.0.0.5:80>
 DocumentRoot "/opt/lampp/htdocs/viewshore"
 DirectoryIndex index.php

 <Directory "/opt/lampp/htdocs/viewshore">
 Options All
 AllowOverride All
 Require all granted
 </Directory>
</VirtualHost>
  



5) Create project Directoty

#cd /opt/lampp/htdocs
#mkdir tutorialshore
#mkdir viewshore

6) Upload your files and enjoy with your two new website

Show a div in every 10 Seconds if it is hidden using JQuery

Here am going to show you how to Show a div in every 10 Seconds if it is hidden using JQuery

<script type="text/javascript">
 $(document).ready(function() {
 setInterval(function() {
 if ($('#make_container').is(':hidden')) {
 $("#make_container").slideToggle();
 }
 }, 12000); 
 });</strong>
</script>

Suppose I have a html form

<div class="enquire-btn"><span id="enquire_click"> Enquire Now </span>
<div id="make_container" style="display:none";>
<div id="form_container">
<div id="form_fields" class="black">
<form accept-charset="UTF-8" action="send-enquiry.php" id="contact_us" method="post" novalidate>
<label>Name *</label>
<div class="f_rel">
<input class="required letterswithbasicpunc" id="contact_first_name" name="nam" size="30" style="width:100%" type="text">
</div>
<label>Email *</label>
<div class="f_rel">
<input class="required email" id="contact_email" name="ema" size="30" style="width:100%" type="text">
</div>
<label>Phone *</label>
<div class="f_rel">
<input class="required" id="contact_phone" minlength="10" name="mob" size="30" style="width:100%" type="text">
<input type="hidden" name="utmterm" value="<?php echo $utm_term; ?>">
<input type="hidden" name="pageUrl" value='<?php echo $pageUrl; ?>'>
<input class="project" name="project" value="Opus" type="hidden">
</div>
<label>Comments</label>
<div class="f_rel">
<textarea class="letterswithbasicpunc" id="contact_comments" name="msg" size="30" style="width:100%" type="text"></textarea>
</div>
<br>
<br>
 <input type="submit" class="btn contactSubmitBtn" value="Submit" id=</form>
</div>
</div>
</div>
</div>

It will show the form every 10 Seconds if it is hidden using JQuery