With this setup, files are chowned to root, and chmod to a minimal setting, thus things are safe, secure, and private. Some awstats plugins use chmod 777 for many files and folders, meaning anyone on the system has the ability to change things around. The benefit of the integrated awstats over many plugins is the security. The advantage of having the data under /home/user, is that users can bring it with them when their accounts are moved around. Also apache is restarted post tally as usual anyway.Īwstats are places as static html pages into: Testers should keep an eye on the effects of truncating a live log without the instant apache restart. During the rotation for each user, logs will simply be truncated instead of deleted (As they always have been for single-user tallys). This has side effects in that an HUP is not going to be sent to the master httpd process right before the tally. Note that due to the way the log names are setup in config files, the rotation of apache logs will be slightly different during the tally.īefore the tally, all logs will not be renamed to. add webalizer=0 in your nf (webalizer will be shut off, you can override it if you want both) download and install the awstats setup. If you wish to enable this feature for testing or use, you must install awstats. If not there may have been a step missed, and you may need to go back through these instructions.It's a global on/off swtich, and not a per domain setup. As long as you see the new visits you are set and ready to go. Now you should see all the visits to this site since you created the new log file. You can force AWStats to parse the log file by clicking the “ Update Now” link at the top of the page. The log files are not processed in real time, but rather on a set schedule. You need to process the log file into AWStats. ![]() Again, replace the domain entries with your actual domain name: The visit will not initially appear in this second URL. To see this you will need to go to the separate configuration for the secondary domain. ![]() Be sure to replace the domain entries with your actual domain names: You will notice this will have the old statistics, but will not have the new visit you just made to the secondary domain. You will then need to go to the AWStats web interface. To check what was just done, go to the site you just set this up for, so there is something in the access_log. There is nothing to restart here, so double check that everything was done properly. Once these changes have been made, save and upload (if you downloaded the file). ![]() In the file you will need to look for the line listing the log files, example below: To fix this, you will need to edit the /etc/nf file. While this might not seem like a problem, it will cause the log to grow to an unmanageable size, and it will also cause AWStats to not update properly and automatically. ![]() Now, one thing to keep in mind here is that this log is not set to rotate the same way the log for your primary domain is. This will start Apache logging the statistics for the additional domains you wanted. If you are working on your account via SSH you can just use the command ‘ apachectl graceful’, without the quotes. To do this you can use the Restart Account function of the Site Manager, which will reboot the entire account. Once the file has been uploaded you will need to restart Apache. Please note that you should always backup your original system files before making changes/overwrites. If you downloaded the nf file, you will need to upload it now, overwriting the existing file. Once these changes have been made you will need to save them.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |