Saturday 14 May 2011

Home HTTP Server – How to create one

In this tutorial we will see how to create an HTTP server. A web server is software installed on a computer that allows other computers to access specific files on that computer/server. There are many reasons to create your own home servers. For example: file sharing, so you can download files from your home computer from anywhere or you can create a web site on own server etc. Simply said It works like this; You choose a directory on your computer , in that directory add folders, files like music,video and etc. When you put the IP address of your computer the in web browser you can see all the files from that folder and you can download those files. Let’s now create a server(HTTP server!) using Apache(a server client):

1. You must have:
  • Broadband internet connection always on
  • Windows on your computer
2. Create a folder on your disc , in this example I created a folder on E:\my server
3. Download apache_2.2.10-win32-x86-no_ssl.msi and install it, set parameters( for localhost type something like a myserver.com(doesn’t really matter), also type your email address in field “Administrator@ Email Address” ) as shown below, choose where you want to install it.


Enter email address where you want to receive tutorials when we post them! It’s free!
4..When you install Apache , go to directory where you installed it (p.e. “C:\Program Files\Apache Software Foundation\Apache2.2\conf”) , here you will find a httpd file.
Open that file with notepad.


After this will appear notepad with long and complicated code, don´t worry, you must change just 3 things.
5. In notepad file find #DocumentRoot “C:/Program Files/Apache Group/Apache2/htdocs” and replace with #DocumentRoot “E:\my server”. Also find #<Directory  “C:/Program Files/Apache Group/Apache2/htdocs” and replace with <Directory  “E:\my server”.  E:\my server is folder where you put files which will appear on your server. In this example I created that folder on local disc E:. You can create your folder in any other place, but then type that path here. Find #AllowOverride None and change to AllowOverride All.
Change selected code




After this, save file like httpd.conf.

6. Type in web addresses http://localhost/ or your IP Address, you should see something like this


Every files you put in folder , which we created in step 2 , will be shown on http://localhost/
7. If you want access own server from other computers. You must forward a port in the router we’re using. The port we need to forward is port number 80. Why? Because by default it’s the port used for HTTP. Port forwarding actually means opening a tunnel through the router so that the router wouldn’t reject the connections that are trying to connect to it. How to port-forward? With every router it’s different. Here are the instructions for every one of them. You must also turn off you firewall.
That is all. Enjoy your home server. If you have questions, post them in the comments area.
Note: Creating home server is risky,when you open port, there is a possibility to have someone a breach in your computer .Before you start, make sure your computer has all the latest patches and security updates, and that you’ve done a thorough spyware and virus scan. This tutorial is only for advanced users
If you want to learn more about creating server below you can download free ebook called Run Your Own Web Server Using Linux & Apache – Free 191 Page Preview
Whether you’re planning on running Linux at home, or on a leased Web Server, this book will walk you step-by-step through all of the common administration tasks, from managing traffic reporting to log-file rotation. This guide even includes step-by-step instructions on installing Linux (Fedora 4), Apache 2.0, PHP 5 and MySQL 4.1 on a home or office development server, so you can test all of your applications before rolling them out. DOWNLOAD
Posted: 11 Apr 2010 06:46 AM PDT
No doubts that Wordpress has much more familiar and customizable blogging platform than that of blogger. However after Wordpress, Blogger is the one who leads the blogging Network which is owned by Google.
Needless to define the blogger plug-in that I am talking about. It shows the number of hits that your specific post have.

How to add this widget in your blog?
Login to your blogger account.
Go to Layout>Edit HTML

It is just a copy paste step.
Copy the code below:
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div align='center' style='border:solid 2px #999999; padding:2px;
margin:2px; width:100px; display:compact'>
<script src='http://nirav07.ulmb.com/counter.php' type='text/javascript'/>
Views</font></div></b:if>
Search for the following code:
<data:post.body/>
Note: Make sure that Expand Widget is checked.

Now paste the above copied code before or after the <data:post.body/>.
Pasting the code before it will add the plug-in before the post body starts. Pasting the code after it will add the plug-in after the post body, i.e. at the end of post body (See image above)

After doing this click on Save Template button.

And you are done. Now everybody can see the number of your post views. Hope you find this article helpful.
Posted: 11 Apr 2010 01:50 AM PDT
This is an interesting tutorial in which we will create a fake “virus” which can shutdown, restart and log off your pc(Can also write a message and specify the countdown time). This is actually a faster way to turn off your pc, ’cause it doesn’t require clicking START>TURNOFF button etc….And you can always do a little mischief by sending it to your friends ;)

1Create shortcut,(Right click on your desktop and go to new -> shortcut )
2)After this will appear window and that is where you type the code

shutdown -s -t 300 -c "Your Message"

There are few variants , this one will shutdown pc .
To log of computer type shutdown -l -t 300 -c "your message"
To restart computer type shutdown -r -t 300 -c " your message"
The number after -t is the number of seconds countdown there will be before shutdown . After -c write own message , that will come up when shutdown box pops up.


3) Click Next, Finish

4) After this will appear icon on desktop, when someone click it, shutdown box will pops up.



Enter email address where you want to receive tutorials when we post them! It’s free!

3)How can I stop system shutdown ? Go to Start->Run , then open cmd,write shutdown -a and press ENTER on keyboard, as shown below

Here’s a video instructional if you find it easier to follow the steps this way:

No comments:

Post a Comment