การตั้งค่า WordPress เบื้องต้น

เมื่อทำการติดตั้งและตรวจสอบ Web Server ว่าทำงานแล้ว ให้ทำการ Enable = mod_rewrite

vi /etc/httpd/conf/httpd.conf

<Directory />

AllowOverride none

AllowOverride All
Require all denied
</Directory>

<Directory “/var/www”>

AllowOverride None

AllowOverride All

Allow open access:

Require all granted
</Directory>

Install WordPress and Download

cd /var/www/html/

wget https://wordpress.org/latest.zip

[root@pds4 html]# yum install unzip

============================================================================

Package Arch Version Repository Size

Installing:
unzip x86_64 6.0-16.el7 clearos-centos 169 k

Transaction Summary

Install 1 Package

unzip latest.zip

ls -ll

drwxr-xr-x 5 root root 4096 Jun 8 21:29 wordpress

chmod -R 775 wordpress

drwxrwxr-x 5 root root 4096 Jun 8 21:29 wordpress

[root@pds4 html]# chown apache:apache wordpress

ls -ll

drwxrwxr-x 5 apache apache 4096 Jun 8 21:29 wordpress

Crate Database => itpds

cd /var/www/html/wordpress

vi  wp-config.php

// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘itpds’);

/** MySQL database username */
define(‘DB_USER’, ‘db-user’);

/** MySQL database password */
define(‘DB_PASSWORD’, ‘db-password’);

/** MySQL hostname */
define(‘DB_HOST’, ‘localhost’);

/** Database Charset to use in creating database tables. */
define(‘DB_CHARSET’, ‘utf8mb4’);

/** The Database Collate type. Don’t change this if in doubt. */
define(‘DB_COLLATE’, ”);

 

http://192.168.99.157/wordpress

[ admin – Xxx@xxx ]

 

 

 

 

Advertisements