Installing Friendica on Manjaro
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.
Prerequisites
Before proceeding with the installation, you will need the following:
- Manjaro installed on your computer.
- A web server (Apache, Nginx) and database server (MySQL, MariaDB).
Step 1: Install Apache, MariaDB and PHP
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
Step 2: Create a database for Friendica
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.
Step 3: Download and extract Friendica
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
Step 4: Configure 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.
Step 5: Set file permissions
Set the appropriate file permissions for the Friendica directory:
sudo chown -R http:http /srv/http/friendica
sudo chmod -R 755 /srv/http/friendica
Step 6: Access Friendica in a web browser
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.