仮想マシンを構築後、ブラウザでhttp://192.168.55.105/pydio/にアクセスして診断画面、Setup Wizardで初期設定を行います。
Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/ubuntu-16.04"
config.vm.hostname = "ub1604pydio"
config.vm.provider :virtualbox do |vbox|
vbox.name = "ub1604pydio"
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 postgresql
apt-get -y install postgresql
echo "listen_addresses='*'" >> /etc/postgresql/9.5/main/postgresql.conf
echo "host all all 127.0.0.1/32 password" >> /etc/postgresql/9.5/main/pg_hba.conf
echo "host all all 192.168.1.0/24 password" >> /etc/postgresql/9.5/main/pg_hba.conf
echo "host all all 192.168.55.0/24 password" >> /etc/postgresql/9.5/main/pg_hba.conf
su - postgres << EOF
createdb -T template0 --locale=ja_JP.UTF-8 --encoding=UTF8 pydio
psql -c "
ALTER DATABASE pydio SET bytea_output = 'escape';
alter user postgres with password 'postgres';
create user pydio with password 'pydio';
grant all privileges on database pydio to pydio;
"
EOF
echo "postgres:postgres" | chpasswd
systemctl restart postgresql.service
systemctl enable postgresql.service
# 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-pgsql
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
1.インストール後の診断画面
2.Setup Wizardの画面1
3.Setup Wizardの画面2
4.Setup Wizardの画面3
5.Setup Wizardの画面4
6.Setup Wizardの画面5
7.ログイン画面
8.ログイン後の画面
0 件のコメント:
コメントを投稿