{"id":243,"date":"2015-05-12T12:33:42","date_gmt":"2015-05-12T12:33:42","guid":{"rendered":"https:\/\/edulab.unitn.it\/tecnici\/?p=243"},"modified":"2015-05-12T13:41:24","modified_gmt":"2015-05-12T13:41:24","slug":"installazione-seeddms","status":"publish","type":"post","link":"https:\/\/edulab.unitn.it\/tecnici\/installazione-seeddms\/","title":{"rendered":"Installazione seedDMS"},"content":{"rendered":"<p>Installazione di <a style=\"font-family: 'Ubuntu Condensed', sans-serif;font-size: 14px;line-height: 1.42857143;background-color: #ffffff\" href=\"http:\/\/www.seeddms.org\/index.php?id=2\">SeedDMS<\/a>\u00a0con:<\/p>\n<ul>\n<li>Macchina Debian 8 in container Proxmox<\/li>\n<li>Mysql esterno<\/li>\n<li>Archiviazione dei file su server nfs<\/li>\n<li>Autenticazione tramite Active Directory<\/li>\n<\/ul>\n<h4>\u00a0Prerequisiti<\/h4>\n<p>Pacchetti da installare:<\/p>\n<pre>apache2\u00a0php5\u00a0php5-mysql php5-gd\u00a0php5-ldap\u00a0php-pear\u00a0php-http-webdav-server nfs-common zendframework poppler-utils catdoc<\/pre>\n<p>non ho messo mysql-server perch\u00e9 ho un server dedicato per i DB<\/p>\n<p>Scarica i pacchetti necessari: (<em>al momento la verione disponibile \u00e8 la \u00a04.3.17<\/em>)<\/p>\n<pre>wget http:\/\/sourceforge.net\/projects\/seeddms\/files\/seeddms-4.3.17\/s\r\nwget http:\/\/sourceforge.net\/projects\/seeddms\/files\/seeddms-4.3.17\/SeedDMS_Preview-1.1.3.tgz\r\nwget http:\/\/sourceforge.net\/projects\/seeddms\/files\/seeddms-4.3.17\/SeedDMS_Lucene-1.1.5.tgz\r\nwget http:\/\/sourceforge.net\/projects\/seeddms\/files\/seeddms-4.3.17\/SeedDMS_Core-4.3.17.tgz\r\nwget http:\/\/download.pear.php.net\/package\/Log-1.12.8.tgz<span style=\"color: #666666;font-family: 'Ubuntu Condensed', sans-serif;font-size: 14px;line-height: 1.42857143;background-color: #ffffff\">esegui i comandi<\/span>\r\n<\/pre>\n<pre>pear install SeedDMS_Core-4.3.17.tgz \r\npear install SeedDMS_Lucene-1.1.5.tgz \r\npear install SeedDMS_Preview-1.1.3.tgz \r\npear install Log-1.12.8.tgz\r\ntar -xzvf seeddms-4.3.17.tar.gz\r\ncp -r seeddms-4.3.17 \/var\/www\/<\/pre>\n<p>installo i moduli necessari per apache<\/p>\n<pre>a2enmod rewrite\r\nservice apache2 restart<\/pre>\n<h4>2 Installo la versione\u00a0\u00a0MULTIPLE INSTANCES<\/h4>\n<p>creo una dir per la prima istanza in \/var\/www\/<\/p>\n<pre>mkdir\u00a0\/var\/www\/Instance1\r\ncd \/var\/www\/Instance1\/<\/pre>\n<p>Creo i link necessari ai sorgenti:<\/p>\n<pre>&gt; ln -s ..\/seeddms-4.3.17 src\r\n&gt; ln -s src\/inc inc\r\n&gt; ln -s src\/op op\r\n&gt; ln -s src\/out out\r\n&gt; ln -s src\/js js\r\n&gt; ln -s src\/views views\r\n&gt; ln -s src\/languages languages\r\n&gt; ln -s src\/styles styles\r\n&gt; ln -s src\/themes themes\r\n&gt; ln -s src\/install install\r\n&gt; ln -s src\/index.php index.php<\/pre>\n<p>Creo la cartella conf nella cartella dell&#8217;istanza desiderata<\/p>\n<pre>mkdir \/var\/www\/Instance1\/conf<\/pre>\n<p>Monta in \/mnt\/DMS\/data\/ lo storage nfs esterno seguendo <a title=\"Proxmox container and NFS\" href=\"https:\/\/edulab.unitn.it\/tecnici\/proxmox-container-and-nfs\/\">queste<\/a> istruzioni<\/p>\n<p>Crea le cartelle<\/p>\n<pre>\/mnt\/DMS\/data\/Instance1\/\r\n\/mnt\/DMS\/data\/Instance1\/staging\/\r\n\/mnt\/DMS\/data\/Instance1\/cache\/\r\n\/mnt\/DMS\/data\/Instance1\/lucene\/<\/pre>\n<p><strong>Modifica il proprietario<\/strong> delle cartelle \/mnt\/DMS\/data\/Instance1\/ e della cartella\u00a0\/var\/www\/Instance1\/conf \u00a0\u00a0in www-data:www-data<\/p>\n<p>&nbsp;<\/p>\n<p>modifica la DocumentRoot di apache\u00a0in<em style=\"color: #666666;font-family: 'Ubuntu Condensed', sans-serif;font-size: 14px;line-height: 1.42857143;background-color: #ffffff\">\u00a0\/etc\/apache2\/sites-available\/000-default.conf\u00a0<\/em><\/p>\n<pre>ServerAdmin webmaster@localhost\r\n# DocumentRoot \/var\/www\/html\r\n DocumentRoot \/var\/www\/<\/pre>\n<p>riavvia apache.<\/p>\n<p>Crea il Database <strong>DMS_Instance1<\/strong>\u00a0su Mysql ( io uso phpmyadmin)<\/p>\n<p>&nbsp;<\/p>\n<p>Crea il file \u00a0ENABLE_INSTALL_TOOL<\/p>\n<pre>touch \/var\/www\/Instance1\/conf\/ENABLE_INSTALL_TOOL<\/pre>\n<p>punta il browser all&#8217;indirizzo<\/p>\n<pre>http:\/\/[Server IP]\/Instance1\/install\/install.php<\/pre>\n<p>e segui le istruzioni.<br \/>\nesempio di parametri da inserire:<br \/>\nRoot directory: \/var\/www\/Instance1\/<br \/>\nHttp Root:\u00a0\/Instance1\/<br \/>\nContent directory: \/mnt\/DMS\/data\/Instance1\/ \u00a0 \u00a0 (<strong>importante la barra in fondo<\/strong>)<br \/>\nDirectory for partial uploads: \/mnt\/DMS\/data\/Instance1\/staging\/<br \/>\nCache directory: \/mnt\/DMS\/data\/Instance1\/cache\/<br \/>\nDirectory for full text index:\/mnt\/DMS\/data\/Instance1\/lucene\/<\/p>\n<p>Database Type: Mysql<br \/>\nServer name: 192.168.2.xxx<br \/>\nDatabase: DMS_Instance1<br \/>\nUsername: xxxx<br \/>\nPassword: xxxx<\/p>\n<p>nota: Ricorda di spuntare &#8220;crea tabella&#8221; una volta compilati tutti i campi.<\/p>\n<p>&nbsp;<\/p>\n<p>Punta il browser all&#8217;indirizzo\u00a0http:\/\/[Server IP]\/Instance1\/ e buon lavoro.<\/p>\n<p>&nbsp;<\/p>\n<h4>3 Configurazioni aggiuntive<\/h4>\n<p>Visto che il mio\u00a0sito sta su un server interno ma deve essere visto anche da fuori bisogna istruire l&#8217;apache sul server pubblico di ridirigere le richieste al server corretto aggiungendo le seguenti righe<\/p>\n<pre>RewriteEngine on\r\n RewriteRule ^\/Instance1$ \/Instance1\/ [R]\r\n ProxyRequests Off\r\n ProxyPreserveHost On\r\n ProxyPass \/Instance1\/ http:\/\/[Server IP]\/Instance1\/\r\n ProxyPassReverse \/Instance1\/ http:\/\/[Server IP]\/Instance1\/<\/pre>\n<p>Nota: mantieni cosistenti il parametro<strong>\u00a0Instance1\u00a0<\/strong>in tutti i vari dove&#8230; altrimenti con il proxypass si incarta&#8230;<\/p>\n<p>Con queste modifiche posso accedere dall&#8217;esterno digitando edulab.unitn.it\/Instance1\/<\/p>\n<h4>Autenticazione AD<\/h4>\n<p>SeedDms \u00e8 gi\u00e0 predisposto per autenticare gli utenti su LDAP o Active directory.<\/p>\n<p>Edita il file\u00a0\/var\/www\/Instance1\/conf\/settings.xml e modifica\u00a0come segue:<\/p>\n<pre>...\r\n&lt;authentication enableGuestLogin=\"false\" enablePasswordForgotten=\"false\" restricted=\"false\" enableUserImage=\"false\" disableSelfEdit=\"true\" passwordStrength=\"0\" passwordExpiration=\"0\" p$\r\n....\r\n&lt;connector enable=\"true\" type=\"AD\" host=\"[DomainController]\" port=\"389\" baseDN=\"OU=Unitn,DC=unitn,DC=it\" accountDomainName=\"unitn.it\"&gt;\r\n\r\n<\/pre>\n<p>nota: modificate<\/p>\n<ul>\n<li>restricted=&#8221;false&#8221; per permettere il login degli utenti LDAP\/AD<\/li>\n<li>disableSelfEdit=&#8221;true&#8221; per negare la modifica password da parte dell&#8217;utente<\/li>\n<\/ul>\n<p><span style=\"text-decoration: underline\"><span style=\"color: #ff0000;text-decoration: underline\">\u00a0Nota: capire se \u00e8 possibile filtrare per\u00a0gruppi<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installazione di SeedDMS\u00a0con: Macchina Debian 8 in container Proxmox Mysql esterno Archiviazione dei file su server nfs Autenticazione tramite Active Directory \u00a0Prerequisiti Pacchetti da installare: apache2\u00a0php5\u00a0php5-mysql php5-gd\u00a0php5-ldap\u00a0php-pear\u00a0php-http-webdav-server nfs-common zendframework poppler-utils [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,9,1],"tags":[],"class_list":["post-243","post","type-post","status-publish","format-standard","hentry","category-how-to","category-linux","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/edulab.unitn.it\/tecnici\/wp-json\/wp\/v2\/posts\/243","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/edulab.unitn.it\/tecnici\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/edulab.unitn.it\/tecnici\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/edulab.unitn.it\/tecnici\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/edulab.unitn.it\/tecnici\/wp-json\/wp\/v2\/comments?post=243"}],"version-history":[{"count":13,"href":"https:\/\/edulab.unitn.it\/tecnici\/wp-json\/wp\/v2\/posts\/243\/revisions"}],"predecessor-version":[{"id":257,"href":"https:\/\/edulab.unitn.it\/tecnici\/wp-json\/wp\/v2\/posts\/243\/revisions\/257"}],"wp:attachment":[{"href":"https:\/\/edulab.unitn.it\/tecnici\/wp-json\/wp\/v2\/media?parent=243"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/edulab.unitn.it\/tecnici\/wp-json\/wp\/v2\/categories?post=243"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/edulab.unitn.it\/tecnici\/wp-json\/wp\/v2\/tags?post=243"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}