Friendica is a free and open source social networking platform that allows users to connect with each other across multiple social networks. In this tutorial, we will go through the steps of installing Friendica on Manjaro.
Before proceeding with the installation, you will need the following:
Open a terminal and execute the following commands to install Apache, MariaDB and PHP:
sudo pacman -S apache mariadb php php-apache php-gd php-intl php-pdo_mysql
Start and enable Apache and MariaDB:
sudo systemctl enable httpd
sudo systemctl start httpd
sudo systemctl enable mariadb
sudo systemctl start mariadb
Login to MariaDB using the following command:
sudo mysql -u root -p
Enter your MySQL root password when prompted. Once you are logged in, create a new database and user for Friendica:
CREATE DATABASE friendica;
GRANT ALL PRIVILEGES ON friendica.* TO 'friendica'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
Note: Replace password
with a secure and strong password.
Download the latest stable release of Friendica from the official website https://friendi.ca/download/. Once downloaded, extract the archive to the document root of Apache:
sudo wget -O friendica.zip https://github.com/friendica/friendica/archive/2022.06.zip
sudo unzip friendica.zip -d /srv/http/
sudo mv /srv/http/friendica-2022.06 /srv/http/friendica
Create a configuration file for Friendica:
cd /srv/http/friendica
sudo cp .htconfig.php.sample .htconfig.php
Edit the configuration file with your database credentials:
sudo nano .htconfig.php
Update the following values with your database information:
$config['system']['database'] = 'mysql://friendica:password@localhost/friendica';
Note: Replace password
with the password you set earlier.
Save the changes and close the file.
Set the appropriate file permissions for the Friendica directory:
sudo chown -R http:http /srv/http/friendica
sudo chmod -R 755 /srv/http/friendica
Open a web browser and navigate to your server's IP address or domain name followed by /friendica
:
http://<your-server-ip>/friendica
Follow the on-screen instructions to complete the installation process.
Congratulations! You have successfully installed Friendica on Manjaro.
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!