Jump to content

Starting and Running a Website

From Wikibooks, open books for an open world

This is a simple step by step wikibook guidebook for %100 FREELY self hosting and making a website be it a wiki website or whatever any thing you can self host using an old computer.

This book answers most questions in short text without relying on LLMs or ollama or IDE Visual Studio Code environments.

Step 1 setup

[edit | edit source]

1. Create a fresh Ubuntu installation on VMWARE on Windows - just install VMware and download Ubuntu desktop for it and click on new virtual machine

- Step 1: Download VMware Workstation Player (free for personal use) or Workstation Pro from the official VMware website (https://www.vmware.com/products/workstation-player.html).

- Step 2: Run the installer (.exe for Windows or .bundle for Linux) and follow the on-screen instructions.

  - Accept the license agreement.

  - Choose the installation directory.

  - Install

- Step 3: Download the latest Ubuntu ISO (e.g., Ubuntu 22.04 LTS) from the official Ubuntu website (https://ubuntu.com/download/desktop).

- Step 4: Create a new virtual machine in VMware:

  - Open VMware and click Create a New Virtual Machine.

  - Select Installer disc image file (ISO) and browse to the downloaded Ubuntu ISO.

  - Choose Linux > Ubuntu as the guest OS.

  - Allocate resources:

    - CPU: At least 2 cores.

    - RAM: Minimum 4GB (8GB recommended).

    - Disk: 20GB or more.

  - Finish the setup and power on

- Step 5: Install Ubuntu in the VM:

  - Follow the Ubuntu installer prompts.

  - Select Erase disk and install Ubuntu (this only affects the virtual disk).

  - Set up your username, password, and timezone.

  - Complete the installation


2. Set the network on VMWARE virtual Ubuntu Linux machine to bridged automatic mode

3. Buy a domain name

4. Register domain name on dash.cloudflare.com

Just go to domain section and write your website address

5. Install docker on ubuntu

Go to get.docker.com download the setup file AMD.deb package and install the docker software with apt command in Ubuntu gnome desktop kommand Terminal or use the following commands

sudo apt install docker.io -y

  sudo systemctl enable docker

  sudo systemctl start docker


6.Install self hosting software that are easy

Such as easypanel.io

Coolify and or yunohost or anything else

Use the following commands


  sudo apt update && sudo apt upgrade -y

  sudo docker run --rm -i -t -p 80:80 -p 443:443 -p 3000:3000 \

  -v /var/run/docker.sock:/var/run/docker.sock \

  easypanel/easypanel


7. Once you have installed easypanel.io select mediawiki or any other good software , then create a NEW cloudflare tunnel from dash.cloudflare.com from networks menu ... connect your website domain name address to your the easypanel website.


Access EasyPanel:

  - Open a browser and go to http://<VM-IP>:3000.

Easypanel URL Address is http://localhost:3000


Step 2 running the website

[edit | edit source]

Once you have entered your website you may need Username and password you can find it in easypanel DB credentials menu.

There are several use cases You can own a media server for your self , on the templates list there are 1 click install corporate softwares such as twentycrm, nocobase , office suite, cloud , Content management systems CMS like drupal-cms or WordPress service.

You can import ANY git website code files into dockerizer from github like this https://github.com/suitenumerique/docs.

Clone Wikipedia/ replicate wikipedia

[edit | edit source]

There are wiki like websites such as Fandom (read Starting and Running a Wiki Website ) But if you want to do it yourself and own your own Wikipedia articles and files , then download Wikipedia dump aka database backup file which is coming in compressed image file and import it in to your installation https://dumps.wikimedia.org/


You can customize your Wikipedia into looking like TikTok with next js using a free software called wikitok you need to install on your machine.

References

[edit | edit source]

Learning source of this training https://www.makeuseof.com/host-website-using-pc-or-laptop/

You can also self host free Decentralized fediverse social media service instance using Pleroma but you need a free Oracle cloud account with a credit card https://pleroma.social/ Similar to Instagram threads or telegram and Facebook messenger or red notes or Twitter x

Zero code no code, low code guidebook How to host a website of your own selfhosted wikipedia mediawiki, free to use by companies