su – zimbra
zmprov ms `zmhostname` +zimbraServiceEnabled cbpolicyd
cd /opt/zimbra/data/httpd/htdocs/ && ln –s /opt/zimbra/common/share/webui
- Edit file /opt/zimbra/common/share/webui/includes/config.php lalu tambahkan tanda “#” pada baris yang dimulai dengan $DB_DSN dan tambahkan baris berikut sebelum tulisan yang dimulai dengan $DB_USER.
$DB_DSN=“sqlite:/opt/zimbra/data/cbpolicyd/db/cbpolicyd.sqlitedb”;
contoh :
#$DB_DSN=”mysql:host=localhost;dbname=cluebringer”;
$DB_DSN=“sqlite:/opt/zimbra/data/cbpolicyd/db/cbpolicyd.sqlitedb”;
$DB_USER=“root”;
chmod 777 –R /opt/zimbra/data/cbpolicyd/db
zmcontrol restart
http://ZimbraServer:7780/webui/index.php
==============
Pengaman
cd /opt/zimbra/common/share/webui/
touch .htaccess
nano .htaccess
========
AuthUserFile /opt/zimbra/common/share/webui/.htpasswd
AuthGroupFile /dev/null
AuthName “User and Password”
AuthType Basic
require valid-user
AuthGroupFile /dev/null
AuthName “User and Password”
AuthType Basic
require valid-user
========
touch .htpasswd
apt install apache2-utils
htpasswd -c .htpasswd adminlogin
isi password
nano /opt/zimbra/conf/httpd.conf
tambah paling bawah
Alias /webui /opt/zimbra/common/share/webui/
replace permission web
=============
AllowOverride AuthConfig
Order Deny,Allow
Allow from all
Order Deny,Allow
Allow from all
=============