Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

AWStats is a Perl-based server-log analyzer: it reads your web server’s access logs, builds a historical database, and presents visitor reports as dynamic CGI pages or static HTML. To install it, you need access to the logs, a working Perl interpreter, a correctly configured per-site profile, and either CGI execution or a way to generate static files. On Apache, the reliable workflow is to run awstats_configure.pl, verify the generated awstats.mysite.conf, process the first log with perl awstats.pl -config=mysite -update, and then protect the report endpoint with authentication.

What AWStats does—and what it needs

AWStats does not collect visitors directly from a browser and it is not a JavaScript tag. It analyzes records already written by the server, so its results depend on what your access log contains. The project documentation describes AWStats as working from the command line and as a CGI application; it also requires access to the server logs for the reporting you want to perform.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Log access: The account running AWStats must be able to read the relevant access-log files, including rotated files if you intend to import history.
  • Perl: A basic Perl interpreter is sufficient. You need command-line Perl for scheduled updates and may need CGI Perl support for browser-based reports.
  • A supported log format: Apache/NCSA logs, IIS Extended W3C logs, WebStar and other formats are supported when the profile’s LogFormat is correct.
  • Storage: AWStats writes its historical database to the directory named by DirData. That directory needs to exist and be writable by the update process.
  • A protected presentation method: You can expose a CGI report or generate static HTML. Either way, treat visitor data as private operational information.

AWStats is a log analyzer, so it cannot recover requests that were never logged. Reverse proxies, CDNs, bots, cached responses, privacy filters, and incomplete log fields can all affect what appears in a report.

Choose how you will deploy it

Decision Option When it fits Important limitation
Server format Apache/NCSA combined or XLF/ELF Most Apache installations; use LogFormat=1 when the records match the combined format. The profile must point to the actual file and format, not merely the web server name.
Server format IIS Extended W3C Windows servers exporting the documented W3C fields; use LogFormat=2. Missing or nonstandard W3C fields can produce incomplete parsing.
Updating Command line Preferred for cron, Task Scheduler, or another controlled scheduler. The scheduler account needs log and database permissions.
Updating Browser-triggered CGI Useful for manually refreshing a small installation. It exposes an execution endpoint and should not be left unrestricted.
Reports Dynamic CGI Reports are rendered from the AWStats database when requested. Requires a correctly mapped CGI alias and web-server Perl execution.
Reports Static HTML Good when CGI is unavailable or you want a read-only document tree. Regenerate files after each database update.

Install AWStats on an Apache-compatible server

1. Download and unpack AWStats

Place the AWStats distribution in a location your administrator controls. The exact directory is a local policy choice; keep the program files separate from the public document root unless you deliberately need to serve its icons or static assets. After extraction, change into the distribution’s tools directory before running the configuration helper.

#1 Best Overall
Sale
Compressed Air Duster,130000RPM Super Power Cordless Air Duster,Rechargeable Brushless Blower,3 Gear Adjustable Blower with LED Light,Dust Remover for Computer/House/Outdoor/Car
  • Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
  • With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
  • Wide Application:Upgraded attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
  • Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
  • Warranty & Support: Our Electric air duster comes with 5 years warranty and 24/7 customer service. During this period, if you have any questions,pls kindly feel free to contact us.
cd /path/to/awstats/tools
perl awstats_configure.pl

Run the helper with an account that can read the Apache configuration and make the requested configuration changes. If your host does not permit automated edits, use the script’s output as a checklist and apply equivalent directives manually.

2. Let the configuration helper inspect Apache

awstats_configure.pl can inspect Apache’s configuration and offer to change an access-log directive from common to combined. It can also add the AWStats aliases and a ScriptAlias, then create a site profile such as awstats.mysite.conf. The combined format is usually the easiest starting point because it includes the fields AWStats expects for common visitor dimensions.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Review every proposed change before accepting it. On a server with several virtual hosts, confirm that the helper is editing the intended Apache configuration and that the selected CustomLog belongs to the site you want to measure. Reload or restart Apache only after checking syntax with your platform’s normal configuration-test command.

3. Confirm the Apache log format

A typical combined log line includes the client address, authenticated identity, timestamp, request line, status, response size, referrer, and user-agent. Your profile must use the matching AWStats format. If the log still uses Apache’s common format, either switch it to combined or select and document an appropriate custom format. Do not label a common-format file as combined: AWStats may then shift fields and produce misleading pages, referrers, browsers, or operating-system data.

4. Check the generated site profile

Open the profile created for the site, normally named awstats.mysite.conf. The filename’s site token is used in the update and report commands, so keep it consistent with the value after -config=.

Rank #2
EVEO® Screen Cleaner Spray Kit (Streak-Free) TV Screen Cleaner for Smart TV, Lcd, LEd, Oled | Computer Screen Cleaner Spray and Wipe Microfiber Cloth - TV, Monitor, Laptop, iPad, Car - 6.7oz 1 Pack
  • Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
  • Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
  • Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
  • Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
  • Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth
Directive What to verify Example
LogFile Full path to the access log AWStats should read. Use the active file for routine updates and plan how rotated files will be handled. LogFile="/var/log/httpd/mysite_access.log"
LogType Set to web-log mode for an HTTP access log. LogType="W"
LogFormat Use the value matching the records. Apache combined/XLF/ELF is normally 1; IIS Extended W3C is 2. LogFormat=1
SiteDomain Main hostname visitors use for this site. SiteDomain="mysite.example"
HostAlias Alternate hostnames that should be counted as the same site, such as a www name. HostAlias="www.mysite.example"
DirData Directory where AWStats stores its historical database. It must be writable by the updater and should not be publicly browsable. DirData="/var/lib/awstats"

Use the exact capitalization and quoting style already present in the generated file. If your host writes one log per virtual host, point each profile at its own file rather than trying to make one profile represent unrelated domains.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

5. Configure aliases and icons

The helper may add an alias for the AWStats program and a ScriptAlias for CGI execution. It may also identify where the report icons must be made available. Confirm that the URL path you intend to use maps to the installed AWStats files, and that the web server permits CGI execution in that location. A successful Apache reload does not prove that the CGI mapping is usable; test the endpoint only after applying authentication.

6. Run the first database update

From the AWStats program directory, process the profile with:

perl awstats.pl -config=mysite -update

Replace mysite with the profile token, not the full filename. AWStats reads awstats.mysite.conf, parses the configured log, and writes or extends the historical database under DirData. The first run can take longer than later runs because it has no prior state. Watch the command output for file, permission, format, and date-range errors before attempting to view a report.

7. Test the dynamic report

After a successful update and a protected CGI mapping, the normal report URL has this form:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
BladeHawks RGB Gaming Mouse Pad Extra Large Extended 31.5x12 Inch-Black
  • 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
  • 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
  • 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
  • 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
  • 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.
http://www.myserver.mydomain/awstats/awstats.pl?config=mysite

Use HTTPS in production and substitute the hostname and path configured on your server. The config query value must match the profile token. If the page loads but contains no data, verify that the update wrote to the same DirData directory the CGI process reads.

8. Generate static HTML instead

If you do not want to execute Perl for every report request, generate a static page after updating the database:

perl awstats.pl -config=mysite -output -staticlinks > awstats.mysite.html

Publish the resulting file and its required assets in a directory protected by the same access policy as the CGI report. Static output is not automatically refreshed; schedule the update and generation commands together, and replace the published files only after both commands complete successfully.

Configure IIS or another supported server

IIS Extended W3C logs

IIS setup differs from Apache because the log fields and deployment locations are controlled through IIS logging. Enable the documented Extended W3C fields, then copy the AWStats CGI files and icons to locations your web server can execute or serve. Create a site profile, set LogType="W", and use LogFormat=2 for the extended W3C format. Set LogFile to the actual IIS log path and verify that the account running Perl can read it.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Do not assume that an IIS file with a .log extension is automatically compatible. AWStats needs the expected W3C fields and date conventions; compare a real line from the file with the profile’s selected format before importing a large history.

Rank #4
Sale
Vaydeer Wrist Rest for Keyboard and Mouse, Computer Ergonomic Wrist Support Pad, Soft Memory Foam Arm Cushion for Desk, Palm Hand Office Laptop Typing
  • 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
  • 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
  • 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
  • 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
  • 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.

WebStar and other formats

AWStats supports WebStar and additional server formats when LogFormat is set correctly. For a nonstandard format, identify the server’s documented field order, choose the corresponding AWStats setting, and test against a small copy of the log. A format mismatch is more serious than a missing report: it can create plausible-looking but incorrect visitor totals.

Schedule safe, repeatable updates

Once the first update works, run the same command from a scheduler under a dedicated account. The account needs read permission on current and rotated logs, execute permission for Perl and AWStats, and write permission only to the AWStats data directory and any static-output directory. Keep the profile and data directories outside locations where untrusted users can modify them.

Run updates after the web server has flushed or rotated the relevant log, according to your rotation policy. If rotation renames the active file, make sure LogFile and the update strategy still expose all entries exactly once. Keep backups of the AWStats database when visitor history matters; deleting it forces AWStats to rebuild history from logs that may no longer exist.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Protect visitor reports and database files

AWStats reports can reveal URLs, referrers, hostnames, user-agent strings, internal paths, and traffic patterns. The official security guidance recommends placing awstats.pl in a web-protected realm with authentication, restricting access to authenticated users or allowed IP ranges, and considering database-file permissions.

  • Require HTTPS and server-level authentication before the CGI endpoint is reachable.
  • Restrict access by account, group, VPN, or administrator IP range rather than publishing reports to the whole internet.
  • Keep DirData outside the public document root, or deny direct downloads if the platform requires it to be nearby.
  • Give the updater write access to the database but avoid granting broad write access to the web-server account.
  • Protect static HTML and icons with the same policy; static files are still reports, not harmless images.
  • Do not allow arbitrary configuration names or filesystem paths to be supplied through an unauthenticated CGI request.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot common installation failures

“Cannot open log file” or permission denied

Check the absolute LogFile path, parent-directory traversal permissions, and the user that actually runs Perl. A shell test as your administrator is not enough if cron, Apache CGI, or Task Scheduler uses another account. Grant the smallest read permission needed, including access to rotated files that must be imported.

Best Value
Sale
Under Desk Cable Management Tray No Drill, Metal Mesh Cable Management Under Desk with Clamp Mount, 2 Hole Cable Tray with Wire Management and Cord Organizer for Home Office Standing Desk
  • 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
  • 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
  • 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
  • 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
  • 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.

The report says the format is invalid or fields are missing

Inspect several raw log lines and compare them with the selected LogFormat. Apache combined logs normally use LogFormat=1; IIS Extended W3C uses LogFormat=2. If a proxy has rewritten the line, or if the server uses a custom field order, select a documented custom format rather than forcing one of those defaults.

The update succeeds but the report is empty

Confirm that the command used the intended profile token, that the profile’s SiteDomain matches the site, and that the CGI process reads the same DirData directory the shell update populated. Also check the log’s timestamps: a server clock difference or a file containing only a future date can leave the current view apparently blank.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The CGI URL returns a download, server error, or source code

Apache or IIS is not executing Perl at that path. Recheck the ScriptAlias or equivalent CGI mapping, executable permissions, the Perl interpreter path, and the web server’s error log. Keep the endpoint behind authentication while correcting it; never make it public just to test whether execution works.

Static pages have broken images or stale numbers

The -staticlinks option creates links suitable for a static document tree, but the icons still need to be copied or served at the paths expected by the generated HTML. Regenerate the page after each successful database update and publish the complete asset set together rather than replacing only the HTML file.

Totals change after log rotation

Review which file each update reads and whether the rotation process truncates, renames, or compresses it. A profile pointing only at the new empty active file will not automatically include yesterday’s renamed file. Build a rotation-aware schedule that makes each period available once, and retain the source logs long enough to rebuild a damaged database.

A practical installation checklist

  1. Verify server-log access and a working Perl command-line interpreter.
  2. Extract AWStats and run perl awstats_configure.pl from its tools directory.
  3. Review Apache aliases, ScriptAlias, and any proposed CustomLog change.
  4. Open the generated profile and correct LogFile, LogType, LogFormat, SiteDomain, HostAlias, and DirData.
  5. Ensure the data directory exists with controlled ownership and permissions.
  6. Run perl awstats.pl -config=mysite -update and resolve every warning that affects parsing or storage.
  7. Choose a protected CGI report or generate static HTML with -output -staticlinks.
  8. Schedule updates under a least-privilege account and test behavior after log rotation.
  9. Restrict the CGI endpoint, report files, icons, and database directory to authorized users.

When AWStats is the right fit

AWStats is a sensible choice when you control the server, can read its logs, and want reports without adding tracking code to every page. It is especially useful for installations that need command-line processing, static output, or support for several established server-log formats. It is not a substitute for a client-side analytics system when you need events that never reach the server log, and it cannot analyze data you cannot legally or technically access.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.