How to , and other stuff about linux, photo, php … A linux, photography blog. To remember some linux situation, and fix them quickly.

March 31, 2008

Move all account from one server to another

Filed under: Linux — admin @ 2:19 pm

First of all, 24 hours before the transition, change all dns zones from TTL 14400 to TTL 180, to make dns changes go faster…

You can change all of the DNS zone files by running the following command
root@pilot [/var/named]# perl -pi.bak -e “s/14400/180/g” *.db
That is run within the directory you store the zone files.
And don´t forget to run
# rndc reload
After doing this.

(more…)

mod_auth_mysql Apache with cPanel

Filed under: Linux — Tags: , , — admin @ 2:18 pm

Overview:
mod_auth_mysql is an Apache module that allows authentication using user and group data stored in MySQL databases. Originally by Vivek Khera for Apache1, now also includes a version for Apache 2. Official SourceForge Project website http://sourceforge.net/projects/modauthmysql/

(more…)

Make a simple router

Filed under: Linux — admin @ 2:18 pm

This script was tested on Red Hat, Fedora, Centos. Do not use on some other distribution because they use other file for configuration.
Also this script work on a connection with static IP, not only that use DHCP server.
Download file from here

(more…)

Install “Apache, PHP, MySql”

Filed under: Linux — admin @ 2:16 pm

Hello. This howto contains how to install Apache, PHP, Mysql.
First we need to install apache so let’s start with this.

——————-
Apache 2.0.54
——————-

First, we need to download the latest version of Apache.

(more…)

Isolating Slow MySQL Queries

Filed under: Linux — admin @ 2:16 pm

As we know in the hosting industry there are many people who rely on MySQL but know, and don’t wish to know, next to nothing about MySQL. Yet slow queries are indiscriminate about who they afflict. I think what bothers non-technical users the most about slow queries causing problems in MySQL is a feeling of helplessness. Unlike a car which pretty much anyone can do the regular maintenance, MySQL maintenance isn’t so clear, even less so when the issue is query optimization. This document is meant to be a facilitator between the non-technical MySQL user with slow query problems, and a MySQL expert who can help them. The information here is to help the non-technical user at least get a handle on the situation, and not feel so helpless. From there, a MySQL expert can more easily take over and fix the issue.
(more…)

« Newer PostsOlder Posts »

Powered by WordPress