Introduction: 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:
https://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:
https://www.instructables.com/id/Raspberry-Pi-as-webserver/

Step 1: Install Apache

Connect to your Raspberry Pi.

If you havent set up ssh a guide can be found here:
https://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.

Install a Ftp-client on your PC.

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

Open a connection to your Pi.

Files are found underthe catalog /var/www

... if you have followed the previous steps.

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

http://213.65.123.101/whoiam/ - all you want to know about what google knows about you.

May the Pi be with you!

Comments

author
swaden10 (author)2016-08-13

I can't connect to the FTP, what can I do ?

author
Drk_Chpr (author)2014-06-06

Didacticiel très sympa. Par contre est-ce qu'une base de données à été installée et si oui comment l'administrer ?

author
antares72 (author)Drk_Chpr2014-06-17

Thanks Drk_Chpr! If you are in the start blocks to administer a database, I suggest you have a look at Postgresql! http://www.pontikis.net/blog/postgresql-9-debian-7...
May the Pi be with you!

author
HKM94 (author)2014-03-13

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

author
antares72 (author)HKM942014-03-13

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

author
antares72 (author)2012-10-19

Tnx Helder4u!!

author
Helder4u (author)2012-10-16

niice :)

About This Instructable

68,378views

95favorites

License:

More by antares72:See the world as BitsCheck who is at home! Home automation. Surveillance. Big Brother tech. Raspberry PI.Emergency supplies
Add instructable to: