{"id":18,"date":"2014-03-05T11:12:14","date_gmt":"2014-03-05T16:12:14","guid":{"rendered":"https:\/\/my.vanderbilt.edu\/dimli\/?page_id=18"},"modified":"2014-04-14T07:30:32","modified_gmt":"2014-04-14T12:30:32","slug":"installation-guide","status":"publish","type":"page","link":"https:\/\/my.vanderbilt.edu\/dimli\/installation-guide\/","title":{"rendered":"Installation Guide"},"content":{"rendered":"<p><strong>Find the most recent version of Dimli at GitHub:<a title=\"https:\/\/github.com\/VandyVRC\/dimli\" href=\"https:\/\/github.com\/VandyVRC\/dimli\" target=\"_blank\"> https:\/\/github.com\/VandyVRC\/dimli<\/a><\/strong><\/p>\n<p>The README file includes the following installation instructions.<\/p>\n<p><strong>Currently, there are file paths and database names throughout the code which will need to be replaced to fit your individual system environment (search for &#8220;dimli.&#8221; and &#8220;_timthumb&#8221;). In the newest version of Dimli, coming soon, this will no longer be an issue.<\/strong><\/p>\n<h2><a name=\"installation-instructions\" href=\"https:\/\/github.com\/isner\/dimli#installation-instructions\"><\/a>Installation Instructions<\/h2>\n<p>In order to install DIMLI, you will need a server running MySQL on which to create a database, and a server running PHP on which to host the application itself. These two functions can, of course, be fulfilled by the same server, though local practices might dictate a seperation of these aspects of the system.<\/p>\n<h4><a name=\"import-database-schema\" href=\"https:\/\/github.com\/isner\/dimli#import-database-schema\"><\/a>Import Database Schema<\/h4>\n<p>DIMLI&#8217;s database schema is provided by the dump file\u00a0<code>_sql\/dimli_schema.sql<\/code><\/p>\n<p>Use a command line prompt (or graphical user interface for the administration of SQL databases, such as phpMyAdmin) to create a new SQL database on your server. I suggest calling the database &#8220;dimli&#8221;, but you may call the database whatever you wish. Then import\/run the schema file to create the many tables that comprise DIMLI&#8217;s relational structure.<\/p>\n<p>All data created by, and imported into, DIMLI will reside within these tables and the within the SQL database you just created.<\/p>\n<h4><a name=\"define-unique-constants\" href=\"https:\/\/github.com\/isner\/dimli#define-unique-constants\"><\/a>Define Unique Constants<\/h4>\n<p>1) Create a new file called\u00a0<code>_php\/_config\/constants.inc.php<\/code><\/p>\n<p>2) Insert the following contents into the file:<\/p>\n<pre><code>&lt;?php\r\n\/*\r\nDATABASE CONSTANTS\r\n------------------\r\nDefine the specifics of your server environment *\/\r\n\r\ndefine('DB_SERVER', '{your.server.url.here}');\r\ndefine('DB_USER', '{yourDatabaseUsername}');\r\ndefine('DB_PASS', '{yourDatabasePassword}');\r\ndefine('DB_NAME', '{yourDatabaseName}');\r\n\r\n\/*\r\nDEFINE IMAGE FILEPATH\r\n---------------------\r\nDefine the filepath for the directory that stores your JPG archive\r\nExamples:\r\n   \"..\/MyImageFiles\/\"\r\n   \"http:\/\/hosted.image.repository.edu\/images\/\" *\/\r\n\r\ndefine('IMAGE_DIR', '{filepathOfYourImageDirectory}');\r\n\r\n\/*\r\nDEFINE ENCRYPTION SALT\r\n----------------------\r\nDefine a salt parameter to pass into the crypt function *\/\r\n\r\ndefine('SALT', '19ReXiNSuLaRuM23');\r\n\r\n\/*\r\nOTHER CONSTANTS\r\n---------------\r\n*\/\r\ndefine('DIR', dirname(__DIR__).'\/');\r\n<\/code><\/pre>\n<pre><code>\r\n<\/code><\/pre>\n<pre><code>?&gt;<\/code><\/pre>\n<p>3) Replace each of the sections in the above code that are wrapped in\u00a0<code>{<\/code> and\u00a0<code>}<\/code> with the appropriate values for your server environment.<\/p>\n<p>4) Save and allow\u00a0<code>_php\/_config\/constants.inc.php<\/code> to remain at this directory location. It will be required by several files in the application at large.<\/p>\n<h4><a name=\"prepare-image-directory\" href=\"https:\/\/github.com\/isner\/dimli#prepare-image-directory\"><\/a>Prepare Image Directory<\/h4>\n<p>Whichever directory you chose to be your main image repository should be divided into three folders named as follows: full\/, medium\/ and thumb\/. The size of the JPG files placed in the &#8216;thumb\/&#8217; directory should be exactly 96 pixels wide x 72 pixels high at 72 ppi. You may choose the dimensions for the &#8216;medium\/&#8217; and &#8216;full\/&#8217; JPG files as you wish. DIMLI will look in these directory locations for image files used throughout the application.<\/p>\n<h4><a name=\"making-powerpoints-available-to-end-users\" href=\"https:\/\/github.com\/isner\/dimli#making-powerpoints-available-to-end-users\"><\/a>Making PowerPoints Available to End-Users<\/h4>\n<p>As you complete\/deliver orders, manually add a PowerPoint file for each order to the _ppts folder. Each PowerPoint file should be named with a four-digit number matching the order number (e.g., 2363.pptx). This file will then be available for end-users to download when they visit their homepage.<\/p>\n<h4><a name=\"log-in-as-the-default-admin\" href=\"https:\/\/github.com\/isner\/dimli#log-in-as-the-default-admin\"><\/a>Log In as the Default Admin<\/h4>\n<p>username\/password:\u00a0<code>admin<\/code>\/<code>admin<\/code><\/p>\n<h4>Accessing and Utilizing the Getty Vocabularies<\/h4>\n<p>As a result of git file size constraints, we are unable to include  the SQL files for the data to fill the Getty Vocabularies tables. We  have made these SQL files available via a public Dropbox.<\/p>\n<p><a href=\"https:\/\/dl.dropboxusercontent.com\/u\/104573827\/Getty%20Vocabularies.zip\">https:\/\/dl.dropboxusercontent.com\/u\/104573827\/Getty%20Vocabularies.zip<\/a><\/p>\n<p>We have also included a copy of our repositories data, in case anyone might like to utilize them.<\/p>\n<p>These Getty Vocabularies are too large to import via phpMyAdmin. However, they can be imported via the MySQL command line.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Find the most recent version of Dimli at GitHub: https:\/\/github.com\/VandyVRC\/dimli The README file includes the following installation instructions. Currently, there are file paths and database names throughout the code which will need to be replaced to fit your individual system environment (search for &#8220;dimli.&#8221; and &#8220;_timthumb&#8221;). In the newest version of Dimli, coming soon, this&#8230;<\/p>\n","protected":false},"author":2733,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"tags":[],"class_list":["post-18","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/my.vanderbilt.edu\/dimli\/wp-json\/wp\/v2\/pages\/18","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/my.vanderbilt.edu\/dimli\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/my.vanderbilt.edu\/dimli\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/my.vanderbilt.edu\/dimli\/wp-json\/wp\/v2\/users\/2733"}],"replies":[{"embeddable":true,"href":"https:\/\/my.vanderbilt.edu\/dimli\/wp-json\/wp\/v2\/comments?post=18"}],"version-history":[{"count":7,"href":"https:\/\/my.vanderbilt.edu\/dimli\/wp-json\/wp\/v2\/pages\/18\/revisions"}],"predecessor-version":[{"id":64,"href":"https:\/\/my.vanderbilt.edu\/dimli\/wp-json\/wp\/v2\/pages\/18\/revisions\/64"}],"wp:attachment":[{"href":"https:\/\/my.vanderbilt.edu\/dimli\/wp-json\/wp\/v2\/media?parent=18"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/my.vanderbilt.edu\/dimli\/wp-json\/wp\/v2\/tags?post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}