Posted in Tutorials by tux |
I.Configure Master
1. edit /etc/mysql/my.cnf. We have to enable networking for MySQL,
I.Configure Master
1. edit /etc/mysql/my.cnf. We have to enable networking for MySQL,
#skip-networking
2. Add the following line to the my.cnf
server-id = 1
log-bin=/storage/lun0/db/mysql/FLTVM01-bin
3. restart mysql
#service mysqld restart
4. log into the MySQL database as root and create a user with replication privileges:
#mysql -u root -p
mysql> GRANT REPLICATION SLAVE ON *.* TO ‘slaveuser’@'%’ IDENTIFIED BY ‘<some_password>’; (Replace <some_password> with a real password!)
mysql>FLUSH PRIVILEGES;
Posted in Tutorials by admin |
INTRODUCTION
Data backup is the process of making copies of data in order to protect and restore original files whenever data loss happens. Aside from automated routine data backup, this method does not protect against failure and natural disasters. This is where off-site data backup comes in.
OBJECTIVE
To establish an off-site backup of important data such as website and configuration files, and database, by copying and burning it to a removable media via DVD.
Sample Scenario:
We need to backup the webserver files and database, and burn it on DVD disc.
PRE-BACKUP PROCEDURES:
This is a preview of
How to Backup Data on RHEL/CentOS via DVD
.
Read the full post (456 words, estimated 1:49 mins reading time)
Posted in Tutorials by admin |
mysql-zrm is short for Zmanda Recovery Manager for MySQL. It lets you create full logical or raw backups of your databases , generate reports about the backups, verify the integrity of the backups, and recover your databases. It can also send email notifcations about the backup status, and you can implement multiple backup policies.
This procedure was successfully tested and implemented on CentOS 5.X and RHEL 5.X servers.
Pre-requisites:
1.mysql client, MySQL server 4.1 and above
2.perl-DBI and perl-XML-Parser
yum install perl-DBI perl-XML-Parser
Installation:
1.Download mysql-zrm on http://www.zmanda.com/download-zrm.php
2.Get the RPM
wget http://www.zmanda.com/downloads/community/ZRM-MySQL/2.1.1/RPM/MySQL-zrm-2.1.1-1.noarch.rpm
3.Install
rpm -ivh MySQL-zrm-2.1.1-1.noarch.rpm
This is a preview of
Full & Incremental MySQL Backup via Mysql-ZRM
.
Read the full post (729 words, estimated 2:55 mins reading time)
Posted in Quick Tips & Tricks by admin |
One of the most important procedure in setting up master-slave replication on Mysql database successfully is to have a consistent dump or backup of database(s) from the master server by locking all tables during mysqldump so write access is not possible.
master log file and log position will be taken from the master and configure it on the slave server. But it’s not always good times. There are some bad times too. And one of it is sudden stop of your slave and no longer synching with the master database.
Posted in Tutorials by admin |
Obviously, this is really an old procedure, actually this is my documentation way back early 2006 when it’s my first time to work with asterisk. This procedure was implemented before in about 30-50 call center agents using softphones and it quite worked well.
So many things have changed, as we all know, from asterisk 1.2 to asterisk 1.6 , and Asterisk Management Portal is popularly known now as FreePBX. Other packages were also updated now, many changes but still asterisk is standing there as the best open source telephony system. We had many community and commercial PBX softwares today that are asterisk-based, that’s how big asterisk right now comparing back 2006
This is a preview of
Installing Asterisk 1.2 and Asterisk Management Portal
.
Read the full post (903 words, estimated 3:37 mins reading time)
Posted in Tutorials by admin |
There’s an easy way of installing Apache, Mysql and PHP and it’s via yum. You can install or update httpd,mysql-server and php, php-mysql and some minor changes on your configuration files and you’re good to go. Well, the procedure below is one way to install also, if you’re quite bored and want to develop your sysadmin skills.
I. Operating System Installation
1. The typical type of installation is thru CD-ROM or DVD. If you want network install, you should have a CentOS boot disk to boot the server
Posted in Quick Tips & Tricks by tux |
Assuming you already have mysql server installed on your machine, the reason you are
installing phpmyadmin is to ease your administration of your MySQL like database creation and deletion, create/alter/drop/view tables and execute any SQL statements, privilege and trigger management, stored procedures, and backup/ maintenance
phyMyAdmin is a tool built in PHP to manage and administer your MySQL servers via your browser.
Requirements:
1.PHP
2.MySQL
3.php-mysql
4.gd/gd-devel
5. Apache
Posted in Quick Tips & Tricks by tux |
There are ways to sync two MySQL tables in a non-GUI method such as mysql triggers or by Maatkit’s MySQL Table Sync, but it’s not that user-friendly.
Of course, if you want the GUI-type, there’s always the ever dependable phpMyAdmin or the NaviCat program.
On this tutorial, I will be implementing the “TableSyncer” tool, a ruby gem built that was originally detailed on http://code.google.com/p/ruby-roger-useful-functions/wiki/TableSyncer
This was tested on CentOS 5.3 32-bit running in Pentium4@3.0GHz 1G machine.
Here are the step-by-step procedure:
1. Download rubygem by “yum” or by source. This is how I built the rubygem
#wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz
tar zxvf rubygems-1.3.5.tgz
This is a preview of
Sync MySQL tables via ruby gem TableSyncer
.
Read the full post (895 words, estimated 3:35 mins reading time)
Posted in Tutorials by tux |
MailWatch for MailScanner is a web-based front-end to MailScanner and features include displays of inbound/outbound mail queue size, load Average and today’s totals for messages, spam, viruses and blocked content on each page header, Quarantine management allows you to release, delete or run sa-learn across any quarantined messages etc.
Tested on CentOS 4.4, MailScanner ver. 4.57.6, Sendmail-8.13
Requirements:
a. Working MailScanner setup
b. MySQL
c. Apache
d. PHP (w/ MySQL and GD Support)
e. Perl
f. DBD
g. DBD-MySQL
This is a preview of
Installation and Configuration of Mailwatch for MailScanner
.
Read the full post (707 words, estimated 2:50 mins reading time)
Posted in Tutorials by admin |
Freeradius and MySQL
Software Requirements:
Any Linux distro, kernel 2.4xx-later(tested in CentOS,Fedora Core,RH)
MySQL Server 4.xx-5.xx
GCC compiler
vi editor
1. Get the latest freeradius source code tarball from www.freeradius.org or get the rpm package using “yum”
2. Unpack the tarball and install it.
#tar zxvf freeradius-xxx.tar.gz
#cd freeradius
#./configure
#make
#make install
3. Start with a simple config using the standard text files, this will test if the Freeradius installed is working or not
a. Edit /etc/raddb/clients.conf to enter the details of the NAS unit.You can enter “localhost” for testing purposes
b. Edit /etc/raddb/users and create a sample user account