Installing Friendica on Fedora CoreOS Latest

In this tutorial, we will guide you through the process of installing Friendica on Fedora CoreOS Latest.

Before we get started, make sure you have the following prerequisites:

Step 1: Update the system

The first step is to update the system to ensure that all packages are up to date. To do this, log in to your server using SSH and run the following command:

sudo dnf update -y

Step 2: Install Required Packages

Friendica requires a few packages to be installed on your system. Run the following command to install the required packages:

sudo dnf install -y apache mariadb-server php php-mysqlnd php-gd php-json php-xmlrpc php-mbstring php-intl php-bcmath

Step 3: Install Friendica

Now that all the required packages are installed, it's time to download and install Friendica. Follow these steps to install Friendica:

  1. Download the latest version of Friendica from the official website.
cd /var/www/html/
sudo wget https://github.com/friendica/friendica/archive/refs/heads/master.zip
sudo unzip master.zip
sudo mv friendica-master/ friendica
sudo chown -R apache:apache friendica
  1. Create a new virtual host configuration file for Friendica.
sudo nano /etc/httpd/conf.d/friendica.conf
  1. Add the following configuration to the file and save it.
<VirtualHost *:80>
    ServerAdmin admin@example.com
    DocumentRoot /var/www/html/friendica
    ServerName example.com
    ServerAlias www.example.com
    <Directory /var/www/html/friendica>
        Options FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
    ErrorLog /var/log/httpd/friendica-error.log
    CustomLog /var/log/httpd/friendica-access.log combined
</VirtualHost>
  1. Restart the Apache web server.
sudo systemctl restart httpd.service

Step 4: Configure MariaDB

Friendica stores its data in a MariaDB database. Here's how to configure the database:

  1. Start the MariaDB service.
sudo systemctl start mariadb
  1. Run the secure installation script to configure MariaDB.
sudo mysql_secure_installation
  1. Follow the prompts to configure the root password, remove anonymous users, disallow root login remotely, remove test database, and reload privileges.

  2. Log in to the MariaDB server.

sudo mysql -u root -p
  1. Create a new database for Friendica.
CREATE DATABASE friendica;
  1. Create a new user and grant privileges to the Friendica database.
GRANT ALL PRIVILEGES ON friendica.* TO 'friendica'@'localhost' IDENTIFIED BY 'password';
  1. Flush the privileges and exit the MariaDB console.
FLUSH PRIVILEGES;
EXIT;

Step 5: Install Friendica via Setup Wizard

Now that you have installed and configured Friendica, you can test it by accessing the web interface in your web browser.

  1. Open your web browser and navigate to the following URL: http://example.com/install.php

  2. Follow the prompts to start the installation process.

  3. When prompted, enter the details of the MariaDB database created in the previous step.

  4. Follow the remaining prompts to complete the installation process.

  5. Once the installation completes, you can access the Friendica web interface by navigating to the following URL: http://example.com

Congratulations! You have successfully installed Friendica on Fedora CoreOS Latest.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!