Skip to content

Commit

Permalink
fix that manual
Browse files Browse the repository at this point in the history
  • Loading branch information
danieltroger committed Jun 5, 2015
1 parent 60619c6 commit 36c8016
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,21 @@ Is an image viewer written in HTML5.

## Howto

*in theory*, just:
Get the [newest release](https://github.com/danieltroger/imagr/releases/latest), extract it and place it on your webserver, ensure that we can write there, place your images in the root folder of this script or just simply drag and drop them into the page. Enjoy!
Get the [newest release](https://github.com/danieltroger/imagr/releases/latest) (you probaly just got), extract it and place it on your webserver, ensure that we can write there, edit `config.php` to fit your needs, place your images in the root folder of this script or just simply drag and drop them into the page. Enjoy!

**BUT** we actually don't care about theory, because you will get an outdated version. Just clone this repository, copy config.default.php to config.php, set up your database info's and enable / disable the features you need and you're ballin'.
PS: If you are planning to use imagr in the root directory of your website, the automatic `.htaccess` creation won't work.

** ONLY IF ABOVE APPLIES TO YOU (you want to be able to reach imagr at yoursite.tld/ instead of (for example) yoursite.tld/imagr/) ** Put the following into it (the `.htaccess` file in the root directory of imagr):
```
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^download\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /download.php [L]
</IfModule>
```

----------

Expand Down

0 comments on commit 36c8016

Please sign in to comment.