• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

rebuild_awstats.sh will fail on IP v6 Clients

Fabian_Hahn

New Pleskian
The script to rebuild AWstats will fail if the first client to hit the server is from an IP v6 address.

This change will fix the problem:

log_first_rec_dtime=`head -n 1 $http_log | awk -F'[[/:]' '{print $3,$2,$4}'`
log_first_rec_dtime=`head -n 1 $http_log | awk '{print $4}' | awk -F'[[/:]' '{print $3,$2,$4}'`

Cheers,
Fabian
 
Back
Top