○ResourceSpaceの画面
○構築方法
1.以下のVagrantfileを使用して、ResourceSpaceとMariaDBをインストールした仮想マシンを構築します。
Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/debian-9.4"
config.vm.hostname = "db94resourcespacemariadb"
config.vm.provider :virtualbox do |vbox|
vbox.name = "db94resourcespacemariadb"
vbox.cpus = 2
vbox.memory = 4196
vbox.customize ["modifyvm", :id, "--nicpromisc2","allow-all"]
end
config.vm.network "private_network", ip: "192.168.55.101", :netmask => "255.255.255.0"
config.vm.network "public_network", ip:"192.168.1.101", :netmask => "255.255.255.0"
config.vm.provision "shell", inline: <<-SHELL
apt-get -y install task-japanese
sed -i -e 's/# ja_JP.UTF-8 UTF-8/ja_JP.UTF-8 UTF-8/' /etc/locale.gen
locale-gen
update-locale LANG=ja_JP.UTF-8
localectl set-locale LANG=ja_JP.UTF-8
localectl set-keymap jp106
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade
# install mariadb
echo "mariadb-server-10.0 mysql-server/root_password password root" | sudo debconf-set-selections
echo "mariadb-server-10.0 mysql-server/root_password_again password root" | sudo debconf-set-selections
apt-get -y install mariadb-server
mysql -uroot -e "CREATE DATABASE resourcespace DEFAULT CHARACTER SET utf8;"
mysql -uroot -e "CREATE USER resourcespace@localhost IDENTIFIED BY 'resourcespace';"
mysql -uroot -e "GRANT ALL PRIVILEGES ON resourcespace.* TO 'resourcespace'@'localhost';"
mysql -uroot -e "FLUSH PRIVILEGES;"
# install apache and php
apt-get -y install apache2-bin libapache2-mod-php7.0 php7.0-gd php7.0-mysql php7.0-mbstring php7.0-bcmath php7.0-json php7.0-snmp
apt-get -y install apache2 mysql-server php7.0 php7.0-dev php7.0-gd php7.0-mysql php-mbstring php-zip libapache2-mod-php subversion
apt-get -y install imagemagick
echo "postfix postfix/main_mailer_type string 'Local only'" | sudo debconf-set-selections
echo "postfix postfix/mailname string localhost.localdomain" | sudo debconf-set-selections
apt-get -y install ghostscript antiword xpdf libav-tools postfix libimage-exiftool-perl cron wget
sed -i -e "s/memory_limit = 128M/memory_limit = 200M/" /etc/php/7.0/apache2/php.ini
sed -i -e "s/post_max_size = 8M/post_max_size = 100M/" /etc/php/7.0/apache2/php.ini
sed -i -e "s/upload_max_filesize = 2M/upload_max_filesize = 100M/" /etc/php/7.0/apache2/php.ini
mkdir /opt/resourcespace
cd /opt/resourcespace
svn co http://svn.resourcespace.com/svn/rs/releases/8.4 .
mkdir filestore
chmod 777 filestore
chmod -R 777 include
ln -s /opt/resourcespace /var/www/html
service apache2 restart
cat << EOF >> /etc/cron.daily/resourcespace
#!/bin/sh
wget -q -r http://localhost/pages/tools/cron_copy_hitcount.php
EOF
service apache2 restart
echo 'access http://192.168.1.101/resourcespace/'
echo 'user: resourcespace password:resourcespace db:resourcespace'
SHELL
end
2.ブラウザからhttp://192.168.1.109/resourcespace/にアクセスして初期設定を行います。
MySQL Server: localhost
MySQL Username: resourcespace
MySQL Password: resourcespace
MySQL Database: resourcespace
他の項目はお好みで設定します。
0 件のコメント:
コメントを投稿