From 012d7bed5e750b1725551f875a50c8a1c2c4d002 Mon Sep 17 00:00:00 2001 From: Michael Seevogel Date: Thu, 6 Apr 2017 13:53:08 +0200 Subject: [PATCH] change default web analytics program from webalizer to awstats #3549 --- install/sql/incremental/upd_dev_collection.sql | 1 + install/sql/ispconfig3.sql | 2 +- interface/web/sites/form/web_vhost_domain.tform.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/install/sql/incremental/upd_dev_collection.sql b/install/sql/incremental/upd_dev_collection.sql index 1ccef0797d..44383d22f0 100644 --- a/install/sql/incremental/upd_dev_collection.sql +++ b/install/sql/incremental/upd_dev_collection.sql @@ -1,2 +1,3 @@ ALTER TABLE `web_domain` CHANGE `folder_directive_snippets` `folder_directive_snippets` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL; ALTER TABLE `web_domain` ADD `log_retention` INT NOT NULL DEFAULT '30' AFTER `https_port`; +ALTER TABLE `web_domain` CHANGE `stats_type` `stats_type` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'awstats'; diff --git a/install/sql/ispconfig3.sql b/install/sql/ispconfig3.sql index f2f497ae10..52b9bebc53 100644 --- a/install/sql/ispconfig3.sql +++ b/install/sql/ispconfig3.sql @@ -1955,7 +1955,7 @@ CREATE TABLE `web_domain` ( `ssl_key` mediumtext NULL, `ssl_action` varchar(16) NULL, `stats_password` varchar(255) default NULL, - `stats_type` varchar(255) default 'webalizer', + `stats_type` varchar(255) default 'awstats', `allow_override` varchar(255) NOT NULL default 'All', `apache_directives` mediumtext, `nginx_directives` mediumtext, diff --git a/interface/web/sites/form/web_vhost_domain.tform.php b/interface/web/sites/form/web_vhost_domain.tform.php index 042fca8f1b..4b709eeda4 100644 --- a/interface/web/sites/form/web_vhost_domain.tform.php +++ b/interface/web/sites/form/web_vhost_domain.tform.php @@ -609,7 +609,7 @@ $form["tabs"]['stats'] = array ( 'stats_type' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'SELECT', - 'default' => 'webalizer', + 'default' => 'awstats', 'value' => array('webalizer' => 'Webalizer', 'awstats' => 'AWStats', '' => 'None') ), //################################# -- GitLab