
How to Install SeedDMS on Ubuntu
How to Install SeedDMS on Ubuntu
How to Install SeedDMS on Ubuntu

SeedDMS is an open-source document management system. In my opinion, its features are quite powerful and easy to use, but unfortunately, lack documentation. I guess the developers are too busy focusing on coding and forgetting how good documentation will help the others to install and use the application. After some trial and error, I’m finally able to install SeedDMS on my Ubuntu.
In this tutorial, I use the latest Ubuntu server 14.10 (Utopic Unicorn) which can be downloaded via Ubuntu official website here, and the latest SeedDMS (version 4.3.13 ) which can be downloaded via SourceForge here. I assume you already installed Ubuntu and are familiar with the Ubuntu environment.
SeedDMS is written in PHP and uses MySQL or sqlite3 to manage the documents that were uploaded into the application. So, basically, you will need:
- A web server that supports PHP at least PHP 5.3
- MySQL or SQLite database
- PHP packages such as PHP GD and PHP SQLite
- Several packages to convert documents into text (optional, for full-text search purposes)
- ImageMagic to create a preview image
- Zend Framework (optional, for full-text search purposes)
- Pear framework
- Pear Log package
- Pear HTTP_WebDAV package (optional)
I assume at least you have already installed Web server + PHP + MySQL on your Ubuntu installation. If you are using Ubuntu Server and intend to install it from the scratch, don’t forget to pick LAMP server packages during the installation process. In this article, I use Apache2 + PHP + SQLite combination.
Here we go:
On your Ubuntu installation, create directory /home/www-data: sudo mkdir /home/www-data
Download the following SeedDMS files from SourceForge:
SeedDMS_Lucene-1.1.5.tgz
SeedDMS_Preview-1.1.2.tgz
SeedDMS_Core-4.3.13.tgz
SeedDMS-quickstart-4.3.13.tar.gz
Put these file on /home/www-data directory
Extract seeddms-quickstart-4.3.13.tar.gz using the following command:
sudo tar -xvzf seeddms-quickstart-4.3.13.tar.gz
After this operation, you will see a new folder named seeddms43x inside /home/www-data/.
Install Pear packages: Sudo apt-get install php-pear
Install the additional package:
PHP GD and sqlite: sudo apt-get install php5-gd php5-sqlite
PDF and Doc conversion tool to text: Sudo apt-get install poppler-utils catdoc
Install SeedDMS Pear packages:
sudo pear install SeedDMS_Core-4.3.13.tgz
sudo pear install SeedDMS_Lucene-1.1.5.tgz
sudo pear install SeedDMS_Preview-1.1.2.tgz
Install additional Pear packages:
Log: sudo pear install Log
Zend: sudo pear channel-discover
zend.googlecode.com/svn: sudo pear install zend/zend
Change /home/www-data ownership
sudo chown -R www-data:www-data /home/www-data
Create an alias for Seed DMS web application using following command:
Open apache configuration file: sudo vi /etc/apache2/sites-enabled/000-default.conf
Add following lines after <virtualhost> tag and before </virtualhost> tag<Directory />Require all granted</Directory>
Alias /seeddms “/home/www-data/seeddms43x/www/“<Directory “/home/www-data/seeddms43x/www/”>DirectoryIndex index.php AllowOverride All Order deny, allow Deny from all Allow from all</Directory>
So it would be looked like this:<VirtualHost *:80>ServerAdmin webmaster@localhostDocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.logCustomLog ${APACHE_LOG_DIR}/access.log combined<Directory />Require all granted</Directory>
Alias /seeddms “/home/www-data/seeddms43x/www/”<Directory “/home/www-data/seeddms43x/www/”>DirectoryIndex index.phpAllowOverride AllOrder deny,allowDeny from allAllow from all</Directory></VirtualHost>
You can change /seeddms variable with anything you want.
Enable the mod_rewrite module by running the following command: Sudo a2enmod rewrite
Restart apache2 service: sudo service apache2 restart
Enable web-based installation tool for seed DMS by running following command: Sudo touch /home/www-data/seeddms43x/seeddms-4.3.13/conf/ENABLE_INSTALL_TOOL
Open your browser, and point it to http://[Ubuntu IP Address]/seeddms/install and follow the instructions on the screen.
Fill required information as below: Root directory -> /home/www-data/seeddms43x/www/Http Root -> /seeddms/Content directory -> /home/www-data/seeddms43x/data/Directory for full text index -> /home/www-data/seeddms43x/data/lucene/Directory for partial uploads -> /home/www-data/seeddms43x/data/staging/Extra PHP include Path -> /home/www-data/seeddms43x/pear/
Leave Database settings configuration. I assume you will use the SQLite database. If you intend to use MySQL instead, fill MySQL on Database Type text box, and fill the remaining Database settings text box according to your MySQL database configuration.
Check Create database table check box and click Apply button to create the database file for the first time.
Click Apply button again to continue.
Disable web based installation tool for seed DMS by running following command:
sudo rm /home/www-data/seeddms43x/seeddms-4.3.13/conf/ENABLE_INSTALL_TOOL
Tada.. now your SeedDMS is already installed on your Ubuntu Installation.
To begin using it, enter your SeedDMS web address on your browser:
http://[Ubuntu IP Address]/seeddms
Log in using the following credentials:
username: admin
password: admin