Wordpress Study Log

XAMPP

1
2
3
4
# check default username and password
/Applications/XAMPP/xamppfiles/xampp security
# get right privileges to install & uninstall plugins
chown -R daemon:daemon /Applications/XAMPP/htdocs/wp

GoAccess

Intro

GoAccess was designed to be a fast, terminal-based log analyzer. Its core idea is to quickly analyze and view web server statistics in real time without needing to use your browser (great if you want to do a quick analysis of your access log via SSH, or if you simply love working in the terminal).

GoAccess

Install Latest Moodle

Install PHP 7.3

1
2
3
4
5
6
7
8
9
10
11
yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm 
yum install epel-release yum-utils
yum repolist
yum-config-manager --disable remi-php54
yum-config-manager --enable remi-php73
yum install php php-cli php-fpm php-mysqlnd php-zip php-devel php-gd php-mcrypt php-mbstring php-curl php-xml php-pear php-bcmath php-json
yum install php-xmlrpc php-intl php-soap
rpm -qi php-mysqlnd
php -v
php -i | grep php.ini
php -m

Install phpMyAdmin

Install the Latest Version

If you’re using yum to install software in CentOS, most likely it is not the latest version, just like install phpMyAdmin, run yum install phpmyadmin, it will only install version 4.4, which the latest version is 5.02 at the time I’m writing this article.

XtraBackup

This article is about the procedure to hot backup and configure a replication of MySQL sever.
The configuration servers are IP with 200 as master and 64 as slave;

Preparation:

It’s a good practice to check your work station first before you do anything, you have to know as more as possible including the hardware and system limitation, so that you can get a rough idea when encountered with a problem.

1
2
3
4
5
6
7
8
9
10
11
12
13
sudo su
cat /etc/centos-release
lscpu
ifconfig
nmcli device status #list network card
TheMaster$ ping 192.168.86.64
cat /etc/resolv.conf #DNS
cat /etc/sysconfig/network #Gateway
sestatus
firewall-cmd --list-all
sudo setenforce 0
ulimit -a # Check system limitation of open files number
ulimit -n 2000000 # Probably need to set open files limit