Difference between revisions of "WordPress"
From Christoph's Personal Wiki
(→External links) |
|||
Line 2: | Line 2: | ||
I am using this application for [http://blog.christophchamp.com/ my personal blog]. | I am using this application for [http://blog.christophchamp.com/ my personal blog]. | ||
+ | |||
+ | ==Install WordPress== | ||
+ | ''Note: This install is for CentOS 7'' | ||
+ | |||
+ | mysql -u root -p | ||
+ | mysql> CREATE DATABASE wordpress; | ||
+ | mysql> CREATE USER wp_user@localhost IDENTIFIED BY 'password'; | ||
+ | mysql> GRANT ALL PRIVILEGES ON wordpress.* TO 'wp_user'@'localhost' IDENTIFIED BY 'password'; | ||
+ | mysql> FLUSH PRIVILEGES; | ||
+ | mysql> exit | ||
+ | |||
+ | sudo yum install php-gd | ||
+ | sudo systemctl restart httpd.service | ||
+ | cd ~ | ||
+ | wget <nowiki>http://wordpress.org/latest.tar.gz</nowiki> | ||
+ | tar zxvf latest.tag.gz | ||
+ | sudo rsync -avP ~/wordpress/ /var/www/html/ | ||
+ | mkdir /var/www/html/wp-content/uploads | ||
+ | sudo chown -R apache:apache /var/www/html/* | ||
+ | cd /var/www/html | ||
+ | |||
+ | # Configure: | ||
+ | cp wp-config-sample.php wp-config.php | ||
+ | wp-config.php | ||
+ | |||
+ | <pre> | ||
+ | /** The name of the database for WordPress */ | ||
+ | define('DB_NAME', 'wordpress'); | ||
+ | |||
+ | /** MySQL database username */ | ||
+ | define('DB_USER', 'wp_user'); | ||
+ | |||
+ | /** MySQL database password */ | ||
+ | define('DB_PASSWORD', 'password'); | ||
+ | </pre> | ||
+ | |||
+ | Complete the installation via a web browser using you server's IP. | ||
==External links== | ==External links== |
Revision as of 00:07, 27 August 2016
WordPress is a blog publishing system written in PHP and backed by a MySQL database.
I am using this application for my personal blog.
Install WordPress
Note: This install is for CentOS 7
mysql -u root -p mysql> CREATE DATABASE wordpress; mysql> CREATE USER wp_user@localhost IDENTIFIED BY 'password'; mysql> GRANT ALL PRIVILEGES ON wordpress.* TO 'wp_user'@'localhost' IDENTIFIED BY 'password'; mysql> FLUSH PRIVILEGES; mysql> exit
sudo yum install php-gd sudo systemctl restart httpd.service cd ~ wget http://wordpress.org/latest.tar.gz tar zxvf latest.tag.gz sudo rsync -avP ~/wordpress/ /var/www/html/ mkdir /var/www/html/wp-content/uploads sudo chown -R apache:apache /var/www/html/* cd /var/www/html
# Configure: cp wp-config-sample.php wp-config.php wp-config.php
/** The name of the database for WordPress */ define('DB_NAME', 'wordpress'); /** MySQL database username */ define('DB_USER', 'wp_user'); /** MySQL database password */ define('DB_PASSWORD', 'password');
Complete the installation via a web browser using you server's IP.