How to Install Immich on Fedora Server Latest

In this tutorial, we will guide you through the steps to install Immich on your Fedora Server Latest system. Immich is an open-source immigration case management software that helps immigration practitioners and law firms track and manage their client's cases efficiently.

Requirements:

Step 1: Install Dependencies

The first step before installing Immich is to install the necessary dependencies. Run the following commands in your terminal:

sudo dnf update -y
sudo dnf install -y git nginx mongodb composer php php-fpm php-mbstring php-gd php-xml php-mcrypt php-zip

Step 2: Clone Immich Repo

Next, you need to clone the Immich repository to your system. Run the following command to clone the repository:

sudo git clone https://github.com/alextran1502/immich.git /var/www/immich

Step 3: Install Dependencies for Immich

Navigate to the directory where you have cloned the Immich repository, and run the following command to install the dependencies:

sudo composer install

Step 4: Configure Nginx

Create a new Nginx configuration file for Immich using the following command:

sudo nano /etc/nginx/conf.d/immich.conf

Add the following content in it:

server {
    listen 80;
    server_name your_domain.com;
    root /var/www/immich/public;

    index index.php;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location ~ \.php$ {
         try_files $uri =404;
         fastcgi_pass unix:/run/php-fpm/www.sock;
         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
         include fastcgi_params;
    }
}

Save and close the file.

Step 5: Start Services

Start the Nginx and PHP-FPM services using the following command:

sudo systemctl start nginx
sudo systemctl start php-fpm

Step 6: Configure MongoDB

Create a new MongoDB configuration file using the following command:

sudo nano /etc/mongod.conf

Add the following content to it:

systemLog:
  destination: file
  path: /var/log/mongodb/mongod.log
  logAppend: true
storage:
  dbPath: /var/lib/mongodb
  journal:
    enabled: true
processManagement:
  fork: true
  pidFilePath: /var/run/mongodb/mongod.pid
net:
  port: 27017
  bindIp: 127.0.0.1

Save and close the file.

Step 7: Start MongoDB

Start the MongoDB service using the following command:

sudo systemctl start mongod

Step 8: Configure Immich

Create a new configuration file for Immich using the following command:

sudo nano /var/www/immich/.env

Add the following content to it:

APP_NAME=Immich
APP_ENV=local
APP_KEY=

MONGO_DB_HOST=127.0.0.1:27017
MONGO_DB_NAME=immich
MONGO_DB_USERNAME=
MONGO_DB_PASSWORD=

MAIL_DRIVER=smtp
MAIL_HOST=
MAIL_PORT=
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=

SESSION_DRIVER=mongodb
SESSION_DOMAIN=

CACHE_DRIVER=file

QUEUE_DRIVER=sync

Save and close the file.

Step 9: Set Permissions

Set the appropriate permissions to access the files by running the following commands:

sudo chown -R nginx:nginx /var/www/immich
sudo chmod -R 755 /var/www/immich/storage

Step 10: Access Immich

Finally, you can access Immich by opening your web browser and navigating to http://your_domain.com. You should see the Immich login page.

Congratulations! You have successfully installed Immich on your Fedora Server Latest system.

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!