| mSQL Database mSQL, or Mini SQL, is a lightweight database engine created to allow fast support and access of stored data without requiring large amounts of memory. This database engine provides a powerful capability for accessing databases within the Virtual Server environment. The mSQL package includes the powerful database engine, a terminal "monitor" program, a database admin program, a schema viewer, and a C language API. The API and the database engine have both been designed to work in a client/server environment over a TCP/IP network. This makes mSQL the ideal database for operating within your Virtual Server. Additional information about mSQL can be obtained at the mSQL web site or from the mSQL FAQ. A Little Technology Shoppe, LLC is pleased to announce that there is currently no cost for use of mSQL- it is provided to our Virtual Server Administrators free of charge (no installation fee or monthly fees). This is a fully site-licensed version of the mSQL database version 2.0.1 for our Virtual Servers. Therefore, you need not purchase an individual license for mSQL insofar as you use mSQL on our Virtual Server Systems. Installing mSQL v2.0.1
W3-mSQL: The mSQL WWW Interface Package W3-mSQL achieves this by providing a complete programming language embedded within an HTML document. The language, called Lite, is similar is style and syntax to the C programming language and the ESL scripting language. Using W3-mSQL and the embedded Lite language, you can generate HTML code "on-the-fly" in the same way you do when you write custom CGI programs. What's more, you can mix normal HTML code with W3-mSQL code so that you only need to use the CGI styled approach where you actually have to. Using W3-mSQL W3-mSQL achieves this by providing a complete programming language embedded within an HTML document. The language, called Lite, is similar is style and syntax to the C programming language and the ESL scripting language. Using W3-mSQL and the embedded Lite language, you can generate HTML code "on-the-fly" in the same way you do when you write custom CGI programs. What's more, you can mix normal HTML code with W3-mSQL code so that you only need to use the CGI styled approach where you actually have to. To install W3-mSQL on your virtual server, connect to your Virtual Server using Telnet or SSH and untar the W3-mSQL archive file into your virtual server directory structure: % cd (this will put you in your home directory) % tar xvf /usr/local/contrib/w3-msql.tar There is W3-mSQL documentation, including detailed examples, available at the mSQL web site. A sample W3-mSQL application is also available for installation on the Virtual Servers. You can install the simple example by untarring an archive file onto your Virtual Server. % cd (this will put you in your home directory) % tar xvf /usr/local/contrib/w3-msql-demo.tar Once the files are in place run the install script. % cd ~/www/htdocs/bookmarks % ./setup_bookmark You can then access the Bookmark Database example at: http://YOUR-DOMAIN.com/bookmarks/Welcome.html Configuring the web server to automatically process
W3-mSQL files based upon file extension The Apache web server can be configured to automatically pre-process W3-mSQL files with the .msql file extension. To setup W3-mSQL redirection, add the following lines to the ~/www/conf/httpd.conf file on your Virtual Server (or the ~/www/conf/srm.conf file, if you Virtual Server was configured before Dec. 8, 1998):http://YOUR-DOMAIN.com/cgi-bin/w3-msql/file.msql Now, it is possible for browsers to access W3-mSQL files this way:AddHandler htmsql msql Action htmsql /cgi-bin/w3-msql The .msql files will be automatically pre-processed by the /cgi-bin/w3-msql executable without the /cgi-bin/w3-msql executable appearing in the URL path.http://YOUR-DOMAIN.com/file.msql Configuring Access Controls for mSQL Databases When accessing an mSQL database from a CGI, it is important to configure access controls for the database. That can be done by making some additions to the ~/usr/local/msql2/msql.acl file on your Virtual Server. Here is what it looks like:
This is an entry for the bookmarks demo database that comes with the
installation of w3-mSQL. To get this to work remove all the
# # Access control for mSQL # # Entries are of the form # # For the bookmark database, I let anyone # read it but only I can write it: database=bookmarks read=* write=USERNAME access=local host=* Now you can access the |
Copyright © 1996-2000, Last Modified: 21 January 2000A Little Technology Shoppe, LLC (ALTS.NET)®. All rights reserved. All brand names and product names used on these web pages are trademarks, or trade names of their respective holders.