Project 1 - Personal Hosting Server
Description - A Raspberry Pi web server makes for a great lightweight Web Server. It can handle a small amount of traffic and lightweight scripts making it fantastic for a home server or an area you can learn web programming languages such as PHP.
Steps -
1. After setting up my Pi, I directly opened the terminal and wrote
Code:
sudo apt-get install apache2 -y
This will install Apache Web Server. Once the server is installed this is all you need. You just need to know your IP Address. You can get your IP Address on Linux either using
or
2. Browse to the IP address in a browser and you should get a page with Apache default page.
3. Now you can access the webpage from other computers in same network but in order to make it visible to outside network, there is added step. Now do not try this step if you have no clue whatsoever
4. Login to your router. The IP Address to login would usually be 10.0.0.1 or written on router. Username and Password would be admin and admin and if not it would be mentioned on the router.
5. Once you are in, go to See all IP connection section.(This will be in a different place for different routers). Do some searching for your particular router.
6. Find the rasberry pi IP address and change it to Static.
7. Now next find the Port Forwarding menu and forward port 80 generally to the Rasberry PI Address.
8. Inside the router find the ISP's IP address for your network.
9. Enter that ISP IP address from outside network and pass port number 80 for example - http://192.0.0.0:80, this will take you to the default Apache page. You have your hosting read.
10. Change the HTML or place your project under
My hosting is live and it can be found here Welcome to Jolly Jumbo
Things to know - Linux commands, Basic networking skills
P.S - To keep your host alive you need to keep your RasPi switched on always