How to Install Friendica on Windows 11

Summary

This tutorial will guide you through the steps of installing Friendica on Windows 11.

Prerequisites

Before you begin, make sure you have the following installed:

Steps

  1. Launch WAMP Server and make sure it is running.

  2. Open the "www" directory in WAMP Server. This can be found by right-clicking on the WAMP Server icon in the system tray and selecting "www Directory."

  3. Clone the Friendica repository using Git by running the following command in the "www" directory:

    git clone https://github.com/friendica/friendica.git
    
  4. Navigate to the Friendica directory in the command prompt:

    cd friendica
    
  5. Install the required dependencies using Composer:

    composer install
    
  6. Once the installation is complete, copy the ".htconfig.php.sample" file and rename it to ".htconfig.php":

    copy htconfig.php.sample htconfig.php
    
  7. Open the ".htconfig.php" file in a text editor and modify the following settings:

    $a->config['system']['baseurl'] = 'http://localhost/friendica/';
    $a->config['system']['sitename'] = 'My Friendica Site';
    $a->config['system']['db_host'] = 'localhost';
    $a->config['system']['db_user'] = 'root';
    $a->config['system']['db_pass'] = '';
    $a->config['system']['db_database'] = 'friendica';
    
  8. Save the changes to the ".htconfig.php" file.

  9. Create a new MySQL database for Friendica using phpMyAdmin. Open phpMyAdmin by clicking on the WAMP Server icon in the system tray and selecting "phpMyAdmin." Log in with your MySQL username and password, and create a new database called "friendica."

  10. In the "www" directory, create a new file called "index.php" and paste the following code:

    <?php
    header("Location: ../friendica/index.php");
    ?>
    
  11. Launch your web browser and go to http://localhost/friendica. The Friendica installation page should appear.

  12. Follow the on-screen instructions to complete the installation process.

Congratulations, you have successfully installed Friendica on Windows 11!

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!