Add first steps for SeedDMS installation

This commit is contained in:
Disassembler 2017-06-29 21:12:51 +02:00
parent f1a3f5b933
commit afd770b659
2 changed files with 33 additions and 0 deletions

23
seeddms.sh Normal file
View File

@ -0,0 +1,23 @@
#!/bin/bash
SOURCE_DIR=$(realpath $(dirname "${0}"))
# Install dependencies for SeedDMS
apt-get --no-install-recommends install php7.0-gd php7.0-fpm php7.0-mbstring php7.0-xml
# Install SeedDMS
wget https://sourceforge.net/projects/seeddms/files/seeddms-5.0.11/seeddms-5.0.11.tar.gz/download -O /srv/seeddms-5.0.11.tar.gz
tar xf /srv/seeddms-5.0.11.tar.gz -C /srv/
mv /srv/seeddms-5.0.11 /srv/seeddms
# Create nginx app definition
cp ${SOURCE_DIR}/seeddms/etc/nginx/apps-available/seeddms /etc/nginx/apps-available/seeddms
ln -s /etc/nginx/apps-available/seeddms /etc/nginx/apps-enabled/seeddms
# Restart services
systemctl restart nginx
# TODO: Custom user
# TODO: Set cgroups
# TODO: Dependencies (both PHP and PEAR)
# TODO: Does it run on PostgeSQL or MariaDB only?

View File

@ -0,0 +1,10 @@
location /seeddms {
root /srv;
index index.php;
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_param HTTP_PROXY "";
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
}