Lasso Professional Server provides a convenient, Web-based interface for configuring Lasso instance settings, managing and maintaining databases, and much more. This interface is referred to as the Lasso Server Admin.
This chapter provides an overview of Instance Administration, and is divided into the following sections.
The Lasso Server Admin is accessed via a Web browser similar to a standard HTML page and can be accessed in any Web browser that meets the Web browser requirements listed in the configuration sections of this guide.
Lasso Server can have multiple independent instances defined within Lasso Instance Manager. Each instance handles incoming Web requests based on the host name used to access the admin.
A single instance will capture all incoming Web requests. If no additional instances have been created, then Lasso Server Admin for the sole instance can be accessed using one of the following URLs. Use
localhost if accessing Lasso Server Admin from a browser on the same machine as the Lasso Service. Otherwise, replace www.example.com with the actual domain name or IP address.
http://www.example.com/lasso9/admin
http://localhost/lasso9/admin
To access the Lasso Server Admin for a particular instance, it is necessary to construct a URL that meets the criteria for the instance. For example, if an instance has a criteria specifying that the host name must be secure.example.com then the following URL would load the Lasso Server Admin for that instance:
http://secure.example.com/lasso9/admin
The Web browser should prompt for the administrator username and password. The Web browser will not prompt if the Lasso Server Admin has already been accessed using the browser in the current session or if the authentication information has been stored in a keychain, passport, or browser preferences.
If an error is displayed, make sure Lasso Service and the Web server are running as described in the configuration sections of this guide.
Lasso 9 Server provides a new streamlined administration interface, referred to here as the Lasso Server Admin. The Lasso Server Admin is primarily navigated by using the pop up menu on the upper left portion of the page.
The System Status tab, located in the top right portion of the page, contains information regarding the Lasso Server process.
Lasso Quick Code allows you to run code snippets within the Lasso Server Admin web interface. The Lasso Quick Code console can opened by clicking the arrow tab in the top, center of the page.
The Lasso Quick Code console has two configurable options:
This section describes how to configure data sources for use with Lasso Server, and is divided into the following sections.
Overview provides an overview of data source connectors in Lasso Professional Server.
Lasso Professional Server communicates with data sources using Lasso data source connectors, which are modular components configured using the Setup > Data Sources section of Site Administration. Lasso Professional Server provides built-in connectors all of the data sources listed in the following table.
Most connectors can access data sources which are installed on the same machine as Lasso or on a remote machine. Some connectors can only access files on the local machine. Whether or not an ODBC or JDBC data source can communicate with Lasso on a separate machine depends on whether or not the driver can communicate via TCP/IP.
Custom data source connectors for other data sources can also be created for use with Lasso Server using LJAPI, LCAPI, or Lasso Tags. Information about creating and using third-party data source connectors can be found in the Language Guide.
Data Source | Notes |
---|---|
FileMaker Server | Supports FileMaker Server 7, 8, 9, 10, or 11 Advanced and FileMaker Server 9, 10, or 11 |
MySQL | Supports MySQL 3.x, 4.x, or 5.x data sources. |
Oracle | Supports Oracle data sources. The Oracle "Instant Client" libraries must be installed in order to activate this data source. See the Oracle Data Sources section for more information. |
PostgreSQL | Supports PostgreSQL data sources. The PostgreSQL client libraries must be installed in order to activate this data source. See the PostgreSQL Data Sources section for more information. |
JDBC | Supports any data source with a compatible JDBC driver. See the JDBC Data Sources section for details about how to install JDBC drivers. |
ODBC | Support any data source with a compatible ODBC driver. See the ODBC Data Sources section for details about how to install ODBC drivers. |
SQL Server | Supports Microsoft SQL Server. The SQL Server client libraries must be installed in order to activate this data source. See the SQL Server Data Sources section for more information. |
SQLite | SQLite is also the internal data source which is used for the storage of Lasso's preferences and security settings. |
Data source connectors allow database actions to be performed via Lasso Web pages and Lasso pages. Database actions can be used in Lasso to search for records in a database that match specific criteria, to navigate through the found set from a database search, to add, update, or delete a record in a database, to fetch schema information about a database, and more. In addition, database actions can be used to execute SQL statements in SQL-compliant databases.
Interacting with data sources via Lasso Professional Server involves four steps:
The Datasource page in Lasso Server Amin is where all data source connectors can be listed, viewed, enabled, or disabled. This page shows all connectors currently installed to Lasso Server and list all available hosts for each connector.
Data sources which require additional set up will be marked as Unavailable in this listing. Consult the appropriate section of this chapter for details about how to install the additional components necessary to enable the data source. JDBC data sources will not show up unless drivers have been installed in the JDBCDrivers folder.
Lasso Professional Server communicates with FileMaker Server 7, 8, 9, 10, or11 Advanced and FileMaker Server 9, 10, or 11 through the built-in XML interface. Lasso cannot communicate with any other products in the FileMaker 7, 8 or 9 product line such as FileMaker Pro.
FileMaker Server 9, 10, or 11 for Windows or Mac OS X (or FileMaker Server 9, 10, or 11 Advanced). Or, FileMaker Server Advanced 7 or 8 for Windows or Mac OS X. The Web Publishing Engine must be installed and each database must be configured according to the instructions in the following section.
The latest versions of FileMaker Server can be downloaded from FileMaker, Inc.’s Web site at:
http://www.FileMaker.com
This section describes setting up FileMaker Server 9, 10, or 11 or FileMaker Server 9, 10, or 11 Advanced for use with Lasso Server. These versions will be referred to collectively as version 11.
To configure FileMaker Server:
Follow the instructions included with FileMaker Server carefully. Setting up FileMaker Server is considerably easier than setting up earlier versions of Filemaker Server.
This section describes setting up FileMaker Server Advanced for use with Lasso Server.
To configure FileMaker Server Advanced:
Follow the instructions included with FileMaker Server Advanced carefully. There are several steps in the process which are not obvious and require reading the document to set up properly. Configuring FileMaker Server Advanced is beyond the scope of this documentation, but some common pitfalls are listed below.
Setting up a data source host is the best way to ensure that access to the data source is fully controlled. However, it can sometimes be beneficial to access a data source host without a lot of configuration. This section describes how to construct an inline which access a FileMaker Server data source host. See the Lasso Language Guide for full details about inline host specification.
To access a FileMaker Server host directly in an inline:
The -Host parameter can be used to specify all of the connection parameters for a data source host. The -Host array should contain the following elements. The -Datasource should be specified as filemakerds. The -Name should be specified as the URL of the machine hosting FileMaker Server. The -Port is optional and defaults to 80. The -Username and -Password should be specified.
For example, the following code shows how a connection to a FileMaker Server data source hosted on the same machine as Lasso might appear.
inline( -host=Array(
-datasource='filemakerds',
-name='localhost',
-port='80',
-username='username',
-password='password' ),
-database='database', -table='table', -findall ) => {^
found_count;
^} // Close inline
This section provides instructions for setting up a MySQL data source for use with Lasso Professional via Lasso Connector for MySQL. A MySQL service running on a host machine is able to communicate with
Lasso Server via a TCP/IP port. This can be on the same machine as Lasso Server, or on a separate machine. For more information on MySQL, see the following URL:
http://www.mysql.com
Lasso Server is certified to work with default installations of MySQL 3.23, MySQL 4.x, and MySQL 5.x (release versions). Newer versions or modified versions of MySQL may work with Lasso Server, but are not officially supported.
For Lasso Professional Server to successfully communicate with a MySQL host, the following requirements must be met.
MySQL is operated via a command-line interface application, which is normally located in the bin directory of the MySQL installation on the client machine. For information on how to use this, consult the MySQL
documentation.
Security for MySQL data sources can be set at any level (MySQL-level, database-level, table-level, etc.). All permissions for all levels of security need to be given to Lasso Server for unrestricted operation. This involves setting a new user and password for Lasso Server in MySQL, then entering the username and password in the Lasso Server Admin. Follow the procedure below for granting all permissions to Lasso Server in MySQL using the MySQL command line utility.
To grant all permissions to Lasso Server in MySQL:
Replace Username and Password with the username and password values you wish to assign to Lasso Server. These will be used in the Datasources section in the Lasso Server Admin, as described in the Setting Up Data Sources section. Replace Hostname with the host name or IP address of the machine on which Lasso Server is installed. This will restrict the access of this username and password to the machine running Server for added security. ALL represents all MySQL action permissions (e.g. INSERT, SELECT, DELETE, etc.), and the *.* characters represent all levels of security in MySQL (e.g. database-level, table-level, etc.).
Lasso Server now has all appropriate permissions to communicate with MySQL, and the MySQL host may now be configured in the Datasources section of the Lasso Server Admin. See the Setting Up Data Sources section for more information.
Note: It is possible to assign limited privileges to Lasso Server one at a time by replacing ALL with an individual permission (e.g. INSERT, SELECT, DELETE), and replacing *.* with a specific database or table name. This will restrict the functionality of Lasso Server to the privileges that are assigned to it. For example, giving Lasso Server only the SELECT privilege will allow a MySQL database to be searched using Lasso, but records cannot be added, updated, or deleted using Lasso.
The Datasources page in the Lasso Server Admin displays all data source hosts for a selected data source connector, and allows the administrator to add new hosts. A host is a computer that serves the databases with which Lasso Server communicates.
Expanding the connectors exposes a listing of all the hosts available for the current connector.
Setting up a data source host is the best way to ensure that access to the data source is fully controlled. However, it can sometimes be beneficial to access a data source host without a lot of configuration. This section describes how to construct an inline which access a MySQL data source host. See the Lasso Language Guide for full details about inline host specification.
To access a MySQL host directly in an inline:
The -Host parameter can be used to specify all of the connection parameters for a data source host. The -Host array should contain the following elements. The -Datasource should be specified as mysqlds. The -Name should be specified as the URL of the machine hosting FileMaker Server. The -Port is optional and defaults to 3306. The -Username and -Password should be specified.
For example, the following code shows how a connection to a MySQL data source hosted on the same machine as Lasso might appear.
inline( -host=Array(
-datasource='mysqlds',
-name='localhost',
-port='3306',
-username='username',
-password='password' ),
-database='database', -table='table', -findall ) => {^
found_count;
^} // Close inline
This section provides instructions for setting up an Oracle data source for use with Lasso Server. An Oracle service running on a host machine is able to communicate with Lasso Professional Server via a TCP/IP port. The data source can be on the same machine as Lasso Server or on a separate machine. For more information on Oracle, see the following URL:
http://www.oracle.com/
Lasso Server has been tested with the following versions of this data source.
Lasso’s Oracle data source requires the Oracle “Instant Client” to be installed in order to access Oracle hosted on another machine. If Lasso is hosted on the same machine as Lasso then this is not necessary. The instant client can be downloaded from the following Web site. Make sure to download just the basic instant client files rather than the complete Oracle 10g client or database installation.
http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html
Note: Links to third party distributions and tools are provided for your convenience and were accurate when this manual was written. LassoSoft cannot be responsible for the availability or suitability of software downloaded from third party Web sites.
The Oracle database server must be configured with a user which has access to all of the databases, tables, and other resources which will be published through Lasso. Consult the Oracle documentation for help configuring Oracle’s built-in security. The Oracle Web site has a Getting Started section which explains how to install and perform basic configuration of an Oracle database server.
http://www.oracle.com/pls/db111/portal.portal_db
The Datasources page in Lasso Server Admin displays all data source hosts for a selected data source connector, and allows the administrator to add new hosts. A host is a computer that serves the databases with which Lasso communicates and has an associated username and password.
Important: If the client libraries for Oracle have not been installed properly then a warning message will appear on this page. Consult the Requirements section above for instructions to install the Oracle client libraries which Lasso requires.
To add a new Oracle host:
Once the host is added, the new host appears in the Hosts Listing panel below the connector listing. There, one expands the host listing to expose a list of all available databases for the specified host.
Databases in newly created hosts are enabled by default. The Administrator can disable databases by expanding the database listing and setting the Enabled drop-down to No. This provides a method for the Lasso site administrator to designate which databases can and cannot be used with Lasso.
Setting up a data source host is the best way to ensure that access to the data source is fully controlled. However, it can sometimes be beneficial to access a data source host without a lot of configuration. This section describes how to construct an inline which access an Oracle data source host. See the Lasso Language Guide for full details about inline host specification.
To access an Oracle host directly in an inline:
The -Host parameter can be used to specify all of the connection parameters for a data source host. The -Host array should contain the following elements. The -Datasource should be specified as oracle. The -Name should be specified the same as the Connection URL described above, e.g. oracle.example.com:1521/mydatabase. The -Username and -Password must be specified.
For example, the following code shows how a connection to the same Oracle database server which was configured above might appear.
inline( -host=Array(
-datasource='oracle',
-name='oracle.example.com:1521/mydatabase',
-port='1521',
-username='username',
-password='password' ),
-database='database', -table='table', -findall ) => {^
found_count;
^} // Close inline
This section provides instructions for setting up a PostgreSQL data source for use with Lasso Server. A PostgreSQL service running on a host machine is able to communicate with Lasso Server via a TCP/IP port. The data source can be on the same machine as Lasso Server or on a separate machine. For more information on PostgreSQL, see the following URL:
http://www.postgresql.org/
Lasso Server has been tested with the following versions of this data source.
PostgreSQL 8.x
On any platform it is necessary to install libpq library on the Lasso machine, even in order to access a copy of PostgreSQL hosted on another machine. The libpq library can be obtained by installing PostgreSQL on the Lasso machine, downloading from a third party site, or building PostgreSQL locally. Distributions of PostgreSQL for Windows, Mac, and Linux can be found at the PostgreSQL Web site.
http://www.postgresql.org/
The PostgreSQL database server must be configured with a user which has access to all of the databases, tables, and other resources which will be published through Lasso. Consult the PostgreSQL documentation for help configuring PostgreSQL’s built-in security.
http://www.postgresql.org/docs/manuals/
The Datasources page in Lasso Server Admin displays all data source hosts for a selected data source connector, and allows the administrator to add new hosts. A host is a computer that serves the databases with which Lasso communicates and has an associated username and password.
Important: If the client libraries for PostgreSQL have not been installed properly then a warning message will appear on this page. Consult the Requirements section above for instructions to install the PostgreSQL client libraries which Lasso requires.
To add a new PostgreSQL host:
In the Add Host panel, enter the ip/domain name where the PostgreSQL datasources are being hosted
Enter the TCP/IP port of the data source application or service of the host in the Port field. This is commonly 5432 for PostgreSQL.
Select Yes from the Enabled pull-down menu to enable the host.
Enter a username for the host in the Host Username field. Lasso Server will connect to the data source and all databases therein using this username by default.
Enter a password for the host in the Host Password field. Lasso Server will connect to the data source and all databases therein using this password by default.
Select the Add Host button.
Once the host is added, the new host appears in the Hosts Listing panel below the connector listing. There, one expands the host listing to expose a list of all available databases for the specified host.
Databases in newly created hosts are enabled by default. The Administrator can disable databases by expanding the database listing and setting the Enabled drop-down to No. This provides a method for the Lasso site administrator to designate which databases can and cannot be used with Lasso.
Setting up a data source host is the best way to ensure that access to the data source is fully controlled. However, it can sometimes be beneficial to access a data source host without a lot of configuration. This section describes how to construct an inline which access an PostgreSQL data source host. See the Lasso Language Guide for full details about inline host specification.
To access an PostgreSQL directly in an inline:
The -Host parameter can be used to specify all of the connection parameters for a data source host. The -Host array should contain the following elements. The -Datasource should be specified as oracle. The -Name should be specified the same as the Connection URL described above. The -Username and -Password must be specified.
For example, the following code shows how a connection to the same PostgreSQL database server which was configured above might appear.
inline( -host=Array(
-datasource='postgres',
-name='postgresql.example.com',
-port='5432',
-username='username',
-password='password' ),
-database='database', -table='table', -findall ) => {^
found_count;
^} // Close inline
Lasso Server comes with an embedded high-performance data source called SQLite. This data source is used to store Lasso’s internal site preferences and security settings. SQLite is installed, enabled, and pre-configured within Lasso Server by default. No further set up or installation of SQLite is required.
SQLite databases are stored in the SQLiteDBs folder within each instance's folder. By default this folder contains databases that are required for Lasso Server to function, as documented in the Using Site Administration section.
Custom databases may be created and added to this folder three different ways:
Once custom SQLite databases are created or moved to the SQLiteDBs folder, they can be used in Lasso code or tested using the Browse section of the DB Browser tool.
This section provides instructions for setting up data source through ODBC for use with Lasso Server. An ODBC driver set up as a system data source (System DSN) is required in order to access the data source through Lasso. The data source can be on the same machine as Lasso Server or on a separate machine. For more information on ODBC, see the documentation included with your operating system:
Lasso’s ODBC data source requires a compatible ODBC driver which has been configured as a System DSN in the ODBC control panel.
Consult the documentation for your data sources and ODBC drivers for details about how to secure access to the data made available through the driver. Most data sources will require the following steps:
The Datasources page in Lasso Server Admin displays all data source hosts for a selected data source connector, and allows the administrator to add new hosts. A host is a computer that serves the databases with which Lasso communicates and has an associated username and password.
To add a new Oracle host:
Once the host is added, the new host appears in the Hosts Listing panel below the connector listing. There, one expands the host listing to expose a list of all available databases for the specified host.
Setting up a data source host and properly configuring Lasso security is the best way to ensure that access to the data source is fully controlled. However, it can sometimes be beneficial to access a data source host without a lot of configuration. This section describes how to construct an inline which access an ODBC data source host. See the Lasso Language Guide for full details about inline host specification.
To access an ODBC host directly in an inline:
The -Host parameter can be used to specify all of the connection parameters for a data source host. The -Host array should contain the following elements. The -Datasource should be specified as odbc. The -Name should be specified as the System DSN, e.g. exampledatabase. The -username and -Password should be specified if required by the ODBC driver.
For example, the following code shows how a connection to the same ODBC data source which was configured above might appear.
inline( -host=Array(
-datasource='odbc',
-name='System_DSN_Name',
-username='username',
-password='password' ),
-database='database', -table='table', -findall ) => {^
found_count;
^} // Close inline
The Log Book allows the administrator to view and delete errors, warnings detail messages, deprecated functionality warnings, and action statements that have been logged both internally in Lasso Server and via the [Log] tag, as well as set site logging options. For more information on the [Log] tag, see the Files and Logging chapter in the Lasso Language Guide.
Important: Configuring error logging in Lasso Server Administration is not the same thing as configuring page-level error handling, such as for syntax errors and security errors. Page-level error handling is described in the Error Reporting chapter of the Lasso Language Guide.
The Lasso Errors page lists all errors and system messages stored in the Lasso_Internal database. Errors and system messages can also be deleted within this interface.
For each feedback type, the administrator can choose to log or display feedback in any of the following three places:
Options are changed by checking or unchecking the desired values in the Log Book Settings panel and selecting the Save button. Selecting the Refresh button reloads the Log Book page with its currently stored values.
Note: For information on how to programmatically log custom data to the logs described above, see the Files and Logging chapter in the Lasso Language Guide.
The email queue logs all email messages that are sent from Lasso Server. Messages remain in the queue while they are being sent to the SMTP mail server looked up by Lasso or specified in the [Email_Send] method by the developer. For more information, see the Email chapter in the Lasso Language Guide.
Each message may include one or more parts depending on the recipients of the message. A message to one recipient always has one part. If a message has several recipients who are in different domains then the message will be split into one part per domain. Information about the first part of a message is shown inline within the message display. The message display also includes the most recent error returned for the message. Messages in the queue can be viewed by status by selecting a message category from the pull-down menu in top panel, and then selecting the Select button. These categories are as listed below.
The Sessions page allows an administrator view session information in real time. The location where sessions will be stored can also be configured.
Lasso Server provides a new in-memory session driver which allows sessions to be served very fast. When the memory session driver is selected sessions will only persist until Lasso Service is restarted.
The memory session driver can be selected by choosing Memory from the Serve Sessions From menu and clicking the Select button.
The default SQLite storage driver can be reselected by choosing Local Default from the Serve Sessions From menu and clicking the Select button.
Lasso Server provides the ability to share session data with other Lasso Server servers so that Lasso sessions can persist within load-balancing and redundant server configurations with
multiple Lasso Professional Server servers.
Session sharing is achieved by designating a single external MySQL host to serve all Lasso session data, and then configuring each Lasso Server instance to store all session data on this host.
For best performance, the session tuning parameters described below should be used to establish one Lasso server as the master of the session table which will perform routine maintenance. Each of the other Lasso servers that are sharing the same MySQL table should be set to never delete expired sessions.
Warning: Configuring Lasso to store all session data on an external MySQL host creates a dependency on that external host in order for sessions to work. It is strongly recommended that the MySQL server be on the same network as the Lasso Professional Server servers.
The Session Data Server panel allows the administrator to set the MySQL host that will be used to store all session data for the current Lasso Server server.
To create and use an external sessions table:
To select and use an existing external sessions table:
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft