0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Install Wordpress

Last updated at Posted at 2020-05-02

Install MySQL 5.7

# !/usr/bin/env bash

sudo yum localinstall https://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm -y

# sudo yum install mysql-community-client -y
sudo yum install mysql-community-server -y

# https://docs.cloudera.com/documentation/enterprise/latest/topics/cm_ig_mysql.html
sudo yum install mysql-connector-java* -y
cd ~/
mkdir tools/
cd tools/
wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.46.tar.gz
tar zxvf mysql-connector-java-5.1.46.tar.gz
sudo mkdir -p /usr/share/java/
cd mysql-connector-java-5.1.46
sudo cp mysql-connector-java-5.1.46-bin.jar /usr/share/java/mysql-connector-java.jar


sudo systemctl start mysqld.service
# Get MySQL Pwd
sudo grep 'A temporary password is generated for root@localhost' /var/log/mysqld.log |tail -1
echo "Old Password:"
sudo grep 'A temporary password is generated for root@localhost' /var/log/mysqld.log |tail -1 | awk '{print $NF}'
echo "New Password:"
echo "haahahahahahahaha"
# Reset MySQL Pwd
sudo /usr/bin/mysql_secure_installation

mysql -uroot -phaahahahahahahaha --force < ~/git/ops/hwx-field-cloud/cdpdc/ranger.script.sql

# mysql -uroot -phaahahahahahahaha

# Reset mysql root password
# http://www.ihp.sinica.edu.tw/dashboard/docs/reset-mysql-password.html




# JDBC driver cannot be found. Unable to find the JDBC database jar on host
# sudo yum -y install mysql-connector-java

Install Apache2

sudo yum install httpd -y
sudo systemctl enable httpd
sudo systemctl start httpd

# Open port for お名前.com
# https://go-journey.club/archives/5103

sudo firewall-cmd --add-service=http --permanent
sudo firewall-cmd --add-service=https --permanent
systemctl restart firewalld
firewall-cmd --list-all

php

sudo yum install epel-release yum-utils -y
sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm -y
sudo yum-config-manager --enable remi-php73
sudo yum install php php-common php-opcache php-mcrypt php-cli php-gd php-curl php-mysqlnd -y

Download Wordpress

curl -O https://wordpress.org/latest.zip
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?