Instructables

Install a webserver on Raspberry Pi.

Picture of Install a webserver on Raspberry Pi.
This guide briefly explains how to install a webserver on your Raspberry Pi.

First you should enable ssh. A guide is found here:
http://www.instructables.com/id/Use-ssh-to-talk-with-your-Raspberry-Pi/

You'll need:
1 Raspberry Pi
(connected to a router and the Internet)

When the webserver is installed you probably want to add files with ftp:
See step 2!

If you want to make the webserver visible on the Internet look here:
http://www.instructables.com/id/Raspberry-Pi-as-webserver/

 
Remove these adsRemove these ads by Signing Up

Step 1: Install Apache

Picture of Install Apache
Connect to your Raspberry Pi.

If you havent set up ssh a guide can be found here:
http://www.instructables.com/id/Use-ssh-to-talk-with-your-Raspberry-Pi/

Run the commands:
sudo apt-get update
sudo apt-get install apache2 php5 libapache2-mod-php5

Now your Raspberry Pi should display (if you open it in your browser):
It works!

If you are uncertain of address type ifconfig in your ssh-window. Should be 192.168.1.12 for example.


Step 2: Add files to your Raspberry Pi with ftp.

Picture of Add files to your Raspberry Pi with ftp.
Install a Ftp-client on your PC.

For example:
http://www.coreftp.com/download.html

Open a connection to your Pi.

Files are found under the catalog /var/www

... if you have followed the previous steps.

My Raspberry webserver can be found here:
http://cubestone.tk/qr - A QR business card generator.

May the Pi be with you!
HKM941 month ago

hello.. i need the video for install a webserver on raspberry Pi, step by step.. anyone can help me..?

antares72 (author)  HKM941 month ago

I think you can follow instruction above, but maybe this can help:
http://lmgtfy.com/?q=youtube+install+web+server+on... ;)

antares72 (author) 1 year ago
Tnx Helder4u!!
Helder4u1 year ago
niice :)
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!