how to install filestash package in cent os
- User
how to install filestash package in cent os
- Assistant
-
First, make sure that your CentOS system is up-to-date by running the following command:
sudo yum update -
Install the EPEL repository on your system by running the following command:
sudo yum install epel-release -
Install Nginx web server and PHP along with some required dependencies by running the following command:
sudo yum install nginx php-fpm php-cli php-gd php-mbstring php-xml php-zip unzip -
Download the latest Filestash package from the official website. You can use the following command to download the package:
wget https://github.com/mickael-kerjean/filestash/releases/download/v0.17.2/filestash-v0.17.2.zip -
Unzip the downloaded package by running the following command:
unzip filestash-v0.17.2.zip -
Move the unzipped files to your Nginx root web directory by running the following command:
sudo mv filestash-v0.17.2 /usr/share/nginx/html/filestash -
Create a new Nginx server block file for Filestash by running the following command:
sudo vi /etc/nginx/conf.d/filestash.conf -
Copy and paste the following configuration into the file and save it:
server { listen 80; server_name your_domain_name.com; root /usr/share/nginx/html/filestash; location / { try_files $uri $uri/ =404; index index.php; } location ~ \.php$ { fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location ~ /\.ht { deny all; } }Note: Replace your_domain_name.com with your actual domain name.
-
Restart the Nginx web server by running the following command:
sudo systemctl restart nginx -
Filestash is now installed and accessible via a web browser at http://your_domain_name.com/.
-