zimbra : Failed to start slapd. Attempting debug start to determine error.

20 Apr

Pagi itu, salah satu server harus direstart karena superlemot, tentunya setelah dicoba untuk “di oprak aprik”, lha kok pas mau menghidupkan zimbra ada seperti ini :


[zimbra@ubsweb ~]$ zmcontrol start
Host ubslinux.com
Starting ldap…Done.
Failed.
Failed to start slapd. Attempting debug start to determine error.
58f584fe daemon: getaddrinfo() failed: Name or service not known


Tanya – tanya ke google, dan dicoba – coba kok tetap tidak bisa, malahan saya ketemu cara sendiri, yaitu karena kegagalan nslookup. Sebagai akibat karena setting DNS (wkkk….wkkkk…)


[root@ubsweb ~]# nano /etc/resolv.conf
# Generated by NetworkManager
search localdomain
nameserver 172.20.33.42

[root@ubsweb ~]# /etc/init.d/named restart
Stopping named: . [ OK ]
Starting named: [ OK ]
[root@ubsweb ~]# nslookup ubslinux.com
Server: 172.20.33.42
Address: 172.20.33.42#53

Name: ubslinux.com
Address: 172.20.33.42


Ulangi lagi zimbra start


[zimbra@ubsweb ~]$ zmcontrol start
Host ubslinux.com
Starting ldap…Done.
Starting zmconfigd…Done.
Starting logger…Done.
Starting mailbox…Done.
Starting memcached…Done.
Starting proxy…Done.
Starting amavis…Done.
Starting antispam…Done.
Starting antivirus…Done.
Starting opendkim…Done.
Starting snmp…Done.
Starting spell…Done.
Starting mta…Done.
Starting stats…Done.
Starting service webapp…Done.
Starting zimbra webapp…Done.
Starting zimbraAdmin webapp…Done.
Starting zimlet webapp…Done.

[zimbra@ubsweb ~]$ zmcontrol status
Host ubslinux.com
amavis Running
antispam Running
antivirus Running
ldap Running
logger Running
mailbox Running
memcached Running
mta Running
opendkim Running
proxy Running
service webapp Running
snmp Running
spell Running
stats Running
zimbra webapp Running
zimbraAdmin webapp Running
zimlet webapp Running
zmconfigd Running


 

Install Rocket.chat di centos 7

23 Mar

1. update centos 7
yum -y install epel-release nano && yum -y update

2. instll mongodb
nano /etc/yum.repos.d/mongodb-org.repo
[mongodb-org-3.2]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.2.asc

yum install -y nodejs curl GraphicsMagick npm mongodb-org-server mongodb-org gcc-c++
npm install -g inherits n

3. install node
n 4.5

4. install rocket-chat
cd /opt
curl -L https://rocket.chat/releases/latest/download -o rocket.chat.tgz
tar zxvf rocket.chat.tgz
mv bundle Rocket.Chat
cd Rocket.Chat/programs/server
npm install
cd ../..

5. test rocket-chat
export PORT=3000
export ROOT_URL=http://172.20.33.43:3000/
export MONGO_URL=mongodb://localhost:27017/rocketchat

chkconfig mongod on
systemctl start mongod

node main.js

6. create auto start
nano /usr/lib/systemd/system/rocketchat.service
[Unit]
Description=The Rocket.Chat server
After=network.target remote-fs.target nss-lookup.target nginx.target mongod.target
[Service]
ExecStart=/usr/local/bin/node /opt/Rocket.Chat/main.js
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=rocketchat
User=root
Environment=MONGO_URL=mongodb://localhost:27017/rocketchat ROOT_URL=http://172.20.33.43:3000/ PORT=3000
[Install]
WantedBy=multi-user.target

systemctl enable rocketchat.service
systemctl start rocketchat.service

Rocket Chat

15 Nov

Rocket Chat bisa menjadi jawaban bagi yang membutuhkan aplikasi yang dapat menangani seluruh komunikasi antar tim/perusahaan. Kenapa?

  1. Karena menggunakan email untuk berkomunikasi antar team dirasa sudah terlalu kaku, dan ribet pengarsipannya dan membutuhkan waktu yang lama, terlebih jika email ada attachment file nya.
  2. Di lain hal, menggunakan chat bakal lebih cepat untuk berkomunikasi antar team, tapi fiturnya chat saja, plus susah untuk mencari hal-hal penting di chat.

Rocket Chat = Email + Chat

Apa yang membedakan dengan sistem chat lainnya ?
Dengan menggunakan Rocket Chatchat client dengan pengguna yang diajak berkomunikasi fokus pada rekan kelompok / team. Dalam aplikasi ini, admin grup yang memiliki akses untuk menambahkan anggota. Dengan adanya Rocket Chat ini, koordinasi tidak terganggu oleh chat pribadi maupun kelompok yang lain sehingga apa yang dibahas bisa lebih fokus.

picture1

mau install ??
https://www.vultr.com/docs/how-to-install-rocket-chat-on-centos-7

full backup & restore mysql (linux)

14 Apr

1. backup
mysqldump -u root -p –all-databases > alldb_backup.sql

2. copy to traget
ftp 172.20.33.142
Name (172.20.33.142:root): oracle
Password:
ftp> put alldb_backup.sql
ftp> bye

3. remote
ssh root@172.20.33.142
root@172.20.33.142’s password:

4. restore
cd /home/oracle
mysql -u root -p  < alldb_backup.sql
Enter password:

RASPBERRY PI : Setting apache & PHP

14 Oct

=================================================================================
RASPBERRY PI : Setting apache & PHP
=================================================================================
pi@raspberrypi ~ $ sudo apt-get install apache2 apache2-doc apache2-utils

sudo apt-get update
sudo apt-get upgrade

apt-get install php5-mysql
apt-get install mysql-server mysql-client
sudo nano /var/www/phpinfo.php

<?php
phpinfo();
?>

RASPBERRY PI : Backup dan Restore Table mysql

14 Oct

=================================================================================
RASPBERRY PI : Backup dan Restore Table mysql
=================================================================================
A1. backup database
pi@raspberrypi ~ $ mysqldump -u root -p akses_masuk > backup_db_akses_masuk.sql
Enter password:

A2. backup table
pi@raspberrypi ~ $ pi@raspberrypi ~ $ mysqldump -u root -p akses_masuk user  > table_user2.sql
Enter password:

pi@raspberrypi ~ $ mysqldump -u root -p akses_masuk user_log  > table_user_log2.sql
Enter password:

B. RESTORE
pi@raspberrypi ~ $ mysql -u root -p
Enter password: xxxxxxxx
mysql> CREATE DATABASE akses_masuk;
mysql> exit
pi@raspberrypi ~ $ mysql -u root -p akses_masuk < table_user.sql
Enter password:
pi@raspberrypi ~ $ mysql -u root -p akses_masuk < table_user_log.sql
Enter password:

RASPBERRY PI : Seeting server mysql agar bisa diakses dari LAN

14 Oct

=================================================================================
RASPBERRY PI : Seeting server mysql agar bisa diakses dari LAN
=================================================================================
sisi server mysql
===========================
pi@raspberrypi ~ $ mysql -u root -p
Enter password: xxxxxxxx
mysql> CREATE DATABASE akses_masuk;
mysql> USE akses_masuk;
mysql> CREATE USER ‘root’@’172.20.35.11’ IDENTIFIED BY ‘xxxxxxxx’;
mysql> CREATE USER ‘root’@’172.20.35.12’ IDENTIFIED BY ‘xxxxxxxx’;
mysql> CREATE USER ‘root’@’172.20.35.13’ IDENTIFIED BY ‘xxxxxxxx’;
mysql> CREATE USER ‘root’@’172.20.35.14’ IDENTIFIED BY ‘xxxxxxxx’;
mysql> CREATE USER ‘root’@’172.20.35.15’ IDENTIFIED BY ‘xxxxxxxx’;
mysql> CREATE USER ‘root’@’172.20.33.42’ IDENTIFIED BY ‘xxxxxxxx’;

mysql> GRANT ALL PRIVILEGES ON akses_masuk.* TO ‘root’@’172.20.35.11’;
mysql> GRANT ALL PRIVILEGES ON akses_masuk.* TO ‘root’@’172.20.35.12’;
mysql> GRANT ALL PRIVILEGES ON akses_masuk.* TO ‘root’@’172.20.35.13’;
mysql> GRANT ALL PRIVILEGES ON akses_masuk.* TO ‘root’@’172.20.35.14’;
mysql> GRANT ALL PRIVILEGES ON akses_masuk.* TO ‘root’@’172.20.35.15’;
mysql> GRANT ALL PRIVILEGES ON akses_masuk.* TO ‘root’@’172.20.33.42’;
mysql> FLUSH PRIVILEGES;
mysql> exit

pi@raspberrypi ~ $ sudo nano /etc/mysql/my.cnf
bind-address            = 172.20.35.12
pi@raspberrypi ~ $ sudo /etc/init.d/mysql restart

===========================
sisi client mysql
===========================
[root@ubsweb ~]# mysql -u root -h 172.20.35.12 -p