Host Your Website Directly from Your Computer Without Spending on it
If talking about creating a website, first of all, it comes to mind that expenses are expected to get the domain half of which gets around one thousand rupees. After that, hosting can be from five thousand rupees to twenty thirty thousand rupees. Although a free host can be chosen, but its problems are different. Most people ask us how a website can be hosted on our own computer? Is there any easy solution that we can quickly live by creating a website on our computer? If you are also interested in the answer to this question, then it is answered “yes”. Website can be hosted on your computer very easily. Assume you’re a web developer, you’ve started working on one of your client’s websites, so you’ll definitely be doing this on your computer. To check the web site you have created a local server on the PC. But it may be very difficult if your client is asked to immediately visit the website. Because of that you have to upload all the tasks to a web server. If this feature is available that the web site on your computer can be seen by anyone, which is easily accessible anywhere in the world? Because there are thousands of files behind a website, which require time to upload.
Let’s tell you how the web site on local servers can be able to view worldwide. This method is very simple and as simple as saying one of two. If you do not have more information about the web development, you can still do this.
Apache Web server software is usually used to run web applications made with PHP programming Linux. Apache web server work is to receive and respond to requests from users. For example, when a user types the address of a webpage, etc. in the browser, the browser sends this application to a web server. This application receives an Apache software on this web server and then sends the requested file to the disk according to the user request. This user’s request may also be for web pages that have been made with PHP and included in some Web Records from mysql database.
The web hosting account is therefore obtained so that the web site or web application can be uploaded for people’s use. But the use of the hosting account for the development of web applications remains far more profitable. Because the application has to test continuously while making a code change during the programming. After uploading the code of the file and then testing it in the browser is a daunting task. In addition to this, Internet connection is also required every time for a web developer using the hosting account.
Developers install all the tools and software on their own computer that can help with web hosting without hosting accounts and internet connection. So for the web development development, the following software packages must be installed on the computer:
- PHP Programming Language to Create Web Pages Automatically.
- MySQL database system to save data from web applications.
- Apache web server to run web applications in the browser.
- PhpMyAdmin Web application to work on database by writing at least SQL code.
- WebGrind or another tool like this to test the application speed.
All web sites are required to install a local web server. “WampServer” is available to facilitate this task. The WampServer software provides all the software in the same installation package. If you do not use WampServer or any other tool like this, you’ll have to install all this software separately and install.
Installation of the WampServer is similar to some clicks similar to the installation of other programs. Its installation can be created by a local web server on the same computer. The Wamp can be downloaded from the following link: www.wampserver.com
After installing the Wamp, all its services will be turned on in the system tray after running all the services. If you do not have an eyelash, it means that no service can be found. Run all the services by clicking on its icon for it. An effect also came to see that if you are using Skype, the Wamp does not run because both of them are using the same port to work. Are there Therefore, closing the Skype wamp starts doing the right thing. During the installation of Wamp, asking which server you want to create a server. Usually it creates its own folder in a drive named Wamp. In this way, you can place your website’s files at the location of C:\wamp\www and see them in a local server.
To test the validity of the Wamp installation, press the localhost in a web browser to inter press. Localhost means that we are accessing our own network by network. You can write 127.0.0.1 instead of typing localhost in the browser that is a Loop back address for more than a few computers.
All local information about the local server will be available on the local host. This page opens that you have created a local server correctly. Now you can see the site on your local server using any other system on the network using the IP address of your system in localhost space.
Local Server online
Making a local server a global online for live web site on a local server, not only makes the website visible anywhere in the world but also you avoid any uploading. It can be beneficial in a way that you want to temporarily create a website, or permanently host your website on your computer or have file sharing sharing in all cases, for your computer and internet access to a local server. The existing website can be able to view worldwide.
What we need to replace a local server into a web server is “Local Tunnel”. This tool enables us to see anywhere in the world by making a “tunnel” to our local server through a proxy.
Remember that your website will be able to be seen only when your computer will not only be online, but it will also be running on the internet. If the computer is not available or the internet is unavailable, the site network will be able to be seen anywhere else.
Local Tunnel Installation
The local tutorial is provided in the Node.js package. So before you have to download the “Node.js” link: www.nodejs.org
This package consists of 15.9 MB size, which is not a difficult task to download. In addition to Node Windows, Mac and Linux are also available free to all users. Its source code for developers is also available on the same page.
Its installation is also very simple. Double-click on the downloaded file, its installation will be completed in a few seconds. After installing a Terminal or command prompt, install the following command in the node.js installation.
npm install -g localtunnel This command will install the local tunnel accessible anywhere around the world. After the installation is complete, its command will be used to use the “LT” command.
For example, to test the command and test the correct configuration of the tunnel, type a test command:
After the lt press the two negative marks and versions, press Enter, then it should show the local tutorial as a result. As you can see in the image, it has shown version 1.9.0. If you do not show the version number, then try again and carefully type the command correctly.
You can use the “lt –help” command to help you. This command tells you the option available on the local tunnel and how to use them.
Use of local tunnel
If you have already created a local server, then the installation of node has also come, so let’s see how the local tunnel is used. We hope you have a basic type of website on local servers even if they do not have the same page so that local tiles can be tested. For ease you can also install WordPress on a local server.
This command will be run on the command prompt to get a global link to your website on Local Server:
lt –port 80 (LT space two minus port space 80) This command will make a random subdomain for your local server once you complete your work. If your local web server is running, this link can now be viewed anywhere around the world through this link.
If you do not like this random name and want to get all the domains you like, then it will have to use a separate command. For example:
lt –port 80 –subdomain testwebsite This command will try to get the subdomain you like. If the subdomain is available, you will be given immediately. Now there is no need to remember a random link, but the domain on your local server can be viewed anywhere from all of your domains. Local Tunnel also supports virtual hosts. When the lt –port 80 command is used, the local tunnel opens to default as a localhost pocket. If you have created a virtual host and assume that its name is testwebsite.dev, you can connect the local tutorial to a virtual host instead of a local host. This will be used –local –host parameters.
Now the commands are to be typed:
lt -port 80 -subdomain testwebsite -local -host testwebsite.dev
The presence of “Local Tunnel” for web developers is not less than a blessing. As you read in this article, it is also very easy to configure it.