Menu
Electric Death Ferret
Home
Download
Changelog
Demo #1
Demo #2
Instructions

My Stuff
Main Page
Electric Death Ferret
phpSNMP
Resume

Other Stuff
Linux
Software
News
UF
Hardware
Books
Music

Mail
Configuring Electric Death Ferret

  • Installation is farily simple. Put the PHP files somewhere on your webserver (p robably in a htaccess protected directory). You also should change the ips whic h are allowed access to these files (these are specified at the top of each scri pt, there are tabs separating each ip). There are some variables for accessing the MySQL database that should be specified as well (username, pass, hostname, d atabase name).

  • Next, you must create the MySQL database on the system. Included is a schema fo r doing this, simply run: cat hosting.schema|mysql

  • Finally, edit the perl script "hosting" to meet your settings. This includes em ail addresses for account and domain notifications, path names, and other such s ettings.

  • A script is also included for updating the secondary DNS (since most sane people tend to put their primary and secondary DNS servers on separate machines). To do this, you need a central location on the main server for the file to reside b efore it is uploaded (by default this is /etc/hosting), this directory needs to be owned by user nobody. A cron script needs to be setup on the secondary DNS m achine. This script downloads the file from the name server and then parses thr ough it doing sanity checks and then comparing each entry to the existing named. conf. All entries that aren't already in the named.conf on the secondary are en tered, then a message is sent to the admin reminding them of the changes and tel ling them to reload the name server via an "ndc reload". It is advisable to set up an FTP account just for this so that /etc/hosting can be specified as a home directory (thus limiting access).

  • Whenever changes are made to either the DNS or Apache, a message is sent to the admin specifying the changes. The changes only take effect one someone restarts them. This is an extra security measure so that you can preview all changes be fore they take effect.

  • WARNING: Both the "hosting" and "secondary" perl scripts should be setup as own ed by "root" and with permissions "700", this is because the MySQL username and passwords are listed here.