仮想マシン構築後、ブラウザでhttp://192.168.1.107/limeservey/にアクセスして初期設定を行います。
データベースの設定では、MySQLを指定し、データベース・ユーザ名・パスワードともlimeserveyを入力します。
Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/ubuntu-16.04"
config.vm.hostname = "ub1604limeservey"
config.vm.provider :virtualbox do |vbox|
vbox.name = "ub1604limeservey"
vbox.cpus = 2
vbox.memory = 2048
vbox.customize ["modifyvm", :id, "--nicpromisc2","allow-all"]
end
config.vm.network "private_network", ip: "192.168.55.107", :netmask => "255.255.255.0"
config.vm.network "public_network", ip:"192.168.1.107", :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
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 limeservey DEFAULT CHARACTER SET utf8;"
mysql -uroot -proot -e "CREATE USER limeservey@localhost IDENTIFIED BY 'limeservey';"
mysql -uroot -proot -e "GRANT ALL PRIVILEGES ON limeservey.* TO 'limeservey'@'localhost';"
mysql -uroot -proot -e "GRANT ALL PRIVILEGES ON limeservey.* TO 'limeservey'@'%';"
mysql -uroot -proot -e "FLUSH PRIVILEGES;"
apt-get -y install apache2 libapache2-mod-php7.0
apt-get -y install php7.0-gd php7.0-json php7.0-mysql php7.0-pdo php7.0-curl php7.0-mbstring
apt-get -y install php7.0-mcrypt php7.0-xml php7.0-zip php7.0-gd php7.0-zip
# install limeservey
wget https://github.com/LimeSurvey/LimeSurvey/archive/2.72.2+171017.tar.gz
tar xvfz 2.72.2+171017.tar.gz
mv LimeSurvey-2.72.2-171017 /opt/limeservey
chown -R www-data:www-data /opt/limeservey
ln -s /opt/limeservey /var/www/html
systemctl reload apache2.service
echo 'access http://192.168.1.107/limeservey/';
echo 'db:limeservey user:limeservey password:limeservey'
SHELL
end
○初期設定1
○初期設定2
○初期設定3
○初期設定4
○初期設定5
○初期設定6
○初期設定7
○ログイン画面
○LimeServeyの画面
0 件のコメント:
コメントを投稿