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:
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
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
Now that all the required packages are installed, it's time to download and install Friendica. Follow these steps to install Friendica:
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
sudo nano /etc/httpd/conf.d/friendica.conf
<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>
sudo systemctl restart httpd.service
Friendica stores its data in a MariaDB database. Here's how to configure the database:
sudo systemctl start 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 DATABASE friendica;
GRANT ALL PRIVILEGES ON friendica.* TO 'friendica'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
EXIT;
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.
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!