PUQ Mautic Skip to main content

Setup guide: Filemanager preparation and configuration

 Order now | Download | FAQ

1. Simple installation Filemanager

1. Prepare hosting for the file manager.

Minimum Requirements: PHP 7.2.5+ (with php-zip extension)

2. Download the latest version filemanager from the module folder.
wget https://download.puqcloud.com/WHMCS/servers/PUQ_WHMCS-HestiaCP/filemanager/filemanager_latest.zip

All versions are available via link: http://download.puqcloud.com/WHMCS/servers/PUQ_WHMCS-HestiaCP/filemanager/

2. Unzip the archive with the Filemanager and upload them to your PHP server
unzip filemanager_latest.zip
3. Make sure your webserver can read and write to ../repository/ and ../private/ folders
4. Set the website document root to ../dist/ directory. This is also known as 'public' folder

NOTE: For security reasons filegator/dist is the ONLY folder you want to be exposed through the web. Everything else should be outside of your web root, this way people can’t access any of your important files through the browser. If you run the script from the root folder, you will see the message 'Development mode' as a security warning.

2. Advanced installation Filemanager

1. Installing a file manager

The original instructions for installing and configuring the file manager https://docs.filegator.io/install.html

Minimum Requirements: PHP 7.2.5+ (with php-zip extension)

Download precompiled build

Precompiled build is created for non-developers. In this version, the frontend (html, css and javascript) is compiled for you and the source code is removed so the final archive contains only minimum files.

      • Download the latest release
      • Unzip files and upload them to your PHP server
      • Make sure your webserver can read and write to filegator/repository/ and filegator/private/ folders
      • Set the website document root to filegator/dist/ directory. This is also known as 'public' folder
      • Visit web page, if something goes wrong check filegator/private/logs/app.log

NOTE: For security reasons filegator/dist is the ONLY folder you want to be exposed through the web. Everything else should be outside of your web root, this way people can’t access any of your important files through the browser. If you run the script from the root folder, you will see the message 'Development mode' as a security warning.

Install on fresh Ubuntu 18.04 or Debian 10.3

On a new server login as root and enter this into the shell:

apt update
apt install -y wget unzip php apache2 libapache2-mod-php php-zip php-mbstring php-dom php-xml

cd /var/www/
wget https://github.com/filegator/static/raw/master/builds/filegator_latest.zip
unzip filegator_latest.zip && rm filegator_latest.zip

chown -R www-data:www-data filegator/
chmod -R 775 filegator/

echo "
<VirtualHost *:80>
DocumentRoot /var/www/filegator/dist
</VirtualHost>
" >> /etc/apache2/sites-available/filegator.conf

a2dissite 000-default.conf
a2ensite filegator.conf
systemctl restart apache2

exit

Open your browser and go to http://your_server_ip_address

Show your support
      • Please star this repository on GitHub if this project helped you!
Upgrade instructions
      • Backup everythig
      • Download the latest version
      • Replace all files and folders except repository/ and private/

Which versions am I running? Look for APP_VERSION inside dist/index.php file

2. Installing API script and file manager configuration script

1. Download the latest version API script and file manager configuration script from the module folder.
wget http://download.puqcloud.com/WHMCS/servers/PUQ_WHMCS-HestiaCP/filemanager/api/Filegator-api-for-HestiaCP-module.zip

All versions are available via link: http://download.puqcloud.com/WHMCS/servers/PUQ_WHMCS-HestiaCP/filemanager/api/

2. Unzip the archive with the API script and file manager configuration script and upload them to your PHP server
unzip Filegator-api-for-HestiaCP-module.zip

Attention! The configuration.php file must be located in the root folder of your file manager. The api.php file must be located in the /dist folder of your file manager.