RedHat Linux 5.4上安装MyDNS

一、MyDNS 的简介:

MyDNS是一个UNIX平台下的免费DNS服务器端软件。它被设计成直接从数据库中读取DNS记录软件,并且修改记录后也可时时生效。在MyDNS上,你可随心所欲地增加你自己的次级域名的同时建站同名的子网站,方便地使用视化界面地完成URL转发、主机A记录、泛域名CNAME记录、MX邮件记录、IP指向控制等所有DNS操作,使用简便,每个次级域名都拥有与WWW主域名一样强大和完整的功能! 大大增加了你的域的灵活性!
MyDNS(My Domain Name Server) 具有DNS系统的所有功能

mydns 的特点:

主、辅域名服务器实时同步更新修改

A(IP) 记录指向

CNAME(泛域名) 记录指向

MX 记录指向

自由设置URL不隐含指向及URL隐含指向

二、搭建lamp 环境

需要安装的包

httpd.i386 0:2.2.3-31.el5 php.i386 0:5.1.6-23.2.el5_3

mysql.i386 0:5.0.77-3.el5 php-mysql.i386 0:5.1.6-23.2.el5_3

mysql-server.i386 0:5.0.77-3.el5 perl-DBD-MySQL.i386 0:3.0007-2.el5

perl-DBI.i386 0:1.52-2.el5 php-cli.i386 0:5.1.6-23.2.el5_3

php-common.i386 0:5.1.6-23.2.el5_3 php-pdo.i386 0:5.1.6-23.2.el5_3
2. 搭建好LAMP 环境,把apache和mysql 设置成开机启动。
chkconfig httpd on
chkconfig mysqld on
3.给mysql 设置密码:root123
mysqladmin -u root password “123”

4.创建mydns数据库,并给他权限:
CREATE DATABASE mydns;
建立mydns账号及密码,仅供本机登入

GRANT all ON mydns.* TO 'mydns'@'localhost' IDENTIFIED BY 'mydns';

建立mydns账号及密码,可由外登入本域的数据库

GRANT all ON mydns.* TO 'mydns'@'localhost.localdomain' IDENTIFIED BY 'mydns';
刷新权限
FLUSH PRIVILEGES;
quit;
5.安装mysql的后台管理工具,phpMyAdmin-2.11.10-all-languages
tar zxvf phpMyAdmin-2.11.10-all-languages.tar.gz
mv phpMyAdmin-2.11.10-all-languages phpMyAdmin
cp cp config.sample.inc.php config.inc.php
修改config.inc.php
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysqli if your server has it */
$cfg['Servers'][$i]['extension'] = 'mysql';
/* User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'root'; /////mysql的用户名
$cfg['Servers'][$i]['controlpass'] = '123'; ///////mysql的密码
/* Advanced phpMyAdmin features */
$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
$cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
$cfg['Servers'][$i]['relation'] = 'pma_relation';
$cfg['Servers'][$i]['table_info'] = 'pma_table_info';
$cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
$cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
$cfg['Servers'][$i]['column_info'] = 'pma_column_info';
$cfg['Servers'][$i]['history'] = 'pma_history';
$cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';

/*
* End of servers configuration
*/

/*
* Directories for saving/loading files from server
*/
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
?>
######################phpMyAdmin的测试地址:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/38cde1627262245b652b78f2f09ff893.html