以下のVagrantfileを使用して、PydioとMySQLがインストールされた仮想マシン(Debian Stretch/9.3) を構築できます。
仮想マシン構築後、ブラウザからhttp://192.168.55.105/pydio/にアクセスして初期設定を行います。
Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/debian-9.3"
config.vm.hostname = "db93pydio"
config.vm.provider :virtualbox do |vbox|
vbox.name = "db93pydio"
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 pydio DEFAULT CHARACTER SET utf8;"
mysql -uroot -e "CREATE USER pydio@localhost IDENTIFIED BY 'pydio';"
mysql -uroot -e "GRANT ALL PRIVILEGES ON pydio.* TO 'pydio'@'localhost';"
mysql -uroot -e "FLUSH PRIVILEGES;"
# download pydio-core
wget https://download.pydio.com/pub/core/archives/pydio-core-8.0.2.tar.gz
tar xvfz pydio-core-8.0.2.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.2/ /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の初期設定画面4
〇Pydioの初期設定画面5
〇Pydioの初期設定画面6
〇Pydioの画面
0 件のコメント:
コメントを投稿