Turn off logs

king.semsem80

New Member
Messages
12
Reaction score
0
Points
1
How do I turn off logs? It never was a problem until about two weeks ago. Now I'm having to delete massive-sized log files every couple of days or else my disk usage goes beyond the maximum allowed.
 

spacresx

Community Advocate
Community Support
Messages
2,183
Reaction score
195
Points
63
i dont think you can turn it off on free accounts.
its part of the system to troubleshoot errors.
 

garrettroyce

Community Support
Community Support
Messages
5,611
Reaction score
249
Points
63
Why is the log so large? Is it an access log or error log?

You could throw a command in your index page to delete or prune the log. If it's already PHP then just insert some code or if it's an html file, add an iframe or img tag that references a PHP script to truncate the log. I would normally recommend cron, but it appears that crontabs are not enabled on free hosting and I need to check if that is by design or if it was a fault of the import from cPanel
 

king.semsem80

New Member
Messages
12
Reaction score
0
Points
1
In the domains directory of the file manager:
private_html 13 B 777 2019-12-28

public_html 151.23 MB 755 2021-05-18

stats 4.7 MB 755 2021-04-29

public_ftp 8 KB 711 2019-12-28

logs 98.4 MB 700 2021-05-18


May-2021.1.tar.gz
715 B 644 2021-05-18
May-2021.2.tar.gz
19.84 KB 644 2021-05-18

May-2021.2.tar.gz.1
71.74 MB 644 2021-05-18

May-2021.tar.gz
9.42 MB 644 2021-05-18
May-2021.tar.gz.1
17.19 MB 644 2021-05-18

The logs (file types tar.gz) just keep coming back. And growing in size every day. Already the total size of the logs is 2/3 the size of the public_html folder.
 

garrettroyce

Community Support
Community Support
Messages
5,611
Reaction score
249
Points
63
Could you please navigate to DirectAdmin -> System Info & Files -> Site Summary / Statistics / Logs

It should show the log size and error log size in the right hand size. The logs can't be disabled, but if the error log is huge, maybe we can fix the error. If the error log is large, please provide the last few errors from the log. PLEASE NOTE, THIS LOG MAY CONTAIN SENSITIVE INFORMATION. PLEASE READ THROUGH THE LOG AND MAKE SURE THERE ARE NO SENSITIVE PIECES OF INFORMATION LIKE EMAIL, IP ADDRESS, PASSWORD, ETC.
 
Top