You need to ask yourself the following questions:
(a) WHICH log files are growing so much? There are several different log files.
(b) are any of these log files useful, or are they just taking up space without your ever referring to them?
(c) How frequently does PhpGedView start a new log file? (never, daily, weekly, monthly, yearly)
On my system, I have all logging turned off, except the access log. I check the access log every day, looking for hacking attempts and also for search engines that I don't want to see on my site at all. This inspection has resulted in a very large .htaccess file (over 60 Kb right now), but I don't see much hacking that isn't stopped by the .htaccess file.
I clean out the access logs monthly, after making a zip file that gets moved away from the Index directory. This has to be done manually. I am considering some program changes to automate this process, but the real question here is, "How long should log files be retained?" and "How frequently should the program look for no-longer-useful log files?"
When looking for ISPs that host servers known to be hacking, I use the following sites: https://network-tools.com/ the "whois" function here is particularly useful https://www.subnet-calculator.com/cidr.php for calculating the CIDR for a range of IP addresses identified by the "whois" function above
You copy the CIDR into the "deny from" list in your .htaccess file. If you're interested in seeing my .htaccess file, please e-mail me directly. gkroll (at) keldine (dot) ca . This file will NEVER be posted here.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
how can I redirect phpgedview log files to my hosts log directory?
Cheers,
Kai
Last edit: Kai Hackemesser 2021-04-05
You can't.
You need to ask yourself the following questions:
(a) WHICH log files are growing so much? There are several different log files.
(b) are any of these log files useful, or are they just taking up space without your ever referring to them?
(c) How frequently does PhpGedView start a new log file? (never, daily, weekly, monthly, yearly)
On my system, I have all logging turned off, except the access log. I check the access log every day, looking for hacking attempts and also for search engines that I don't want to see on my site at all. This inspection has resulted in a very large .htaccess file (over 60 Kb right now), but I don't see much hacking that isn't stopped by the .htaccess file.
I clean out the access logs monthly, after making a zip file that gets moved away from the Index directory. This has to be done manually. I am considering some program changes to automate this process, but the real question here is, "How long should log files be retained?" and "How frequently should the program look for no-longer-useful log files?"
When looking for ISPs that host servers known to be hacking, I use the following sites:
https://network-tools.com/ the "whois" function here is particularly useful
https://www.subnet-calculator.com/cidr.php for calculating the CIDR for a range of IP addresses identified by the "whois" function above
You copy the CIDR into the "deny from" list in your .htaccess file. If you're interested in seeing my .htaccess file, please e-mail me directly. gkroll (at) keldine (dot) ca . This file will NEVER be posted here.