You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure you delete `install.php` and `Config.template`.
7
+
8
+
### Security Note
9
+
Be default we put the sqlite databse in the web folder. This is not a good idea. We solved this by putting in a htaccess file to not allow the database to be downloaded.
10
+
11
+
Still, you should move this file out of the webserver directory and change the location in `Config.php`
12
+
13
+
## Manual
3
14
###MYSql
4
15
- Create a MYSQL database named "OpenNote"
5
16
- Download and extract OpenNote into a folder on your php web-server called "OpenNote"
6
-
- Open up the `model/sql` folder and run `notebook.sql` in your OpenNote database
7
-
- Change the database connection settings inside of `web-server path/OpenNote/Config.php` to match your db settings.
17
+
- Open up the `Service/model/sql` folder and run `notebook.sql` in your OpenNote database
18
+
- Change the database connection settings inside of `Service/Config.php` to match your db settings.
8
19
These are stored in the following lines of code in `/OpenNote/Config.php`:
9
20
```php
10
-
public static $dbUserName = "notebook";
11
-
public static $dbPassword = "password";
12
-
public static $dbServer = "localhost";
13
-
public static $dbName = "notebook";
21
+
$dbUserName = "notebook";
22
+
$dbPassword = "password";
23
+
$dbServer = "127.0.0.1";
24
+
$dbName = "notebook";
14
25
```
15
26
16
27
- Now the site install is complete. You can now open the site by going to your webserver url +/OpenNote
17
28
18
29
###SQLite
19
30
- Download and extract OpenNote into a folder on your php web-server called "OpenNote"
20
-
-Move the SQLite database file from `model/sql`folder to a folder not in the web server www directory.
21
-
- Change the database connection settings inside of `web-server path/OpenNote/Config.php` to match your db settings.
31
+
-Create a SQLite database file and execute the SQL DDL from `Service/model/sql`and run `notebook.sqlite.sql`.
32
+
- Change the database connection settings inside of `Service/Config.php` to match your db settings.
22
33
- These are stored in the following lines of code in `/OpenNote/Config.php`:
23
34
24
35
Uncomment the following lines in the dbConfig function:
@@ -33,4 +44,4 @@ Comment the following lines in the dbConfig function:
33
44
$dbName = "../<relativepath>/OpenNote.sqlite";
34
45
```
35
46
36
-
- Now the site install is complete. You can now open the site by going to your webserver url +/OpenNote
47
+
- Now the site install is complete. You can now open the site by going to your webserver url +/OpenNote
0 commit comments