By Composer
<p>Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.<a href="https://getcomposer.org/">https://getcomposer.org/</a>
You can install ShowDoc by Composer automatically.</p>
<ul>
<li>
<p>New installation</p>
<p>Change to web directory(e.g:/var/www/html/)and execute:</p>
<pre><code>composer create-project showdoc/showdoc</code></pre>
<p>There will be a folder name "showdoc".Open your browser and visit
<a href="http://your-domain.com/showdoc/install/">http://your-domain.com/showdoc/install/</a> (change to your servser's address) to initialize ShowDoc.</p>
</li>
<li>
<p>Upgrade</p>
<p>Stop apache or nginx , and move showdoc folder to bakup</p>
<pre><code>mv showdoc showdoc_backup </code></pre>
<p>Then flollow the "New installation" guide to install ShowDoc .After that ,move db file and pictures from old folder to new folder.</p>
<pre><code>rm showdoc/Sqlite/showdoc.db.php
cp showdoc_backup/Sqlite/showdoc.db.php showdoc/Sqlite/showdoc.db.php
rm showdoc/Public/Uploads/
cp showdoc_backup/Public/Uploads/ showdoc/Public/</code></pre>
<p>Open your browser and visit
<a href="http://your-domain.com/showdoc/index.php?s=/home/update/db">http://your-domain.com/showdoc/index.php?s=/home/update/db</a> (change to your servser's address) to update db.</p>
</li>
</ul>