Skip to content
TheChatArchiveThe Chat Archive
gpt-3.5-turbo-0301· OpenAIAi2 WildChat-4.8M (AI2)

how to install filestash package in cent os

  1. User

    how to install filestash package in cent os

  2. Assistant
    1. First, make sure that your CentOS system is up-to-date by running the following command:

      sudo yum update
      
    2. Install the EPEL repository on your system by running the following command:

      sudo yum install epel-release
      
    3. 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
      
    4. 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
      
    5. Unzip the downloaded package by running the following command:

      unzip filestash-v0.17.2.zip
      
    6. 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
      
    7. Create a new Nginx server block file for Filestash by running the following command:

      sudo vi /etc/nginx/conf.d/filestash.conf
      
    8. 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.

    9. Restart the Nginx web server by running the following command:

      sudo systemctl restart nginx
      
    10. Filestash is now installed and accessible via a web browser at http://your_domain_name.com/.