LoginSignup
1
1

More than 5 years have passed since last update.

CentOS7でResourceSpaceのインストールを行う

Posted at

ResouceSpaceとは

Digital Asset Management (DAM) のオープンソースソフトウェアです。
ライセンスはBSD Licenseを採用しています。

実行環境の構築

システム要件は以下URLに記載されております。
https://www.resourcespace.com/knowledge-base/systemadmin/general_requirements

今回の構築要件は以下になります。
- CentOS7.5
- Apache2.4
- PHP7.2
- MariaDB10.3
- ResourceSpace8.6

1. EPELリポジトリを追加
yum install -y epel-release
2. vimとnanoのインストール
yum install -y vim nano
3. MariaDBのインストール

vi /etc/yum.repos.d/MariaDB.repo
-------------------------
# MariaDB 10.3 CentOS repository list - created 2018-10-12 16:41 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.3/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
-------------------------

yum install -y MariaDB-server MariaDB-client
4. PHP7.2のインストール
yum install -y https://rpms.remirepo.net/enterprise/remi-release-7.rpm

vi /etc/yum.repos.d/remi-php72.repo
-------------------------
[remi-php72]
enabled=1 # 0→1に変更
-------------------------

yum install -y php php-gd php-mysqlnd php-mbstring php-opcache
5. ImageMagickのインストール
yum install -y ImageMagick ImageMagick-devel
yum install -y php72-php-pecl-imagick
6. ExifToolのインストール
yum install -y perl-Image-ExifTool
7. popplerのインストール
yum install -y poppler
8. FFmpegのインストール
yum install -y http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
yum install -y ffmpeg ffmpeg-devel
9. Subversionのインストール
yum install -y subversion
10. ResourceSpaceの取得
mkdir /var/www/resourcespace/
cd /var/www/resourcespace/
svn checkout http://svn.resourcespace.com/svn/rs/releases/8.6/ .
mkdir filestore
chmod 777 filestore/ include/
chown -R apache: /var/www/resourcespace
restorecon -R ./*
11. MariaDBにResourceSpaceのデータベースを作成
mysql -u root
-------------------------
create database `resoucespace`;
-------------------------
12. Apacheの設定を追加
vi /etc/httpd/conf.d/resourcespace.conf
-------------------------
<VirtualHost _default_:80>
  ServerName localhost
  DocumentRoot /var/www/resourcespace/
  <Directory /var/www/resourcespace/>
    AllowOverride all
    Require all granted
  </Directory>
</VirtualHost>
-------------------------
13. PHPの設定変更 (環境に合わせて修正)
vi /etc/php.ini
-------------------------
memory_limit = 1024M       # 128Mから1024M(1GB)に変更  ※ 200M以上が推奨
post_max_size = 512M       # 8Mから512Mに変更          ※ 100M以上が推奨
upload_max_filesize = 512M # 2Mから512Mに変更          ※ 100M以上が推奨
-------------------------
14. Apacheの再起動
systemctl restart httpd.service
15. ファイアウォールの通過設定
firewall-cmd --add-service=http --permanent
firewall-cmd --reload

以上で環境構築は終了です。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1