Linux Installation

Untitled

The instructions below assume that you have installed Apache with PHP and MySQL as per the methods used for your distribution.

Set Up a MySQL Database for Segue

To set up a MySQL account and database for Segue.

(Using PHPMyAdmin)

  1. Point your browser to http://localhost/phpmyadmin/
  • Create a database for Segue

    Click “Home” in the top-left of PHPMyAdmin.

    Enter a database name, i.e. “segue”; then hit “Create”.
    • Add a “segue” user

      Go to Home –> Privileges –> Add a New User

      Enter a username and password, i.e. “segue”, “secret”. Set host to “localhost”, as this will prevent anyone from using this account from remotely accessing the database. Then hit “Go”.
      • Give the “segue” user access to the “segue” database.

        If you have just created the “segue” user, you should already be at the correct screen if not, got to Privileges –> Edit (next to the “segue” user).

        Go down to the “Database-specific privileges” section and select the “segue” database from the drop-down menu.

        Check all of the Data and Structure boxes then hit “Go”.

Set Up Segue

  1. Download Segue

    Download the latest version of Segue from SourceForge.net.
  2. Untar Segue

    Untar the segue-1.x.x.tar.gz file into your webserver’s root directory,
    i.e.
        /var/apache/htdocs/

    you can either let StuffIt decompress the archive or do it from the command line with:

        tar -xzf /var/apache/htdocs/segue-1.x.x.tar.gz

    This will create a directory called segue-1.x.x in /Library/WebServer/Documents/ . Rename this directory to "segue".
  3. Create a userfiles directory

    Create a directory for the Segue userfiles. This directory is outside of the segue directory to allow you to update the Segue code without loosing the userfiles. you should now have a "segue" and a "segue_userfiles" directories in /var/apache/htdocs/
    .
  4. Configure Segue

    Rename the file /var/apache/htdocs/segue/config_sample.inc.php to "config.inc.php".

    Open config.inc.php in a text editor (such as the included "TextEdit") and edit the various values to fit your system.

    Below are examples of the parts that you must change:

Untitled


/******************************************************************************

* full_uri – Segue’s full URL path (ie, https://segue.middlebury.edu/view/html/site/segue)

* Don’t put a slash "/" at the end of the url!

******************************************************************************/

$cfg[full_uri] = $_full_uri = "http://140.233.12.105/segue";

Contact your network administrator to set up a DNS hostname and static IP address for your server to give you a url such as https://segue.middlebury.edu/view/html/site/segue/

/******************************************************************************

* uploaddir – the local folder where userfiles are kept

* uploadurl – the URL equivalent of the above folder

******************************************************************************/

$cfg[uploaddir] = $uploaddir = "/var/apache/htdocs/segue_userfiles";

$cfg[uploadurl] = $uploadurl = "http://140.233.12.105/segue_userfiles";

/******************************************************************************

* DB AUTHENTICATION – REQUIRED

*

* dbhost the hostname of the sql server (ie, sql.middlebury.edu)

* dbuser the user to connect as (ie, segue)

* dbpass the above user’s passwd. may be blank

* dbdb the name of the database to use (ie, segue)

******************************************************************************/

$cfg[dbhost] = $dbhost = "localhost";

$cfg[dbuser] = $dbuser = "segue";

$cfg[dbpass] = $dbpass = "secret";

$cfg[dbdb] = $dbdb = "segue";

Start Segue



Comments are closed.