Tag: debian

How to Configure MySQL Replication on Debian

1. Configure The Master
First we have to edit /etc/mysql/my.cnf

We have to enable networking for MySQL, and MySQL should listen on all IP addresses, therefore we comment out these lines (if existant):

#skip-networking
#bind-address            = 127.0.0.1

Furthermorewe have to tell MySQL for which database it should write logs,which log file it should use, and we have to specify that this MySQLserver is the master. We want to replicate the database exampledb, so we put the following lines into /etc/mysql/my.cnf:

log-bin = /var/log/mysql/mysql-bin.log

# what database you want to replication

binlog-do-db=exampledb

server-id=1

Then we restart MySQL:

/etc/init.d/mysql restart

Then we log into the MySQL database as root and create a user with replication privileges:

mysql -u root -p
Enter password:

GRANT REPLICATION SLAVE ON *.* TO ‘slave_user’@’%’ IDENTIFIED BY ‘<your_password>’;
FLUSH PRIVILEGES;

Next do this:

USE exampledb; FLUSH TABLES WITH READ LOCK; SHOW MASTER STATUS;

Now leave the MySQL shell:


Install and Integrate eAccelerator into PHP5 on Debian Squeeze

eAccelerator is a free open-source PHP accelerator & optimizer. It increases the performance of PHP scripts by caching them in their compiled state, so that the overhead of compiling is almost completely eliminated. It also optimizes scripts to speed up their execution. eAccelerator typically reduces server load and increases the speed of your PHP code by 1-10 times.

eAccelerator stores compiled PHP scripts in shared memory and executes code directly from it. It creates locks only for a short time, while searching for a compiled PHP script in the cache, so one script can be executed simultaneously by several engines. Files that can’t fit in shared memory are cached on disk only.

The latest release, 0.9.6.1, features support for PHP 5.3 and also works with PHP 5.1 and 5.2.

1. Installation:

apt-get update && apt-get upgrade && apt-get install php5-dev

Now  you  have to download and install eAccelerator from the eAccelerator website.

Now Install eAccelerator using the following commands:

cd /usr/src
wget http://bart.eaccelerator.net/source/0.9.6.1/eaccelerator-0.9.6.1.tar.bz2
tar -xvfj eaccelerator-0.9.6.1.tar.bz2
cd eaccelerator-0.9.6.1
phpize
./configure
make
make install

2. Integrate eAccelerator in PHP5:


Slurm – network load monitor

Slurm started as a port of pppstatus to FreeBSD and now is a generic curses based network load monitor.

It was then transformed into a generic network load monitor that supports *BSD, Linux, HP-UX, and Solaris.

Slurm shows `realtime’ traffic statistics, has three graph modes, can monitor any network device, and uses curses to draw ascii graphics, including ascii theme support.

Step 1. Installation:

apt-get install slurm

Step 2. Slurm usage:


Webmin: Linux administration kept simple

Webmin on Debian:
(latest version can be found here if a new version has come out http://www.webmin.com/download.html)

Run everything in root to avoid confusion

apt-get update

apt-get install wget perl libnet-ssleay-perl openssl libauthen-pam-perl libio-pty-perl libmd5-perl

wget http://prdownloads.sourceforge.net/webadmin/webmin_1.441_all.deb

dpkg -i webmin_1.441_all.deb

rm -rvf /etc/rc*d/S*webmin*

rm -rvf /etc/rc*d/K*webmin*


How to install Debian Linux – Tutorial with pictures

This is a tutorial to install Debian Linux. It will be installed with the first CD of the Debian distribution.

Step 1. Burn the first CD of the Debian Linux distribution and boot this CD
Instalare Debian Linux

Step 2. Choose the language


       


Categories

Page 1 of 11
Copyright © 2012 Linux Debian Tutorials | Debian Squeeze Tutorials. All rights reserved.
Feedbase
Stop ACTA 37 queries in 0.235 seconds.