In this tutorial, we will guide you through installing IFM, a lightweight and user-friendly file manager that works in your web browser on Debian Latest.
IFM is available on GitHub: https://github.com/misterunknown/ifm
First, we need to install some packages that are required to run IFM. We can do that by running the following command as the root user:
sudo apt-get update
sudo apt-get install nginx php-fpm php-curl php-zip
Next, we will download and install IFM.
Download the latest release of IFM from GitHub:
wget https://github.com/misterunknown/ifm/archive/master.zip
Unzip the downloaded file:
unzip master.zip
Copy the ifm-nginx.conf
file to the /etc/nginx/conf.d/
directory:
sudo cp ifm-master/ifm-nginx.conf /etc/nginx/conf.d/
Create a new directory for IFM:
sudo mkdir -p /var/www/ifm/
Copy the contents of the ifm-master
directory to /var/www/ifm/
:
sudo cp -rf ifm-master/* /var/www/ifm/
Set the ownership of the /var/www/ifm/
directory to the www-data
user and group:
sudo chown -R www-data:www-data /var/www/ifm/
Open the Nginx configuration file for IFM:
sudo nano /etc/nginx/conf.d/ifm-nginx.conf
Replace the following server
block with the following code:
server {
listen 80;
root /var/www/ifm;
index index.html index.php;
server_name your-domain.com;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location ~ /\.ht {
deny all;
}
}
Make sure to replace your-domain.com
with your own domain.
Save and close the file.
Restart Nginx and PHP-FPM:
sudo systemctl restart nginx
sudo systemctl restart php7.3-fpm
IFM should now be accessible in your web browser at http://your-domain.com/
.
You can navigate through the file system, create and delete files and folders, and even edit files using the built-in editor.
Congratulations! You have successfully installed IFM on Debian 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!