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

  • Filter
  • Time
  • Show
Clear All
new posts

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

    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:

    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.