Raspberry Pi as a WebServer

Having your own web-server is really awesome if it is as cheap and so much fun as it can be.

Here are the steps to make your very own raspberry pi.

You should have a Raspberry Pi with an SSH connection and a static IP for this to work.

(If you haven’t done so I will soon post how to!!)

To install Apache and PHP:

sudo apt-get install apache2 php5 libapache2-mod-php5

Now restart the service.

sudo service apache2 restart

Now go to the web-browser on your computer and enter the static IP of the PI.
If you get a message saying : “It Works”..
then it sure does.

You can also install MySQL:

sudo apt-get install mysql-server mysql-client php5-mysql
Advertisements

One thought on “Raspberry Pi as a WebServer

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s