MyDNS & MyDNSConfig 3 On Fedora 11

by
Share this Article: Facebook0Google+0Twitter0LinkedIn0Reddit0Pinterest0StumbleUpon0Digg

Install MyDNSConfig

MyDNSConfig is a web-interface that allows to administrate/create/delete DNS records easily. All data is stored in a MySQL database, and this MySQL database is used by the MyDNS-NG name server to retrieve the DNS records.

MyDNS comes with its own web-interface which we found quite hard to use, especially for newbies, that’s why we created MyDNSConfig.

MyDNSConfig uses the same technology as ISPConfig version 3, and it is also part of ISPConfig 3 to allow the management of DNS records.

let start :

Download and install mysql :

yum install mysql mysql-server  -y

make the mysql deamon start automatic :

chkconfig --levels 235 mysqld on
 /etc/init.d/mysqld start

 make mysql root pass :

mysqladmin -u root password yourrootsqlpassword

Download and install virtual web logfile rotater/parser

vlogger is a little piece of code i wrote to handle dealing with large amounts
of virtualhost logs. its bad news to let apache deal with these itself (ask anyone who
runs a large webfarm about the interesting things apache does when it has 500 open logfiles)
so vlogger was born. it takes piped output from apache, splits off
the first field, and writes the logs to logfiles in subdirectories. it uses a file handle
cache so it can’t run out of file descriptors. it will also start a new logfile every night
at midnight, and maintain a symlink to the most recent file. for security, it can drop privileges
and do a chroot to the logs directory.

wget http://n0rp.chemlab.org/vlogger/vlogger-1.3.tar.gz
tar xvfz vlogger-1.3.tar.gz
mv vlogger-1.3/vlogger /usr/sbin/

Install apache php and PhpMyAdmin :

yum install httpd php php-mysql php-mbstring php php-devel php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-eaccelerator php-mcrypt php-mhash php-mssql php-snmp php-soap php-tidy curl curl-devel perl-libwww-perl ImageMagick libxml2 php-cli phpMyAdmin

vi /etc/httpd/conf.d/phpMyAdmin.conf

and make it to garant acces from all hosts :

#   order deny,allow
# deny from all
allow from all

 

restart httpd and make it to start avery boot :

 

chkconfig –levels 235 httpd on
/etc/init.d/httpd start

 

 

you can now user phpmyadmin on user server with your browser :

 

http://serverx.com/phpmyadmin

 

installing MyDNS

MyDNS is a free DNS server for UNIX. It was implemented from scratch and is designed to serve records directly from an SQL database (currently either MySQL or PostgreSQL).

 

rpm -ivh http://mydns.bboy.net/download/mydns-mysql-1.1.0-1.i386.rpm

 

edit : /etc/init.d/mydns

 

and change # chkconfig: 345 52 50 to # chkconfig: 345 65 50

 

make MyDns to start with boot :

chkconfig –levels 235 mydns on

 

Installing MyDNSConfig 3

 

 

When installing this command :


wget http://downloads.sourceforge.net/mydnsconfig/MyDNSConfig-3.0.1.tar.gz?use_mirror=
tar xvfz MyDNSConfig-3.0.1.tar.gz
cd mydnsconfig/install/
php -q install.php

 

you will get This Error because the fedora 11 is not yet defined the install script :

[root@localhost install]# php -q install.php

——————————————————————————–
__ __ _____ _ _ _____ _____ __ _
| / | | __ | | |/ ____|/ ____| / _(_)
| / |_ _| | | | | | (___ | | ___ _ __ | |_ _ __ _
| |/| | | | | | | | . ` |___ | | / _ | ‘_ | _| |/ _` |
| | | | |_| | |__| | | |____) | |___| (_) | | | | | | | (_| |
|_| |_|__, |_____/|_| _|_____/ ________/|_| |_|_| |_|__, |
__/ | __/ |
|___/ |___/
——————————————————————————–

>> Initial configuration

PHP Notice: Undefined variable: distver in /root/mydnsconfig/install/lib/instal
l.lib.php on line 135
PHP Notice: Undefined variable: distid in /root/mydnsconfig/install/lib/install
.lib.php on line 135
PHP Notice: Undefined variable: distbaseid in /root/mydnsconfig/install/lib/ins
tall.lib.php on line 135

 

F
OTO1

 

to Solved this issue :

vi /root/mydnsconfig/install/lib/install.lib.php

anc change this scirpt :

if(stristr($content,’Fedora release 10 (Cambridge)’)) {
$distname = ‘Fedora’;
$distver = ’10′;
$distid = ‘fedora9′;
$distbaseid = ‘fedora’;
swriteln(“Operating System: Fedora 10 or compatiblen”);

 

 

with

 

if(stristr($content,’Fedora release 11 (Leonidas)’)) {
$distname = ‘Fedora’;
$distver = ’11′;
$distid = ‘fedora9′;
$distbaseid = ‘fedora’;
swriteln(“Operating System: Fedora 11 or compatiblen”);
}

 

 

 

save and exit :

 

start ths script again :

 

FOTO2

 

then answer the question and start browser with localhost:8080 :)

 

login with admin:admin

 

 

FOTO3

 

 

 

 

 

For questions please refer to our Q/A forum at : http://ask.unixmen.com/

Share this Article: Facebook0Google+0Twitter0LinkedIn0Reddit0Pinterest0StumbleUpon0Digg