Menu

ApacheControl Start

After some rough negotiations with the code layout and directory arrangement, the following will be the setup in each ApacheControl distribution. (Subject to minor changes in actual releases)

/Root Directory
-----------------------------
/root/Start.html : Shortcut to launch application
/root/readme.html : Instructions

/Controls Directory
-----------------------------
/controls/apachestart.bat : Start Apache only
/controls/apachestop.bat : Stop Apache only
/controls/apacherestart.bat : Restart Apache
/controls/ftpdownload.bat : Download updates

/Tools Directory
-----------------------------
/tools/checkupdate.vbs : Check for updates
/tools/clean.vbs : Clean old update files
/tools/setup.vbs : Initial setup, brought on by Start.html
/tools/network.vbs : Network functions

/Scripts Directory
-----------------------------
/scripts/head.js : Common <head> GUI JavaScript
/scripts/body.js : Common <body> GUI JavaScript
/scripts/gui.vbs : Application GUI control VBScript

/Styles Directory
-----------------------------
/styles/default.css : Complete application styles

/Settings Directory
-----------------------------
/settings/apache.xml : Default server settings (version etc..)
/settings/app.xml : ApacheControl settings
/settings/defaulthttpd.xml : Default httpd.conf settings

Misc Directories
/Images : GUI Images
/Update_tmp : Temporary download folder
/Logs : ApacheControl Log/History (New file every month)
/Backups : Settings and multiple .config file XML backups

At present a live update check mechanism is being worked on using XMLDOM to verify current Apache version as referenced in settings.xml as well as current ApacheControl version.

The script will connect to the update website and check if the current version matches the installed version.

This method is probably the best, since multiple mirrors can be listed in <mirror> blocks and the appropriate file names can be listed in <file> blocks.

The VBScript can then select a mirror at random and then pass the download arguments to the upadate BAT script.

The BAT script will use PING to see if the mirror is available, if not it will call the update VBScript with a "deadMirror" argument.

The VBScript will select another mirror.
If successfull, the BAT script will use Windows native FTP utility (ftp.exe) to download the needed files using anonymous authentication.

The update VBScript will keep track of selected mirrors and mirror availability in the /Logs folder under mirrors.xml

All logs will be viewable in the application itself, without the need for a separate log viewer.

Posted by Jay 2005-05-10

Log in to post a comment.

MongoDB Logo MongoDB