Updated How to: Hosting a Friendica site at home (markdown)

MartinFarrent 2012-04-29 03:57:57 -07:00
parent 2408ffbc45
commit 413971f24e

@ -10,17 +10,17 @@ A dynamic DNS service solves the following common problem: You have a decent eno
1) Register a DynDns or similar account and install the respective/provided IP updater on your machine (that is the host computer). As explained above, this ensures that other sites can find your server, even though it is probably running on a dynamic IP. You will get a subdomain from the dynamic DNS service you choose: e.g. ``yourname.dyndns.org``
2) Install Virtual Box on your machine: [[https://www.virtualbox.org/]]
2) Install Virtual Box on your machine: [[https://www.virtualbox.org/]]. It's advisable to familiarize yourself with the program a little by reading the chapter **First steps** in its help pages. At the very least, for now, read sections 1.5 to 1.8. Be sure to read 1.9 later on, because it describes a very easy way to back up your server.
3) Download and unzip this image: [[http://downloads.friendica.eu/Friendica.zip]] Make a copy of it in case something goes wrong and you want to start over again.
4) In Virtual Box, set up a new virtual machine for a Linux/Debian system, specifying the downloaded disk as your hard disk. 256 MB of RAM should suffice. The network mode should be set to "bridged".
5) Start the new machine and log on as "root" (password: "friendica"). At this point in time, the virtual machine is using a U.S. keyboard layout. If that's confusing you, take a look here: https://en.wikipedia.org/wiki/File:KB_United_States-NoAltGr.svg
5) Start the new machine and log on as the (admin) user called "root" (password: "friendica"). At this point in time, the virtual machine is using a U.S. keyboard layout. If that's confusing you, take a look here: https://en.wikipedia.org/wiki/File:KB_United_States-NoAltGr.svg
6) Enter the command ``ifconfig`` to discover the virtual machine's internal IP.
6) Enter the command ``ifconfig`` to discover the virtual machine's internal IP. The entry you are looking for will be something like this ``inet Address:12.345.678.9`` - **not** this one: ``inet Address:127.0.0.1``.
7) Configure your router to pass http to that IP. This means forwarding traffic on port 80 to it. Consult your router documentation on how to do this.
7) Configure your router to pass http to that IP. This means forwarding traffic on port 80 to it. Consult your router documentation on how to do this. Many routers have so-called rules that are pre-configured for you. If that's the case, this is the most common of them and will be called something like 'web' - meaning that you only have to enter the IP and activate it.
8) At the command prompt, type ``cd /root`` then ``bash setup-friendica.sh all``