仮想マシンを構築後、ブラウザからhttp://192.168.1.105/humhub/にアクセスして初期設定を行います。
Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/ubuntu-16.04"
config.vm.hostname = "ub1604humhub"
config.vm.provider :virtualbox do |vbox|
vbox.name = "ub1604humhub"
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
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 humhub DEFAULT CHARACTER SET utf8;"
mysql -uroot -proot -e "CREATE USER humhub@localhost IDENTIFIED BY 'humhub';"
mysql -uroot -proot -e "GRANT ALL PRIVILEGES ON humhub.* TO 'humhub'@'localhost';"
mysql -uroot -proot -e "GRANT ALL PRIVILEGES ON humhub.* TO 'humhub'@'%';"
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-intl
# install humhub
wget -O v1.2.3.tar.gz 'https://www.humhub.org/en/download/start?version=1.2.3&type=tar.gz&ee=0'
tar xvfz v1.2.3.tar.gz
mv humhub-1.2.3 /opt/humhub
chown -R www-data:www-data /opt/humhub
ln -s /opt/humhub /var/www/html
service apache2 restart
echo 'access http://192.168.1.105/humhub/'
echo 'db user:humhub password:humhub db:humhub'
SHELL
end
〇初期設定画面1
〇初期設定画面2
〇初期設定画面3
〇初期設定画面4
〇初期設定画面5
〇初期設定画面6
〇初期設定画面7
〇初期設定画面8
〇ログイン画面
〇HumHub画面
0 件のコメント:
コメントを投稿