Skip to content

Commit

Permalink
Added logrotate to README
Browse files Browse the repository at this point in the history
removed composer.lock
  • Loading branch information
dslater82 committed Oct 25, 2021
1 parent 1faee57 commit f5c8d1d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1,663 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/html/vendor
/conf/config.inc.php
/components
composer.lock
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ CREATE DATABASE corebilling CHARACTER SET utf8;
```
* Create mysql user with insert,update,select,delete privileges on the database
```
CREATE USER 'posting_log'@'localhost' IDENTIFIED BY 'STRONG_PASSWORD';
CREATE USER 'corebilling'@'localhost' IDENTIFIED BY 'STRONG_PASSWORD';
GRANT SELECT,INSERT,DELETE,UPDATE ON corebilling.* to 'corebilling'@'localhost';
```
* Import database structure
Expand Down Expand Up @@ -70,6 +70,10 @@ cp html/includes/config.default.php html/includes/config.php
```
chown apache.apache log
```
* Enable log rotation by copying conf/log_rotate.conf.dist to /etc/logrotate.d/corebilling. Adjust the log folder in the file
```
cp conf/log_rotate.conf.dist /etc/logrotate.d/corebilling
```
* Install composer packages
```
composer install
Expand Down
Loading

0 comments on commit f5c8d1d

Please sign in to comment.