インストール後、ブラウザからhttp://192.168.55.103/tiki/にアクセスして初期設定を行います。
Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/centos-7.4"
config.vm.hostname = "co74tiki"
config.vm.provider :virtualbox do |vbox|
vbox.name = "co74tiki"
vbox.cpus = 2
vbox.memory = 1024
vbox.customize ["modifyvm", :id, "--nicpromisc2","allow-all"]
end
config.vm.network "private_network", ip: "192.168.55.103", :netmask => "255.255.255.0"
config.vm.network "public_network", ip:"192.168.1.103", :netmask => "255.255.255.0"
config.vm.provision "shell", inline: <<-SHELL
yum -y install epel-release
# mysqlのインストール
sudo yum -y remove mariadb-libs
yum -y localinstall http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm
yum -y install mysql mysql-devel mysql-server mysql-utilities
sudo systemctl enable mysqld.service
sudo systemctl start mysqld.service
# change password and create users and databases.
chkconfig mysqld on
service mysqld start
export MYSQL_ROOTPWD='Root123#'
export MYSQL_PWD=`cat /var/log/mysqld.log | awk '/temporary password/ {print $NF}'`
mysql -uroot --connect-expired-password -e "SET PASSWORD = PASSWORD('$MYSQL_ROOTPWD');"
export MYSQL_PWD=$MYSQL_ROOTPWD
export MYSQL_ROOTPWD='root'
mysql -uroot --connect-expired-password -e "UNINSTALL PLUGIN validate_password;"
mysql -uroot --connect-expired-password -e "SET PASSWORD = PASSWORD('$MYSQL_ROOTPWD');"
mysql -uroot --connect-expired-password -e "CREATE DATABASE tiki DEFAULT CHARACTER SET utf8;"
export MYSQL_PWD=$MYSQL_ROOTPWD
mysql -uroot --connect-expired-password -e "CREATE USER tiki@localhost IDENTIFIED BY 'tiki';"
mysql -uroot --connect-expired-password -e "GRANT ALL PRIVILEGES ON tiki.* TO 'tiki'@'localhost';"
cp /etc/my.cnf /etc/my.cnf.org
cat << EOF > /etc/my.cnf
[client]
port = 3306
socket = /var/lib/mysql/mysql.sock
default-character-set=utf8
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
bind-address = 0.0.0.0
port = 3306
key_buffer_size = 256M
max_allowed_packet = 16M
table_open_cache = 16
innodb_buffer_pool_size = 512M
innodb_log_file_size = 32M
sort_buffer_size = 8M
read_buffer_size = 8M
read_rnd_buffer_size = 8M
join_buffer_size = 8M
thread_stack = 4M
character-set-server=utf8
lower_case_table_names = 1
innodb_lock_wait_timeout=120
skip-innodb-doublewrite
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
EOF
systemctl stop mysqld.service
ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
sudo systemctl start mysqld.service
# PHP5.5のインストール
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yum -y install --enablerepo=remi,remi-php55 php php-devel php-mbstring php-pdo php-gd php-xml php-mcrypt php-mysql
# Tikiのインストール
wget https://sourceforge.net/projects/tikiwiki/files/Tiki_15.x_Situla/15.5/tiki-15.5.tar.gz
tar xvfz tiki-15.5.tar.gz
mv tiki-15.5 /opt/tiki
chown -R apache:apache /opt/tiki
ln -s /opt/tiki /var/www/html
cd /opt/tiki
systemctl start httpd
echo 'access to http://192.168.55.103/tiki/';
SHELL
end
○初期設定画面1
○初期設定画面2
○初期設定画面3
○初期設定画面4
○初期設定画面5
○初期設定画面6
○初期設定画面7
○初期設定画面8
○初期設定画面9
○初期設定画面10
0 件のコメント:
コメントを投稿