Statcreate.sh

Posted on January 15, 2006

Well, I sat at Primo 360 tonight and hacked up a little shell script to automatically add a statistics page for an arbitrary virtualhost on my server. The problem was, everytime I added a new host, I’d need to manually create some scripts to run awstats, and add those into cron. Now, I can do it with one command, completely automatically. This script is pretty robust and does a lot of work that I was previously doing manually. The next step is to create a script that automatically adds bind, sendmail and apache configuration per VirtualHost entry. It would be alot easier if all of these programs used MySQL instead of flat files, so they could easily be controlled by a web control panel instead of having to write custom infoware to do all of the updates.

Trackbacks

Use this link to trackback from your own site.

Comments

Leave a response

Comments