wget http://wordpress.org/latest.tar.gz

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

# mysql -h localhost -u root –p

  • CREATEUSER wordpress@localhost IDENTIFIEDBY“some_good_password_for_wordpress”;
  • CREATEDATABASE wordpress_blog;
  • GRANTALLON wordpress_blog.*TO wordpress@localhost;
  • FLUSH PRIVILEGES;
  • exit

Add following to /etc/httpd/conf.d/wordpress.conf file:

<VirtualHost *:8088>

ServerAdmin test@test

DocumentRoot /var/www/html/wordpress

ServerName wordpress

# Logging

ErrorLog /var/log/httpd/wordpress-error-log

CustomLog /var/log/httpd/wordpress-acces-log common

</VirtualHost>

Add following to /etc/hosts file:

127.0.0.1  wordpress

Create wp-config.php

cd/var/www/html/wordpress

cp wp-config-sample.php wp-config.php

Open wp-config.php with text editor.

define(‘DB_NAME’, ‘wordpress_blog’);

define(‘DB_USER’, ‘wordpress’);

define(‘DB_PASSWORD’, ‘some_good_password_for_wordpress’);

define(‘DB_HOST’, ‘localhost’);

define(‘DB_CHARSET’, ‘utf8’);

define(‘DB_COLLATE’, ”);

define(‘AUTH_KEY’,         ‘l_fO1Q6\P>yYfsWZ9BY7_jj;U2k&,”5do!;rR5L!~M]y_{]~me’);

define(‘SECURE_AUTH_KEY’,  ‘lOVt”rJk.rqZRUXA)VNZHs@]A1W1Zzdcb?+4y5D4″5zCYy>5lI’);

define(‘LOGGED_IN_KEY’,    ‘m8)ab[9]JO$S_;\+u0Q>e~@:VZ|N!R{u#3\NZavWZv.caQ_?GU’);

define(‘NONCE_KEY’,        ‘bu}g.6=j,6/at-lm1u2S_K>3ckX=EeI~i$?0p]zD|pO((a{b1]’);

define(‘AUTH_SALT’,        ‘#-otVokEQz9+&M0hokkKL]l*BK|c5w}bFmUZ:|=v”B:”_u^LV7’);

define(‘SECURE_AUTH_SALT’, ‘z{N*`:~6IzgL%p;#j_:8)nReK|*Cdr%#e)”F-v_VKWahLi%p\t’);

define(‘LOGGED_IN_SALT’,   ‘%BCO]d}[ag5ivSZz+[ER]sr@W}`*J6](jFtQ]h>,D<mA(TmdIS’);

define(‘NONCE_SALT’,      ‘~dMJ[e”S}c4R>7^Q)vG{Uq-):e}4I+]zsM@h#sz*7{Bnk}oa(y’);

$table_prefix  = ‘wp_’;

define (‘WPLANG’, ”);

define(‘WP_DEBUG’, false);

Open browser and Goto following address http://wordpress/ to continue installation

Edit /etc/httpd/conf

Httpd.conf

sudo setsebool -P httpd_enable_homedirs 1
sudo setsebool -P httpd_read_user_content 1

chcon -R -t httpd_sys_content_t /var/www/html

Generate unique phrases using pwgen

Install pwgen:

yum install pwgen

Generate phreses with pwgen:

pwgen -sy50