仮想マシンが構築された後、http://192.168.55.105/resourcespace/にアクセスして初期設定します。
Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/ubuntu-16.04"
config.vm.hostname = "ub1604resourcespace"
config.vm.provider :virtualbox do |vbox|
vbox.name = "ub1604resourcespace"
vbox.cpus = 2
vbox.memory = 2048
vbox.customize ["modifyvm", :id, "--nicpromisc2","allow-all"]
end
config.vm.network "private_network", ip: "192.168.55.105", :netmask => "255.255.255.0"
config.vm.network "public_network", ip:"192.168.1.105", :netmask => "255.255.255.0"
config.vm.provision "shell", inline: <<-SHELL
# update packages
apt-get update
#DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade
# install mysql
echo "mysql-server-5.7 mysql-server/root_password password root" | sudo debconf-set-selections
echo "mysql-server-5.7 mysql-server/root_password_again password root" | sudo debconf-set-selections
apt-get -y install mysql-server-5.7
mysql -uroot -proot -e "CREATE DATABASE resourcespace DEFAULT CHARACTER SET utf8;"
mysql -uroot -proot -e "CREATE USER resourcespace@localhost IDENTIFIED BY 'resourcespace';"
mysql -uroot -proot -e "GRANT ALL PRIVILEGES ON resourcespace.* TO 'resourcespace'@'localhost';"
mysql -uroot -proot -e "GRANT ALL PRIVILEGES ON resourcespace.* TO 'resourcespace'@'%';"
mysql -uroot -proot -e "FLUSH PRIVILEGES;"
# install ResourceSpace
echo "postfix postfix/main_mailer_type select Local only\n" \
"postfix postfix/mailname string ub1604resourcespace" | debconf-set-selections
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
mkdir /opt/resourcespace
cd /opt/resourcespace
svn co http://svn.resourcespace.com/svn/rs/releases/8.2 .
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.55.105/resourcespace/';
echo 'user: resourcespace password:resourcespace db:resourcespace'
SHELL
end
○初期設定画面1
○初期設定画面2
○初期設定画面3
○ログイン画面
○ログイン後の画面
0 件のコメント:
コメントを投稿