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
Copy file name to clipboardExpand all lines: README.md
+38-3Lines changed: 38 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,11 +61,43 @@ Simply install the software by following these steps:
61
61
- Create a new database, e.g. with the name `ab` and create a dedicated user, login (`mysql -u root -p`) then e.g. `timetool`: `CREATE DATABASE ab;` and `CREATE USER 'timetool'@'localhost' IDENTIFIED BY 'yourpassword';` and `GRANT ALL PRIVILEGES ON ab.* TO 'timetool'@'localhost';` don't forget to `FLUSH PRIVILEGES;`!
62
62
- Configure `app.json` (see below - required changes: `base_url`, `db_user`, `db_password`, `smtp` section and any other if your installation is different) then `mv api/v1/inc/app.json.sample app.json && cd /var/www/timetrack`
63
63
- Run DB migrations: `vendor/bin/phinx migrate`
64
-
- Start webserver e.g. `service apache2 stop && php -S 0.0.0.0:80` or using apache2 (then you have to configure the `sites-available` conf yourself)
65
-
- You can then access TimeTrack in your browser at `http://localhost`, default login is `admin` with password `admin`. Create yourself a new admin account, login and delete the default account afterwards.
64
+
- Follow "Use with ..." guides
65
+
66
+
#### Use with apache2.4
67
+
68
+
- Create a new virtual host: `sudo nano /etc/apache2/sites-available/timetrack.conf`
69
+
- Content:
70
+
71
+
```conf
72
+
<VirtualHost *:80>
73
+
ServerName timetrack.yourdomain.de
74
+
DocumentRoot /var/www/timetrack
75
+
76
+
<Directory /var/www/timetrack>
77
+
AllowOverride All
78
+
Require all granted
79
+
</Directory>
80
+
81
+
ErrorLog ${APACHE_LOG_DIR}/error.log
82
+
CustomLog ${APACHE_LOG_DIR}/access.log combined
83
+
</VirtualHost>
84
+
85
+
```
86
+
87
+
- Enable site and module: `sudo a2ensite timetrack && a2enmod rewrite`
You can now access TimeTrack in your browser at `http://localhost`, default login is `admin` with password `admin`. Create yourself a new admin account, login and delete the default account afterwards.
66
96
67
97
To save log files, please create the subfolder `data/logs` and make it writeable to the web server (e.g. `chown www-data:www-data data/logs && chmod 775 data/logs`).
68
-
Please also make sure that the `/data` directory is writable by the webserver, aswell as the plugins directory (default: `api/v1/class/plugins/plugins`).
98
+
Please also make sure that the `/data` directory is writable by the webserver, aswell as the plugins directory (default: `api/v1/class/plugins/plugins`). The `/api/v1/toil/permissions.json` also needs to be writeable by the webserver.
99
+
100
+
**You can run the `update.sh` script to update your instance: `sudo sh update.sh`**
69
101
70
102
### Configure app.json
71
103
@@ -225,6 +257,9 @@ The theme the user selected is saved as a cookie, meaning it is only selected on
225
257
## Updates
226
258
227
259
TimeTrack has to be updated in two ways: database and application.
260
+
A full update on linux based machines can also be performed by executing the `update.sh` file inside the root directory. In any other cases follow the steps below:
261
+
262
+
If you were seeking assistance and were asked to try out the changes in a branch, please execute this command inside the timetrack root directory: `git fetch && git checkout BRANCH` - replace BRANCH with the actual branch name, e.g. TT-24 or develop.
0 commit comments