Posts

Enable SSL in WAMP server

How to enable SSl on Wamp Server(apache2) - HTTPS Configuration In this article, I will show how to Configure/Enable SSL in Wamp Server.I have installed wampserver with apache 2.2.12 and php 5.3.5. I have to configure the Open SSL server. How to Setup HTTPS SSL on WAMP Server for apache 2.2 1. Install WAMPServer 2. Open Control Panel 3. Click System >> Select Advanced System Setting >> Select Environment Variables. 4.Create new system variable OPENSSL_CONF: Value: C:\wamp\bin\apache\apache2.2.12\conf\openssl.cnf 5. Create a SSL Certificate and Key for the Web Server Open command prompt and Run the following commands: > cd wamp\bin\apache\apache2.2.12\bin > openssl genrsa -des3 -out server.key 1024 > copy server.key server.key.org > openssl rsa -in server.key.org -out server.key > openssl req -new -x509 -nodes -sha1 -days 365 -key server.key -out server.crt -config C:\wamp\bin\apache\apache2.2.12\conf\openssl.cnf >openssl req -new -ne...

Memcache Installation in PHP (Wamp Server)

what is Memcache? Memcache is a caching system used to speed up web applications by holding small pieces of arbitrary data, it could be broadly compared to the $_SESSION variable in PHP, but memcache works across the whole application not just on a per user basis and has been successfully proven to make great gains in speed increases on web applications. Memcache was designed with Linux in mind and not windows, so it has posed some installation issues because Windows users are not so familiar with having to compile code from source as memcache does not come with any installation software. Installation: - Download this package, here - Unzip Memcached application in C:/memcached folder - Open command prompt, Type below command to install C:\memcached>memcached.exe -d install  - Now its time to start the Memcache server  C:\memcached>memcached.exe -d start (or)  C:\memcached>net start memcached The memcached service was started successfully. Hope ...

SPHINX with PHP and MySQL

Hope you guys are doing good! First let me tell you Why Sphinx is more faster than MySQL. Cuz Sphinx will search in Document format where as MySql search in table format. Now, how exactly it will work MySQL with Sphinx? 1. First you have to Download Sphinx-2.2.1-beta-win32.zip or Sphinx-2.2.1-beta-win32-pgsql.php. FYR, http://sphinxsearch.com/downloads/beta/ 2. Then you have to extract the files in C:/Sphinx 3. Copy your  sphinx.conf.in file and paste it under bin folder and rename it to sphinx.conf. 4.  Now open command prompt by pressing Windows -> cmd 5. Now you have to create service C:/sphinx/bin > searchd --install --config c:/sphinx/bin/sphinx.conf --servicename SphinxSearch 6. Then you have to create Log file under C:/Sphinx/log 7. Create PID file under log "searchd.pid" 8. Now its time to start the SphinxSearch server Go to Control panel -> Administrative tools -> Services -> SphinxSearch --Rightclick-> Properties -> S...

Github Installation

Hi Friends, After long time, I came to my blog and thought to share something new. So i picked up GitHub installation and How to use GitHub? Its very easy to use GitHub All you need to do is, Open github.com -> Sign up your account Here you can create your own repository and you can share the link with your colleagues. How to install and use Git in Windows ===================================== 1. Download git from http://git-scm.com/downloads 2. Right Click on downloaded installer 3. Click ‘Run as Administrator’ 4. Install using default settings except for “Adjusting your Path Environment” Choose “Use Git from the Windows Command Prompt” 5. Start a Windows Command Prompt 6. CD to a new directory where you want to store your local repository 7. run “git clone <repository path>” e.g. “git clone https://github.com/YOUR_REPOSITORY_PATH” 8. Enter your github username and password 9. You can now make changes to the local repository and run any git command as and when it’s...

Display transparent image over Image using CSS

Here is the code where you will get image over another image, HTML: <table class="travel_map_prefer ">  <tr> <td class="images"><img src="image1.jpg"  height="150" width="300"/>      <div class="music-detail" >       <a href="javascript:void(0);" class="show_prefer" >Prefer this</a>       </div>      <span style="float:right;">Mission Bay Beach&nbsp; </span></td> </tr> </table> CSS: .travel_map_prefer  td.images:hover { background:url(play.png);  } .travel_map_prefer td.images { float: left; width: 312px; position: relative; } .travel_map_prefer .music-detail { background: #000; background: rgba(0, 0, 0, 0.5); position: absolute; top: 5px; left: 5px; height: 150px; width: 300px; color: #989DA2; display: none; z-index: 10; } .travel_map_prefer  td.images:hover .music-detail { trans...

Google API - To check whether address is valid or Invalid.

Hi Friends! Today i am gonna share how to find the address whether it is valid or invalid. Here is the link where google is providing API for that,  http://maps.googleapis.com/maps/api/geocode/json?address=<your_address>&sensor=true This will return an JSON format  output. If the address is valid, the Status will be " OK " else the Status will be " ZERO_RESULTS "

Avoid Image width and height distraction with CSS.

Hi! Hope everyone is fine! Today i am going to share how to avoid image distraction with CSS.Have a look below code and it will do magic! Here is your HTML code, <a href="#" class="img-thumbnail"> <img src="image1.jpg"  /> </a> Here is you CSS code, .img-thumbnail{     background: none repeat scroll 0 0 #111111;     display: inline-block;     height: 160px;     overflow: hidden;     width: 200px; } .img-thumbnail img {     width: 100%; }