Running A MyDNS Name Server On OpenBSD (MySQL/PHP + MyDNS + MyDNSConfig)
This tutorial shows how to run a MyDNS name server on an OpenBSD server. It covers the installation of MySQL, PHP, MyDNS, and MyDNSConfig, the web frontend for the MyDNS name server.
What you need:
- Apache (default installed), but we need to run this as unjailed.
- PHP / MySQL / gcc compiler
I'm not going to tell you how to install openBSD. The downside is that you have to run Apache unjailed to be able to run the MyDNS web front end. Personally, for some of the stuff that I have done the only way I got it to work was by running it unjailed.
To set up openBSD google for a howto; there are 100's of them out there.
Once installed, log in as root.
http://www.openbsd.org/ftp.html:: find a LOCAL FTP / http mirror to download to speed up the downloads and check first to see if they got the OpenBSD version you're running listed on their mirror.
pkg_add -v wget-1.10.2p0.tgz jed-0.99.16-no_x11.tgz phpMyAdmin-2.10.1.tgz mysql-server-5.0.45.tgz gcc-4.2.20070307p2.tgz
Copy and paste this area into your putty window:
cp /usr/local/share/examples/php5/php.ini-recommended /var/www/conf/php.ini
chown -R www:www /var/www/tmp
chmod -R 0770 /var/www/tmp
/usr/local/sbin/phpxs -a gd
/usr/local/sbin/phpxs -a mbstring
/usr/local/sbin/phpxs -a mcrypt
/usr/local/sbin/phpxs -a mysql
/usr/local/bin/mysqladmin -u root password zcworld