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:
- A server running Fedora CoreOS Latest
- SSH access to the server
- Root access or a sudo user
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:
- 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
- Create a new virtual host configuration file for Friendica.
sudo nano /etc/httpd/conf.d/friendica.conf
- Add the following configuration to the file and save it.
<VirtualHost *:80>
ServerAdmin [email protected]
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>
- 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:
- Start the MariaDB service.
sudo systemctl start mariadb
- Run the secure installation script to configure MariaDB.
sudo mysql_secure_installation
Follow the prompts to configure the root password, remove anonymous users, disallow root login remotely, remove test database, and reload privileges.
Log in to the MariaDB server.
sudo mysql -u root -p
- Create a new database for Friendica.
CREATE DATABASE friendica;
- Create a new user and grant privileges to the Friendica database.
GRANT ALL PRIVILEGES ON friendica.* TO 'friendica'@'localhost' IDENTIFIED BY 'password';
- 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.
Open your web browser and navigate to the following URL: http://example.com/install.php
Follow the prompts to start the installation process.
When prompted, enter the details of the MariaDB database created in the previous step.
Follow the remaining prompts to complete the installation process.
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.