仮想マシン構築後、ブラウザからhttp://192.168.55.105/pydio/にアクセスして初期設定を行います。
Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/ubuntu-16.04"
config.vm.hostname = "ub1604pydiomysql"
config.vm.provider :virtualbox do |vbox|
vbox.name = "ub1604pydiomysql"
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
apt-get -y install unzip
locale-gen ja_JP.UTF-8
localectl set-locale LANG=ja_JP.UTF-8
# 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 pydio DEFAULT CHARACTER SET utf8;"
mysql -uroot -proot -e "CREATE USER pydio@localhost IDENTIFIED BY 'pydio';"
mysql -uroot -proot -e "GRANT ALL PRIVILEGES ON pydio.* TO 'pydio'@'localhost';"
mysql -uroot -proot -e "GRANT ALL PRIVILEGES ON pydio.* TO 'pydio'@'%';"
mysql -uroot -proot -e "FLUSH PRIVILEGES;"
# download pydio-core
wget https://download.pydio.com/pub/core/archives/pydio-core-8.0.1.tar.gz
tar xvfz pydio-core-8.0.1.tar.gz
# install apache and php
apt-get -y install php7.0 libapache2-mod-php7.0 apache2 php7.0-sqlite sqlite php7.0-gd php7.0-mcrypt php7.0-xml php7.0-intl php7.0-mysql
mv pydio-core-8.0.1/ /opt/pydio
chown -R www-data:www-data /opt/pydio
sudo ln -s /opt/pydio /var/www/html/
sed -i -e 's/output_buffering = 4096/output_buffering = off/' /etc/php/7.0/apache2/php.ini
cat << EOF >> /etc/apache2/apache2.conf
AllowOverride All
Options All
Require all granted
EOF
a2enmod rewrite
service apache2 restart
echo "access http://192.168.55.105/pydio/"
SHELL
end
〇pydioの初期設定画面1
〇pydioの初期設定画面2
〇pydioの初期設定画面3
〇pydioのスクリーンショット
0 件のコメント:
コメントを投稿