WordpressOnCentos7.5

1.Setup Blog with WordPress

1.1.Reason

1.1.1.Enable my friends posting blogs too.

1.1.2.Enable post by phone.

1.2.Plan: Using same port and different DomainName

2.Update to 5.0

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
cd /home
wget https://cn.wordpress.org/wordpress-5.0-zh_CN.tar.gz
tar xzvf wordpress-5.0-zh_CN.tar.gz
rm -Rf wordpress/wp-content
chown -R nginx:nginx wordpress
\cp -r -f wordpress/* /usr/share/wordpress
vi /usr/share/wordpress/wp-config.php
#modify
#define('DB_NAME',
# define('DB_USER'
#define('DB_PASSWORD',
# $table_prefix
#---add to end
define("FS_METHOD", "direct");
define("FS_CHMOD_DIR", 0777);
define("FS_CHMOD_FILE", 0777);
#----

2.Procedure as Tencent Suggested.

3.Install mariadb, CentOS7 suggest mariadb

1
yum install mariadb mariadb-server -y

3.Install mysql-server , before CentOS7

3.1.Check repo

1
2
yum list | grep mysql
# no repo on default Tencent server

3.2.Install new repo

1
2
3
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm
sudo yum install mysql-server -y

6.php.ini

1
2
3
4
5
6
vim /etc/php.ini

upload_max_filesize = 1024M
post_max_size = 1024M

systemctl restart nginx

7. Garfunkel Theme

1
vi /usr/share/workpress/wp-content/themes/garfunkel/style.css