This may also help starters- rotate Asterisk log files:
create a file named
asterisk in
/etc/logrotate.d/
- Code: Select all
/var/log/asterisk/cdr-csv/Master.csv /var/log/asterisk/debug /var/log/asterisk/*log /var/log/asterisk/full /var/log/asterisk/messages {
rotate 40
weekly
compress
missingok
notifempty
sharedscripts
postrotate
/usr/sbin/asterisk -rx "logger rotate" > /dev/null 2> /dev/null
endscript
}
BTW
- Code: Select all
chown :R www-data:www-data /var/www
may also be needed after installing vicidial.
In our case project_auth_entries.txt keeps getting written, even if you make WWW writable in the admin.php server settings to "0". dbconnect.php changes are not reliable as when you update it default is 1. Since we are on public server and information in those files is quite sensitive here is what we do:
- Code: Select all
ln -s /dev/null /var/www/vicidial/project_auth_entries.txt
ln -s /dev/null /var/www/vicidial/admin_changes_log
ln -s /dev/null /var/www/agc/project_auth_entries.txt
Ensure $WeBRooTWritablE = '0' in dbconnect.php in /var/www/agc and vicidial directories.
Change the WWW writable in the admin.php server settings to "0".
Would you mind if I keep looking into my notes, for things simple for someone familiar with linux, but nightmare to find for starters.