{"id":15988948,"url":"https://github.com/phrozenbyte/awstats-update","last_synced_at":"2025-04-04T22:23:43.780Z","repository":{"id":152899982,"uuid":"57322814","full_name":"PhrozenByte/awstats-update","owner":"PhrozenByte","description":" Update AWStats database and/or generate static HTML pages","archived":false,"fork":false,"pushed_at":"2017-10-20T21:10:59.000Z","size":45,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T07:12:37.377Z","etag":null,"topics":["awstats","cronjob","shell","update"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PhrozenByte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-28T17:54:54.000Z","updated_at":"2020-06-13T07:12:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"8fc42dd9-f827-4efe-a46d-eeac1f6c03b1","html_url":"https://github.com/PhrozenByte/awstats-update","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhrozenByte%2Fawstats-update","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhrozenByte%2Fawstats-update/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhrozenByte%2Fawstats-update/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhrozenByte%2Fawstats-update/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PhrozenByte","download_url":"https://codeload.github.com/PhrozenByte/awstats-update/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247256943,"owners_count":20909380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["awstats","cronjob","shell","update"],"created_at":"2024-10-08T04:22:37.954Z","updated_at":"2025-04-04T22:23:43.758Z","avatar_url":"https://github.com/PhrozenByte.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"AWStats Updater 2.4\n===================\n\nUpdate AWStats database and/or generate static HTML pages, either of the specified or all known hosts. By default, `awstats-update` updates the database (`--update`) and creates HTML pages (`--rebuild`) for the current month. You can create HTML pages for all historic data using `--rebuild-all`.\n\nUsage\n-----\n\n```shell\nawstats-update [OPTION]...\nawstats-update [OPTION]... CONFIG...\n```\n\n`CONFIG` can either be:\n* a absolute path to a config file\n* a relative path to a config file, starting from `/etc/awstats/`\n* a config spec in the form `[ HOST_TYPE \"/\" ] HOST`\n\n`awstats-update` supports the following options:\n\n* Help options:\n  * `-h`, `--help`: display this help and exit\n  * `--version`: output version information and exit\n\n* Application options:\n  * `--[no-]update`: [don't] update AWStats database\n  * `--[no-]rebuild`: [don't] generate static HTML pages (current month only)\n  * `-a`, `--rebuild-all`: generate static HTML pages (all historic data)\n  * `-o`, `--overwrite`: re-create existing HTML pages (with `--rebuild-all`)\n  * `--no-config[=CONFIG]`: don't skip domains without a config; use `CONFIG`, otherwise use default config (with `--rebuild-all`)\n  * `--format=FORMAT`: output HTML pages according to `FORMAT`: `plain`, or `gzip`. You also pass both comma separated. default: `plain`\n  * `--lang=LANG`: output HTML pages using language LANG. default: `en`\n  * `--data-dir=PATH`: path to AWStats data directory. default: `/var/lib/awstats`\n  * `--www-dir=PATH`: path to AWStats www directory. default: `/var/cache/awstats/www`\n  * `--standalone=PATH`: path to a standalone `awstats.pl'\n  * `-v`, `--verbose`: increase verbosity\n  * `-q`, `--quiet`: decrease verbosity\n\nInstall\n-------\n\n`awstats-update` was tested under Debian 8 (Jessie) and a shared hoster with limited SSH access (standalone mode), only. However, it *should* work great with any other distribution, too. If `awstats-update` doesn't work with your favourite distribution, please file a bug report. It was written to work with `bash`.\n\n**You wanna make `awstats-update` work with your favorite distribution or improve it in general?** Go on, I appreciate it!\n\n`awstats-update` is basically just a shell script, so there are no complex \"installation steps\" besides moving it to `/usr/local/bin/awstats-update`. Everything else depends on your system, on Debian you might want to do something like the following:\n\n* Disable AWStats' default updater (if you're using Debian, you'll have to set `AWSTATS_ENABLE_BUILDSTATICPAGES=\"no\"` and `AWSTATS_ENABLE_CRONTABS=\"no\"` in `/etc/default/awstats`)\n* Remove existing HTML pages: `rm -r /var/cache/awstats/awstats/`\n* Create new target directories: `mkdir -p /var/cache/awstats/www/{apache2,apache2-ssl,postfix}`\n* Create `/usr/local/bin/awstats-update` and make it executable\n* Consider creating a `/etc/cron.daily/awstats-update` with something like the following:\n  ```shell\n  #!/bin/sh\n  /usr/local/bin/awstats-update --quiet \"$@\"\n  ```\n* Create a distinct config file for each virtual host, e.g. `/etc/awstats/awstats.apache2.example.com.conf` or `/etc/awstats/awstats.apache2-ssl.example.net.conf` (Tip: AWStats supports `Include` statements)\n* Consider using `/var/cache/awstats/www/awstats.php` and `/var/cache/awstats/www/.htaccess` (see `www` directory)\n\nStandalone Usage\n----------------\n\nYou can also use `awstats-update` in a environment with a standalone `awstats.pl` in a arbitrary path. Move AWStats' config files as well as the `lib`, `plugins` and `lang` directories into the same directory as `awstats.pl`. You can now run `awstats-update` with the `--standalone` option pointing to said `awstats.pl`.\n\nLicense \u0026 Copyright\n-------------------\n\nCopyright (C) 2011-2017  Daniel Rudolf \u003chttp://www.daniel-rudolf.de/\u003e\n\nThis program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License only.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the [GNU General Public License](LICENSE) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphrozenbyte%2Fawstats-update","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphrozenbyte%2Fawstats-update","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphrozenbyte%2Fawstats-update/lists"}