Difference between revisions of "WordPress"

From Christoph's Personal Wiki
Jump to: navigation, search
(Install WordPress)
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
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].
  
== External links ==
+
==Install WordPress==
* [http://www.wordpress.org Official site]
+
''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
 +
vi wp-config.php  # edit the following:
 +
 
 +
<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==
 +
*[http://www.wordpress.org Official site]
 +
===Tips and tricks===
 +
*[http://www.vioan.ro/wp/2007/09/02/automatically-upgrade-your-wordpress/ Automatically Upgrade Your Wordpress]
  
 
[[Category:World Wide Web]]
 
[[Category:World Wide Web]]

Latest revision as of 20:35, 29 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
vi wp-config.php  # edit the following:
/** 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.

External links

Tips and tricks