{"id":476849,"date":"2008-06-25T19:35:54","date_gmt":"2008-06-25T23:35:54","guid":{"rendered":"https:\/\/segue.middlebury.edu\/view\/html\/node\/476849"},"modified":"2008-06-25T19:35:54","modified_gmt":"2008-06-25T23:35:54","slug":"linux-installation","status":"publish","type":"page","link":"https:\/\/segueproject.org\/segue-documentation\/segue-v1\/documentation\/for-administrators\/linux-installation\/","title":{"rendered":"Linux Installation"},"content":{"rendered":"<h3>Untitled<\/h3>\n<div>\n<p>The instructions below assume that you have installed Apache with PHP and MySQL as per the methods used for your distribution.\n<\/p><\/div>\n<h3>Set Up a MySQL Database for Segue<\/h3>\n<div>\n<p>To set up a MySQL account and database for Segue.<\/p>\n<p><b>(Using PHPMyAdmin)<\/b>\n <\/p>\n<ol>\n<li>Point your browser to <a href=\"http:\/\/localhost\/phpmyadmin\/\">http:\/\/localhost\/phpmyadmin\/<\/a><\/li>\n<\/ol>\n<ul>\n<li>\n  <b>Create a database for Segue<\/b><br \/>\n  <br \/>Click &#8220;Home&#8221; in the top-left of PHPMyAdmin.<br \/>\n  <br \/>Enter a database name, i.e. &#8220;segue&#8221;; then hit &#8220;Create&#8221;.\n <\/li>\n<ul>\n<li>\n  <b>Add a &#8220;segue&#8221; user<\/b><br \/>\n  <br \/>Go to Home &#8211;&gt; Privileges &#8211;&gt; Add a New User<br \/>\n  <br \/>Enter a username and password, i.e. &#8220;segue&#8221;, &#8220;secret&#8221;. Set host to &#8220;localhost&#8221;, as this will prevent anyone from using this account from remotely accessing the database. Then hit &#8220;Go&#8221;.\n <\/li>\n<ul>\n<li>\n  <b>Give the &#8220;segue&#8221; user access to the &#8220;segue&#8221; database.<\/b><br \/>\n  <br \/>If you have just created the &#8220;segue&#8221; user, you should already be at the correct screen if not, got to Privileges &#8211;&gt; Edit (next to the &#8220;segue&#8221; user).<br \/>\n  <br \/>Go down to the &#8220;Database-specific privileges&#8221; section and select the &#8220;segue&#8221; database from the drop-down menu.<br \/>\n  <br \/>Check all of the <i>Data<\/i> and <i>Structure<\/i> boxes then hit &#8220;Go&#8221;.\n <\/li>\n<\/ul>\n<\/ul>\n<\/ul>\n<\/div>\n<h3>Set Up Segue<\/h3>\n<div>\n<ol>\n<li>\n <b>Download Segue<\/b><br \/>\n <br \/>Download the <a href=\"http:\/\/sourceforge.net\/projects\/segue\/\">latest version of Segue<\/a> from SourceForge.net.\n<\/li>\n<li>\n <b>Untar Segue<\/b><br \/>\n <br \/>Untar the segue-1.x.x.tar.gz file into your webserver&#8217;s root directory,<br \/>\n i.e.<br \/> \u00a0 \u00a0 \/var\/apache\/htdocs\/<br \/>\n <br \/>you can either let StuffIt decompress the archive or do it from the command line with:<br \/>\n <br \/> \u00a0 \u00a0 tar -xzf \/var\/apache\/htdocs\/segue-1.x.x.tar.gz<br \/>\n <br \/>This will create a directory called segue-1.x.x in \/Library\/WebServer\/Documents\/ . Rename this directory to &quot;segue&quot;.\n<\/li>\n<li>\n <b>Create a userfiles directory<\/b><br \/>\n <br \/>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 &quot;segue&quot; and a &quot;segue_userfiles&quot; directories in \/var\/apache\/htdocs\/<br \/>\n .\n<\/li>\n<li>\n <b>Configure Segue<\/b><br \/>\n <br \/>Rename the file \/var\/apache\/htdocs\/segue\/config_sample.inc.php to &quot;config.inc.php&quot;.<br \/>\n <br \/>Open config.inc.php in a text editor (such as the included &quot;TextEdit&quot;) and edit the various values to fit your system.<br \/>\n <br \/>Below are examples of the parts that you must change:\n<\/li>\n<\/ol>\n<\/div>\n<h3>Untitled<\/h3>\n<div>\n<div style=\"margin-left: 30px\">\n<br \/>\n\/******************************************************************************<br \/>\n<br \/>\n\t * full_uri &#8211; Segue&#8217;s full URL path (ie, <a href=\"https:\/\/segue.middlebury.edu\/view\/html\/site\/segue\" class=\"linkification-ext\">https:\/\/segue.middlebury.edu\/view\/html\/site\/segue<\/a>)<br \/>\n<br \/>\n\t *\t\tDon&#8217;t put a slash &quot;\/&quot; at the end of the url!<br \/>\n<br \/>\n\t ******************************************************************************\/<br \/>\n<br \/>\n\t$cfg[full_uri] = $_full_uri = &quot;<a href=\"http:\/\/140.233.12.105\/segue\" class=\"linkification-ext\">http:\/\/140.233.12.105\/segue<\/a>&quot;;\t\t\t<\/p>\n<p><b><i>Contact your network administrator to set up a DNS hostname and static IP address for your server to give you a url such as <a href=\"https:\/\/segue.middlebury.edu\/view\/html\/site\/segue\/\" class=\"linkification-ext\">https:\/\/segue.middlebury.edu\/view\/html\/site\/segue\/<\/a><\/i><\/b><\/p>\n<p>\n\t\/******************************************************************************<br \/>\n<br \/>\n\t * uploaddir &#8211; the local folder where userfiles are kept<br \/>\n<br \/>\n\t * uploadurl &#8211; the URL equivalent of the above folder<br \/>\n<br \/>\n\t ******************************************************************************\/<br \/>\n<br \/>\n\t$cfg[uploaddir] = $uploaddir = &quot;\/var\/apache\/htdocs\/segue_userfiles&quot;;<br \/>\n<br \/>\n\t$cfg[uploadurl] = $uploadurl = &quot;<a href=\"http:\/\/140.233.12.105\/segue_userfiles\" class=\"linkification-ext\">http:\/\/140.233.12.105\/segue_userfiles<\/a>&quot;;\t\t<\/p>\n<p>\n\t\t\/******************************************************************************<br \/>\n<br \/>\n\t\t * DB AUTHENTICATION &#8211; REQUIRED<br \/>\n<br \/>\n\t\t *<br \/>\n<br \/>\n\t\t * dbhost\t\t\t\tthe hostname of the sql server (ie, sql.middlebury.edu)<br \/>\n<br \/>\n\t\t * dbuser\t\t\t\tthe user to connect as (ie, segue)<br \/>\n<br \/>\n\t\t * dbpass\t\t\t\tthe above user&#8217;s passwd. may be blank<br \/>\n<br \/>\n\t\t * dbdb\t\t\t\t\tthe name of the database to use (ie, segue)<br \/>\n<br \/>\n\t\t ******************************************************************************\/<br \/>\n<br \/>\n\t\t$cfg[dbhost] = $dbhost = &quot;localhost&quot;;<br \/>\n<br \/>\n\t\t$cfg[dbuser] = $dbuser = &quot;segue&quot;;<br \/>\n<br \/>\n\t\t$cfg[dbpass] = $dbpass = &quot;secret&quot;;<br \/>\n<br \/>\n\t\t$cfg[dbdb] = $dbdb = &quot;segue&quot;;<\/p>\n<\/div>\n<\/div>\n<h3>Start Segue<\/h3>\n<div>\n<p>Point your browser to <a href=\"http:\/\/localhost\/segue\/\">http:\/\/localhost\/segue\/ or http:\/\/xxx.xxx.xxx.xxx\/segue\/ (where the xxx&#8217;s are your IP address) to use Segue.<\/p>\n<p>The first time that you go to Segue, you should see messages saying that Segue created the necessary tables in your database.<\/p>\n<p>Log in with user\/pass admin\/changeme to start using Segue.<\/p>\n<p>Enjoy!<\/a>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>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&hellip; <a href=\"https:\/\/segueproject.org\/segue-documentation\/segue-v1\/documentation\/for-administrators\/linux-installation\/\" class=\"continue-reading\">More &rarr;<\/a><\/p>\n","protected":false},"author":29,"featured_media":0,"parent":480637,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-476849","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/segueproject.org\/segue-documentation\/wp-json\/wp\/v2\/pages\/476849","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/segueproject.org\/segue-documentation\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/segueproject.org\/segue-documentation\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/segueproject.org\/segue-documentation\/wp-json\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"https:\/\/segueproject.org\/segue-documentation\/wp-json\/wp\/v2\/comments?post=476849"}],"version-history":[{"count":0,"href":"https:\/\/segueproject.org\/segue-documentation\/wp-json\/wp\/v2\/pages\/476849\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/segueproject.org\/segue-documentation\/wp-json\/wp\/v2\/pages\/480637"}],"wp:attachment":[{"href":"https:\/\/segueproject.org\/segue-documentation\/wp-json\/wp\/v2\/media?parent=476849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}