How to install wordpress on your computer using wampserver

If you are wondering why would anyone want to install wordpress on the local computer then keep reading. If you install wordpress on local pc, you can carry out several experiments on your blog before applying them on the live blog. You can use this offline blog for testing various themes, plugins, codes, etc.

If you ever wanted to install wordpress on your local computer, then there is a way to do it. You need a tool called as wamp server. WAMP means Widows Apache MySQL and PHP.

Click here to read How to install WAMP server on PC

In this post, i will guide you using step by step instructions to install wordpress on your PC using wamp !

1) Getting WordPress

2) Extract WordPress

  • Note: You will need winrar or any such tool for extracting the zip file
  • Right click on your downloaded zip file, and click Extract here.

extract here

  • Then move your extracted folder named ‘wordpress‘ inside ‘wamp/www/‘ directory. Check image below:

wordpress directory

3) Creating Database in Wamp Server

  • Left Click on wamp tray icon and select phpMyAdmin
  • Then after just enter the database name as ‘abc’ and click create.


sql created

4) Installing WordPress

  • Click on create configuration file.

  • Click on Lets go.

  • Then enter the database name as abc (the one which we created previously)
  • Enter username as root
  • And do not enter any password (since we are installing on the local pc)
  • Keep the rest as it is. And click Submit.

  • Now just click on Run The Install button.

  • Enter your desired site title. In this case i entered codefap.
  • Then enter your admin username, i just kept it as admin (the default value).
  • Enter your desired password twice.
  • Enter your e-mail address. And just click on Install WordPress

  • Now wordpress has been installed on your computer. Just click on Log in.

  • On the log on screen, just enter your previously set username and password. And click log in.

Thanks for reading. 🙂 Please subscribe to codefap blog feeds if you like my posts.

Guide to install WAMP server on PC

WAMP is basically an acronym for Apache MySQL PHP on Windows. Wherein Apache is a web server, MySQL is an open source database and PHP is a scripting language. According to the definition by Wikipedia, WAMP are packages of independently created programs installed on computers that use a Microsoft Windows operating system. There is a program called as phpMyAdmin included in the WAMP package. This phpMyAdmin basically provides a graphical user interface (GUI) to the user for managing the services in the package.

Getting WAMP

Installing WAMP

1) Just run the installation file which you have downloaded.


2) Click on Next. Accept the License Agreement. Click Next.

3) Set your destination folder. In this case i have set mine to c:wamp. Then click next.

4) Next frame asks you whether you want to create a desktop shortcut. Click next again.

5) Now click Install. And your installation begins .. .!!


6) Then after following window appears on the screen :


7) This time it asks you to choose your default browser. Just click Open.

8) Then firewall window appears on the screen :


9) Just click on Allow Access. And one more window appears as shown below :


10) Just click on next.

11) Click on Finish. And you have installed WAMP on your computer.

wamp menu

As soon as you click on finish, your WAMP server begins.
You can find it near the taskbar tray icons as shown in the image.

You see Localhost, phpMyAdmin, www directory, Apache, PHP, MySQL and some other options as well. You can use WAMP in any way you want. You can experiment scripting websites plus SQL databases using WAMP. You can use WAMP Offline as well as Online. As seen in the image you can put your server online by using ‘put online’ button.

The interesting part is you can use WAMP to install Content Management System on your PC. CMS like wordpress, joomla, drupal, etc. Or you can even install a forum like phpbb or SMF. You can just mess around with their code to learn more about these CMS. What i mean is that you can experiment with any CMS on your local computer and that too Offline.

So the actual purpose of writing this simple post was to develop basics for installing wordpress on the computer.

How to install WordPress on your local Computer

How to put recent posts and comments in round boxes or blocks

The image above displays the screenshot of my blog’s recent posts widget. The column on the left shows the demo of how my blog used to look before the changes. While the column on the right shows the demo of how my blog looks after the changes. Impressed? Me too.

I have just changed the cascading style sheet (css) file of my blog to get the desired results. More precisely, I have added a border property to the widget list class. Lets see how exactly we can do it ..

How to add border to recent post list :

  • Goto Admin Dashboard > Appearance > Editor.
  • Select the Stylesheet file. It must be style.css
  • Then press CTRL+F and Type .widget li
  • You will find something like this :

[code].widget li {
list-style-type: none;
margin: 5px;
padding: 5px;

.widget li:last-child {
border: 0px;

  • You have to just add the following code inside the block of .widget li and .widget li:last-child

[code]border: 1px solid #006666;
-moz-border-radius: 5px;
border-radius: 5px;[/code]

  • After adding that code you will get something like this :

[code].widget li {
list-style-type: none;
margin: 5px;
padding: 5px;
border: 1px solid #006666;
-moz-border-radius: 5px;
border-radius: 5px;

.widget li:last-child {
border: 1px solid #006666;
-moz-border-radius: 5px;
border-radius: 5px;

  • That’s it you are done. Save the file. And check out the changes on your blog.

These will work only on the lists which are in your ‘widgets’.

Note that this not only works on recent posts but also on other lists which belong to your widget class. For example: Recent comments, Categories, etc.

Java Bubble Sort Programs

Normal Bubble Sort Program


Revised Bubble Sort Program


In case of sorting the array in ‘Ascending Order’ : The idea of bubble sort is to compare every element (i) with the ‘next’ element (i+1) in the array and bubble out the largest element to the ‘end’ of that array. The normal bubble sort helps us to do that, but there are some obvious improvements which can be done in it. Hence there is a need of revised bubble sort. The revised bubble sort helps to save us time by adding two main conditions.

The first improvement in bubble sort was to add a switched variable. To check whether the array is ‘already’ sorted or not. If the array is already sorted then we need not add anymore passes.

The second improvement was implemented by this part of the code n-pass-1. This filters out the ‘already’ bubbled out elements from the next passes. Example: If a element is bubbled out to the end of the array in n th pass.

This element wont be considered in the n+1 th pass.
Thus saving us a huge amount of time, especially if the array is quite big.

How to create a password protected folder without any software

Its a very common thing that everyone wants to keep their data secret. Nobody will want to share there private data or their very important documents. Now a days people use third party applications which helps you to hide your data, but that hidden data can be found out very easily. For example, If you are using a folder lock software to hide your data. This folder lock software will just protect you as long as it is installed into your system. Once this software is uninstalled, your files are no longer hidden.

But there are some great software’s which encrypt your data, that is, break your data into pieces and hide it. Thus even if someone uninstalls the software, your data is still encrypted/hidden from them.

This post will help you to hide your data without using any software. All you have to do is use a simple script. Note that this does not conceal your data from somebody who knows what they are doing.

Follow the following steps in the correct order as given ::-

1) Make a new folder anywhere on your hard drive.

2) Inside that folder make a new text document file

and copy the whole text in that file as given below :

title Folder Private
if EXIST "HTG Locker" goto UNLOCK
if NOT EXIST Private goto MDLOCKER
echo Are you sure you want to lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
ren Private "HTG Locker"
attrib +h +s "HTG Locker"
echo Folder locked
goto End
echo Enter password to unlock folder
set/p "pass=>"
if NOT %pass%== PASSWORD_HERE goto FAIL
attrib -h -s "HTG Locker"
ren "HTG Locker" Private
echo Folder Unlocked successfully
goto End
echo Invalid password
goto end
md Private
echo Private created successfully
goto End

Setting the Password

After copying this short code, search for the string  ‘PASSWORD_HERE and replace that with any password that you want to set. For eg. If you want to set password as 123456789 then edit line no 23 as shown below :

[code] if NOT %pass% == 123456789 goto FAIL [/code]

3) After that go to save as & name this file as locker.bat
( .bat should be the extension of that file. Bat means windows batch file.)

4) Double click on that, a new folder named PRIVATE will be automatically created in the same folder.

5) Now copy all the data that you want to protect into that private folder.

Locking your Folder

6) After copying double click on the locker.bat again.

7) A command window will open saying:  Are you sure you want to lock the folder(Y/N)?

8) Press Y (Yes) and Press Enter. Now your private folder will disappear.

Unlocking your Folder

9) Now if you want to UNLOCK that folder then again double click on locker.bat > type your password > Hit enter > then you will see your folder again.

10)  That’s it. You are done now.

It not only hides the folder, but if you try opening it without entering the password, it will take you to the control panel…Also, if you want to store files on your Pen-Drive, you can use this script. No Software Required.

In case you delete your Locker file, then you can make a new one (but with the same password) and open your private folder by using this new file. Alternatively, you can keep this locker file somewhere else, and when you want to open your folder, only then bring it back to that place .. As simple as that.


Hacking like a boss – Level zero

Most of us are always interested in knowing the passwords of our friends. This short article can help you to do so.

Google Chrome and latest versions of Mozilla Firefox (like v4.3.1 on onward) has the inbuilt functionality to convert and show the webpage into an embedded code format known as HTML. HTML contains all the information about particular webpage in coded format. Coming back to the point, This trick is not for professional purposes. Its only useful to play prank on your friends.

The logic behind this Trick :

Whenever you are entering your password on any website, Did you notice that it turns out to be in dotted characters or hidden by asterisk? That’s where our trick comes into picture. We are going to edit the HTML code of the loaded website in such a way that when a person enters his password, it wont be hidden anymore. It will be displayed directly as he types in.

How to do it practically :

  • Lets consider you and your friend sitting in a room.
  • Your friend opens up the Facebook site. The site loads completely asking him for username and password.
  • You ask your friend to get you a glass of water.
  • This helps you  to buy a certain ‘time window’ during which you can use my trick.
  • Now when your friend is away. If you enter your password in the password field. It appears like this :
  • Then I right click inside the password field and select ‘inspect element’.
  • Then something like this appears at the bottom of your browser :
  • Just double click on ‘password‘ on that line itself. And enter ‘text‘. Just replace ‘password‘ with ‘text‘.
  • And press Enter.
  • As soon as you press Enter. You can notice the password field is ‘not hiding‘ the password anymore.
  • As you can see, the black dots have disappeared. And the real password is being shown.
  • Now coming back to the point. Your friend is Away from the computer.
  • At this point of time, Keep both the fields (username and password) Empty.
  • Then just use our trick > Inspect element > Change ‘password‘ to ‘text‘.
  • Now just wait for your friend to enter his username and password..
  • And Bingo ! His password will be clearly displayed on the screen as he types it.
Note: Most people type their password while looking at the keyboard. Hence you will have much higher chance of knowing their password. And if in any case they realize that you are trying to hack into their account then you can always say you were just playing a prank on them. Its that simple. Nobody is gonna jail you for this hehe. Basically this is not hacking but just a simple trick to fool your friends.
And note that this post does not support or provoke any hacking activities.

How to convert FAT32 to NTFS

FAT and FAT32 are basically flash drive formats. Any flash drive has a limited storage capacity to store a single file of large size (more than 4GB) . For eg: In FAT / FAT32, We cannot transfer a single file which is having size more than 4GB. So to overcome this problem we have to convert the flash drive’s format from FAT32 to NTFS. NTFS is a HARD DRIVE format which can store and can transfer any file of any size.
Follow the following steps to convert FAT or FAT 32 to NTFS :

  1. Connect your flash drive to computer. Close all the ongoing task..
  2. Click Start > Run > Type ‘cmd‘ and hit Enter.
  3. If you want to convert drive H (H:)  enter the command ” vol h: ” in the cmd window ,  to find the volume label for the H: partition
  4. Then enter the command ” convert h: /fs:ntfs ” to convert the H: partition from FAT32 to NTFS.
  5. When prompted, enter the volume label for the partition (Volume label is nothing but the name of the drive)
  6. Wait for some seconds and its DONE.
  7. Close the command window and remove the flash drive and reconnect it and check the format of the flash drive. It should be NTFS now.

# Do not skip any step, Follow the steps exactly in the same order as shown above #

Note: This reduces the life span of flash drive to some extend. But its helpful to carry your heavy files with you.