Add first steps for SeedDMS installation
This commit is contained in:
parent
f1a3f5b933
commit
afd770b659
23
seeddms.sh
Normal file
23
seeddms.sh
Normal 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?
|
10
seeddms/etc/nginx/apps-available/seeddms
Normal file
10
seeddms/etc/nginx/apps-available/seeddms
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user