Selasa, 29 Oktober 2013

Tips Install Nginx stable di ubuntu 12.04

Bila kita install nginx dari default repository ubuntu biasanya belum mendapatkan the last stable update nginxnya. jika kita ingin mendapatkan nginx stable maka kita perlu menambahkan PPA (source list from third party). Begini kurang lebih step-stepnya :
agar bisa menambahkan PPA jalankan perintah ini

1. sudo apt-get install python-software-properties

2. sudo add-apt-repository ppa:nginx/stable

You are about to add the following PPA to your system: Stable version of nginx. The following are no longer updated past 1.2.7, due to PPA build restrictions: * Maverick The following will not be updated past 1.4.1, except for bugfixes which may have been missed: * Lucid * Natty * Oneiric More info: https://launchpad.net/~nginx/+archive/stable Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmpUkGTqm/secring.gpg' created gpg: keyring `/tmp/tmpUkGTqm/pubring.gpg' created gpg: requesting key C300EE8C from hkp server keyserver.ubuntu.com gpg: /tmp/tmpUkGTqm/trustdb.gpg: trustdb created gpg: key C300EE8C: public key "Launchpad Stable" imported gpg: no ultimately trusted keys found gpg: Total number processed: 1 gpg: imported: 1 (RSA: 1)

3. sudo apt-get update

4. sudo apt-get install nginx

~$ nginx -v nginx version: nginx/1.4.3
Cukup 4 Langkah ya ...mudah bukan ?? Selamat mencoba

Tips mysql mereset password root

Kadang saking banyaknya Data base yang kita manage ada satu atau dua data base yang lupa password rootnya. Padahal ketika kita tidak bisa masuk dengan user root artinya kita tidak bisa leluasa untuk melakukan administrasi data base kita. Tips di bawah ini akan dengan mudah mengembalikan password root sesuai keinginan kita :
sudo /etc/init.d/mysql stop

sudo mysqld_safe --skip-grant-tables &

131029 13:49:29 mysqld_safe Logging to syslog. 131029 13:49:29 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql

Lalu tekan enter
Lalu masuk dengan user root tanpa password, seharusnya sudah bisa masuk tanpa authentikasi password
mysql -uroot
Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.5.28-0ubuntu0.12.04.3 (Ubuntu) Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> use mysql;

mysql> update user set password=PASSWORD("D0d0l") where User='root'; Query OK, 4 rows affected (0.01 sec) Rows matched: 4 Changed: 4 Warnings: 0

flush privileges

quit

sudo /etc/init.d/mysql start
Sekarang coba lagi masuk ke mysql dengan user root dan password, seharusnya sudah bisa masuk sesuai password yang kita buat Sumber asli saya di mari

Tips zimbra memperpanjang keys certified 10 Tahun

Zimbra mempunyai key certified yang secara default akan expired dalam 1 Tahun, ketika Expired maka zimbra tidak akan dapat di gunakan untuk mengirim dan menerima email dan akan muncul Ldap error ketika zimbra di restart. Di bawah ini adalah cara untuk memperpanjang certified zimbra hingga sepuluh tahun :
masuk sebagai user zimbra

su – zimbra 

- zmcontrol stop 

as root
cd /opt/zimbra/bin
./zmcertmgr createcrt -new -days 3650
./zmcertmgr deploycrt self
./zmcertmgr viewdeployedcrt
cd /opt/zimbra/libexec
./zmfixper
Then set the server to the correct date and run: su – zimbra zmcontrol start
Seharusnya ketika kita jalankan ini - ./zmcertmgr viewdeployedcrt akan terlihat certified zimbra yang akan expired 10 tahun yang akan datang.