CSI Web Server for Linux Installation Guide 8/13 C o p y r i g h t © 2 0 0 6 - 2 0 1 3 C a m p b e l l S c i e n t i f i c , I n c .
Table of Contents PDF viewers: These page numbers refer to the printed version of this document. Use the PDF reader bookmarks tab for links to specific sections. 1. Introduction .................................................................1 2. Installing CSI Web Server for Linux ..........................1 2.1 DEB Installation (Debian and Ubuntu) ................................................1 2.1.1 Installing the Web Server..............................................................1 2.1.1.
Table of Contents ii
CSI Web Server for Linux Installation Guide 1. Introduction CSI Web Server for Linux is a port of the Campbell Scientific CSI Web Server product to the Linux Operating System along with one copy of Web Publisher for Windows. This package does not provide a Linux based Web Publisher. The Web Publisher is installed on a Windows machine and used to publish RTMC projects to the Linux based CSI Web Server. Packages have been built for Red Hat (or Cent OS) version 6.1 and newer, SUSE Linux version 11.
CSI Web Server for Linux Installation Guide NOTE The package name contains version and revision numbers, and, therefore, may differ from that shown above. The utility can also be used to delete the package by using the following command line: dpkg --remove csiwebserver 2.1.1.4 Alternatives to the dpkg Command Line Instead of installing from the command line, most Linux distributions now provide a GUI program that performs the same types of operations.
CSI Web Server for Linux Installation Guide With this done, you can now install the web server admin package: sudo dpkg --install csiwebadmin-debian_1.1-29_i386.deb NOTE The package name contains version and revision numbers, and, therefore, may differ from that shown above. The wxWidgets and web server admin packages can be removed using the following command lines: sudo apt-get remove wxgtk2.8-0 sudo dpkg --remove csiwebadmin NOTE 2.2 To use the sudo command the user must be part of the sudo group.
CSI Web Server for Linux Installation Guide The utility can also be used to delete the package by using the following command line: rpm --erase csiwebserver 2.2.4 Alternatives to the RPM Command Line Instead of installing from the command line, most Linux distributions now provide a GUI program that performs the same types of operations. On CentOS, for instance, the Package Manager application can be accessed by clicking the “Add/Remove Software” item on the “Applications” menu.
CSI Web Server for Linux Installation Guide Other Distributions The server can be started or stopped using the daemon's init script as follows: /etc/init.d/csiwebd start /etc/init.d/csiwebd stop Note that these commands must be run with root privileges. Alternatively, some distributions provide a service manager GUI application to start and stop daemons. 4.
CSI Web Server for Linux Installation Guide The http-settings element has a child element, https that will specify the configuration of the HTTPS server stack. This child element must have the following attributes: enabled A boolean value that will specify whether the HTTPS stack is enabled for the web server. service-port Specifies the TCP port on which the web server will accept HTTPS connections. key Specifies the path to the file that contains the HTTPS private key.
CSI Web Server for Linux Installation Guide interval This attribute specifies the interval, in milliseconds, at which the log files will get baled. If this attribute is not specified, it will default to a value of 86400000 (one day in milliseconds). The server will not honour any interval that is less than 10 seconds (it will clamp it to this minimum interval). This parameter will be ignored unless the mode attribute is set to time.
CSI Web Server for Linux Installation Guide All (1) – Allowed to view data, make changes to writeable values in a datalogger’s Public or Status table or a virtual data source, set a datalogger’s clock, use the API FileControl command, and publish websites. Section 3.1, PC Websites, in the CSI Web Server manual explains how to create and edit .csipasswd files from CSIWebAdmin or the Web Publisher. The csipasswd command can be used from the command line to edit the .csipasswd file.
CSI Web Server for Linux Installation Guide 4.5 Command Line Options Advanced Linux administrators may have reasons to modify the provided init scripts, create their own, or use other methods for launching the daemon. The csiwebserver executable supports the following command line options: --AppDir=path: Controls the location where the server will look for its configuration file and will also control the default location of the web server home directory as well as its log files.
CSI Web Server for Linux Installation Guide 10
Campbell Scientific Companies Campbell Scientific, Inc. (CSI) 815 West 1800 North Logan, Utah 84321 UNITED STATES www.campbellsci.com • info@campbellsci.com Campbell Scientific Africa Pty. Ltd. (CSAf) PO Box 2450 Somerset West 7129 SOUTH AFRICA www.csafrica.co.za • cleroux@csafrica.co.za Campbell Scientific Australia Pty. Ltd. (CSA) PO Box 8108 Garbutt Post Shop QLD 4814 AUSTRALIA www.campbellsci.com.au • info@campbellsci.com.au Campbell Scientific do Brasil Ltda. (CSB) Rua Apinagés, nbr.