OSDN Git Service

embrj
[embrj/master.git] / README.md
1 How to Install
2 --------
3 The installation of embrj is pretty much the same with embr's, you just need to get the source, rename `config.sample.php` in `/lib` to `config.php`, edit it with your own app information and upload it to your hosting directory.
4
5 And here are some tips you may want to know:
6
7  * embrj requires `php-curl` and `php-bcmath`
8  * while not necessarily required, `php-mcrypt` is recommended
9  * embrj is compatible with PHP from version 5.2 to 5.5, we didn't test it on 5.1 or older versions
10
11 Installing in sub-directory
12 --------
13 If you need to install embrj in a sub-directory of your website, say, in `/embrj`, you'll need to adjust the `.htaccess` file with `/embrj/user.php` and `/embrj/status.php` instead of `/user.php` and `/status.php`.
14
15 nginx
16 --------
17 For nginx users, you'll need to add these lines to your nginx config file:
18
19     location / {
20         if (!-f $request_filename) {
21             rewrite ^/(\d+)$ /status.php?id=$1 last;
22             rewrite ^/(\w+)$ /user.php?id=$1 last;
23             break;
24         }
25     }
26 And of course, adjust it if you are in a sub-directory.