mirror of
https://github.com/filegator/filegator.git
synced 2025-10-23 13:56:11 +02:00
115 lines
4.9 KiB
HTML
115 lines
4.9 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
|
||
<title></title>
|
||
|
||
<link rel="stylesheet" href="/css/bootstrap.min.css">
|
||
<link rel="stylesheet" href="/css/font-awesome.min.css">
|
||
<link rel="stylesheet" href="/css/highlight.dark.css">
|
||
<link rel="stylesheet" href="/css/main.css">
|
||
</head>
|
||
<body>
|
||
|
||
<header class="navbar navbar-default navbar-fixed-top">
|
||
|
||
<a class="navbar-brand" href="/">
|
||
The title
|
||
<small class="hidden-xs hidden-sm">
|
||
This is the default subtitle!
|
||
</small>
|
||
</a>
|
||
|
||
|
||
</header>
|
||
|
||
<main class="container">
|
||
<div class="row">
|
||
|
||
|
||
<section id="content" class="col-sm-12">
|
||
<h2 id="minimum-requirements">Minimum Requirements</h2>
|
||
<ul>
|
||
<li>PHP 7.2.5+ (with php-zip extension)</li>
|
||
</ul>
|
||
<h2 id="download-precompiled-build">Download precompiled build</h2>
|
||
<p>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.</p>
|
||
<ul>
|
||
<li>Download: <a href="https://github.com/filegator/static/raw/master/builds/filegator_latest.zip">latest release</a></li>
|
||
<li>Unzip files and upload them to your PHP server</li>
|
||
<li>Make sure your webserver can read and write to <code>filegator/repository/</code> and <code>filegator/private/</code> folders</li>
|
||
<li>Set the website document root to <code>filegator/dist/</code> directory. This is also known as 'public' folder</li>
|
||
<li>Visit web page, if something goes wrong check <code>filegator/private/logs/app.log</code></li>
|
||
<li>Login with default credentials <code>admin/admin123</code></li>
|
||
<li>Change default admin's password</li>
|
||
</ul>
|
||
<p>NOTE: For security reasons <code>filegator/dist</code> 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 <strong>'Development mode'</strong> as a security warning.</p>
|
||
<h2 id="install-on-fresh-ubuntu-1804-or-debian-103">Install on fresh Ubuntu 18.04 or Debian 10.3</h2>
|
||
<p>On a new server (<a href="https://m.do.co/c/93994ebda78d">get $100 in server credits</a>) login as root and enter this into the shell:</p>
|
||
<pre><code>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</code></pre>
|
||
<p>Open your browser and go to <a href="http://your_server_ip_address">http://your_server_ip_address</a></p>
|
||
<h2 id="show-your-support">Show your support</h2>
|
||
<ul>
|
||
<li>Please star this repository on <a href="https://github.com/filegator/filegator/stargazers">GitHub</a> if this project helped you!</li>
|
||
<li>Become a backer or sponsor on <a href="https://www.patreon.com/alcalbg">Patreon</a>.</li>
|
||
</ul>
|
||
<h2 id="upgrade">Upgrade</h2>
|
||
<p>Since version 7 is completely rewriten from scratch, there is no clear upgrade path from older versions.</p>
|
||
<p>If you have an older version of FileGator please backup everything and install the script again.</p>
|
||
<p>Upgrade instructions for non-developers:</p>
|
||
<ul>
|
||
<li>Backup everythig</li>
|
||
<li>Download the latest version</li>
|
||
<li>Replace all files and folders except <code>repository/</code> and <code>private/</code></li>
|
||
</ul>
|
||
<p>Which versions am I running? Look for <code>APP_VERSION</code> inside <code>dist/index.php</code> file</p>
|
||
</section>
|
||
|
||
</div>
|
||
</main>
|
||
|
||
<footer>
|
||
<div class="container">
|
||
<p class="text-muted">
|
||
website generated with <a href="http://couscous.io" title="Markdown website generator">Couscous</a>
|
||
</p>
|
||
</div>
|
||
</footer>
|
||
|
||
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
|
||
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
|
||
<script src="//yastatic.net/highlightjs/8.2/highlight.min.js"></script>
|
||
|
||
<script>
|
||
$(function() {
|
||
$("section>h1").wrap('<div class="page-header" />');
|
||
// Syntax highlighting
|
||
hljs.initHighlightingOnLoad();
|
||
});
|
||
</script>
|
||
|
||
</body>
|
||
</html>
|