equal
deleted
inserted
replaced
|
1 # Basic php server for Renkan |
|
2 |
|
3 This folder provides an example of a basic server for renkan. |
|
4 |
|
5 The data schema is very simple since there is only one table. |
|
6 it has been tested on sqlite, postgresql and mysql. |
|
7 |
|
8 All path given in this README are relative to the directory containing this README.md file. |
|
9 |
|
10 ## prerequisite |
|
11 |
|
12 - php 5.6 |
|
13 - PDO extension with the driver of the database of your choice |
|
14 - A database access allowint the table creation |
|
15 |
|
16 ## Installation |
|
17 |
|
18 The root for the site is the `public_html` folder. |
|
19 To serve the page you can either use a webserver or the simple webserver embedded in php. |
|
20 |
|
21 copy the `resource/config.php.tmpl` file to `resource/config.php` and complete the configuration. |
|
22 If you choose to use the default sqlite database configuration, please make sure to create a `data` folder and make sure that you chosen webserver has write access to it. |
|
23 |
|
24 To serve the page you can for example use the php build-in webserver. For this, once you have created and configured the `resource/config.php` file just type the following commands: |
|
25 |
|
26 ```shell: |
|
27 $ cd public_html |
|
28 $ php -S localhost:8000 |
|
29 ``` |