host your private website on your own tiny $10-$35 worth dedicated server

Started on the old forum in February 2018 · view the original in the archive · old links redirect here

No replies · 52 views · started 8 years ago · 1 min read

GumSlone Administrator Principal · 1,690 posts #1

With raspberry pi you can set up your own dedicated server to host a small website, it costs only $10 for raspberry pi zero or $35 for raspberry pi3.

Well you will need additional stuff, like micro sd card for data storage and a micro usb cable with power adapter for power supply. Optionally you can connect a lan cable to your raspberry pi 3.

First install Raspbian OS on your raspberry pi, here you can find more infos how to install it: https://www.raspberrypi.org/downloads/

To setup a Webserver on a RPi, you will need to install apache php and mysql on it.

login via ssh port 22 to your raspberry pi (default username is: "pi" and password is: "raspberry") and run this commands to install everything:

 
 sudo apt-get update && sudo apt-get install apache2 php5 php5-ssh2 git -y  

for mysql do this:

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

and finally reboot your rpi with:

 
 sudo reboot 

Place your website files in the /var/www/html/ folder, you will be able to access your site on RPI like this http://RPI_IP_ADDRESS/

Later you can open port 80 on your router and redirect it to the RPi, so that you can access your website from internet, you will also need a static ip address or you can choose some a dynamic dns service if want to use a domain.

👍 1
Share

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close