Directory Image
This website uses cookies to improve user experience. By using our website you consent to all cookies in accordance with our Privacy Policy.

Apache Web Server on a Raspberry Pi

Author: Shahiba Kabeel
by Shahiba Kabeel
Posted: Mar 31, 2019

As we are using raspberry pi for most of our IoT Projects, I did thought that is Raspberry Pi only used for IoT projects, are there any other ways we can use the devices. Definitely yes is the answer and I have already started using Raspberry pi for lot of other things.Looking at the device, you know you can use it for so many project but you’re not sure how to do it.

The simplest use for a Raspberry Pi is as a desktop computer.Depending on which model you buy, the Raspberry Pi is one of the world's least expensive and most versatile computers with just 512MB to 1GB of RAM and an SD card for storage. A good desktop computer can be useful, particularly for work-related tasks, but for many people space is a problem. What better computer to turn to than the box-sized Raspberry Pi. Connect the pi to your TV through HDMI cable, connect as keyboard, mouse and to a WiFi you have good speed, fast booting computer. You also get applications like LibreOffice which is one of alternatives to Microsoft Office, claws email, chromium browser etc.

You need to install Raspbian or different OS to setup your raspberry pi.

Are you a blogger or web page developer? You want to host a website and don't want to spend much money. Yes it is possible, setup a web server with raspberry pi. one of amazing uses for raspberry pi listed in my article is raspberry pi web server.This raspberry pi web server tutorial will describe the steps for how to make a Raspberry Pi Web Server.

Apache is a popular web server application you can install on the Raspberry Pi to allow it to serve web pages.On its own, Apache can serve HTML files over HTTP, and with additional modules can serve dynamic web pages using scripting languages such as PHP.

You can setup your own website in Raspberry pi using apache webserver, php and WordPress. You can use no-ip and no need to worry about changing public ip.

Components Required:

Raspberry Pi ( Zero or model B+)A Micro USB Power supplyMicro SD Card ( Recommended 8 GB)TV or Computer Monitor ( it is possible to setup raspberry pi without monitor, for now we will connect the pi to monitor)HDMI cableEthernet Cable ( If don't have wireless)Keyboard and MouseI would recommend Raspberry Pi 3 model B+, which is the latest Pi available in market & this is having good specifications as listed below for good raspberry pi web server performance.

Quad Core 1.2GHz Broadcom BCM2837 64bit CPU1GB RAMBCM43438 wireless LAN and Bluetooth Low Energy (BLE) on board100 Base Ethernet40-pin extended GPIO4 USB 2 ports4 Pole stereo output and composite video portFull size HDMICSI camera port for connecting a Raspberry Pi cameraDSI display port for connecting a Raspberry Pi touchscreen displayMicro SD port for loading your operating system and storing dataUpgraded switched Micro USB power source up to 2.5AHow to install a web server on the Raspberry Pi :Install apache on raspberry pi

First, update the available packages by typing the following command into the Terminal:

sudo apt-get update

sudo apt-get upgrade

Next install apache2 package with this command:

sudo apt-get install apache2 -y

Reference: http://www.thetips4you.com/raspberry-pi-as-web-server-setting-up-an-apache-web-server-on-a-raspberry-pi/

How to install Wordpress: http://www.thetips4you.com/build-your-website-in-wordpress-how-to-setup-wordpress-on-raspberry-pi/

About the Author

Freelance Blogger www.thetips4you.com

Rate this Article
Leave a Comment
Author Thumbnail
I Agree:
Comment 
Pictures
Author: Shahiba Kabeel

Shahiba Kabeel

Member since: Feb 11, 2019
Published articles: 34

Related Articles