WordPress

Установка WordPress на RHEL, CentOS и Fedora

Установка WordPress на RHEL, CentOS & Fedora

Шаг 1: Загрузка WordPress

# cd /tmp
# wget http://wordpress.org/latest.tar.gz

Шаг 2: Распаковка WordPress

# tar -xvzf latest.tar.gz -C /var/www/html

Шаг 3: Создаем базу MySQL

## Connect to MySQL Server & Enter Password (if any or leave blank)##
mysql -u root -p
Enter password:

## Creating New User for WordPress Database ##
CREATE USER wordpress@localhost IDENTIFIED BY "your_password_here";

## Create New Database ##
create database wordpress;

## Grant Privileges to Database ##
GRANT ALL ON wordpress.* TO wordpress@localhost;

## FLUSH privileges ##
FLUSH PRIVILEGES;

## Exit ##
exit

Шаг 4: Установка WordPress

# cd /var/www/html/wordpress
# cp wp-config-sample.php wp-config.php
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', 'database_name_here');

/** MySQL database username */
define('DB_USER', 'username_here');

/** MySQL database password */
define('DB_PASSWORD', 'password_here');

/** MySQL hostname */
define('DB_HOST', 'localhost');

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');

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

Шаг 6: Завершение установки WordPress
Открываем браузер и переходим по адресу:
http://localhost