○ResourceSpaceの画面
○構築方法
1.以下のVagrantfileを使用して、ResourceSpaceとMySQLをインストールした仮想マシンを構築します。
Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/debian-9.4"
config.vm.hostname = "db94resourcespace"
config.vm.provider :virtualbox do |vbox|
vbox.name = "db94resourcespace"
vbox.cpus = 2
vbox.memory = 2048
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 mysql
wget https://dev.mysql.com/get/mysql-apt-config_0.8.9-1_all.deb
export DEBIAN_FRONTEND=noninteractive
echo mysql-apt-config mysql-apt-config/enable-repo select mysql-5.7-dmr | sudo debconf-set-selections
dpkg -i mysql-apt-config_0.8.9-1_all.deb
apt-get update
apt-get -y install mysql-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;"
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
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 件のコメント:
コメントを投稿