|
|
b99791f |
-------------------------------------------------------------------------------
|
|
|
b99791f |
|
|
John Berninger |
c5aff79 |
Wordpress is a database driven blogging program designed to make it exceedingly
|
|
John Berninger |
c5aff79 |
easy to publish an online blog, sometimes also called a weblog or journal.
|
|
John Berninger |
c5aff79 |
|
|
John Berninger |
c5aff79 |
Once this package is installed, there are a few configuration items which need
|
|
John Berninger |
c5aff79 |
to be performed before the blog is usable. First, you need to establish a
|
|
John Berninger |
c5aff79 |
username and password to connect to your MySQL database as, and make both
|
|
John Berninger |
c5aff79 |
MySQL and Wordpress aware of this. Let's start by creating the database and the
|
|
John Berninger |
c5aff79 |
username / password inside MySQL first:
|
|
John Berninger |
c5aff79 |
|
|
John Berninger |
c5aff79 |
# mysql
|
|
John Berninger |
c5aff79 |
mysql> create database wordpress;
|
|
John Berninger |
c5aff79 |
Query OK, 1 row affected (0.00 sec)
|
|
John Berninger |
c5aff79 |
|
|
John Berninger |
c5aff79 |
mysql> grant all privileges on wordpress.* to wordpress identified by 'wordpress';
|
|
John Berninger |
c5aff79 |
Query OK, 0 rows affected (0.00 sec)
|
|
John Berninger |
c5aff79 |
|
|
John Berninger |
c5aff79 |
mysql> flush privileges;
|
|
John Berninger |
c5aff79 |
Query OK, 0 rows affected (0.00 sec)
|
|
John Berninger |
c5aff79 |
|
|
John Berninger |
c5aff79 |
mysql> exit
|
|
John Berninger |
c5aff79 |
Bye
|
|
John Berninger |
c5aff79 |
#
|
|
John Berninger |
c5aff79 |
|
|
John Berninger |
63cf95b |
Under certain curcumstances, you may need to run variations of the "grant"
|
|
John Berninger |
63cf95b |
command:
|
|
John Berninger |
63cf95b |
mysql> grant all privileges on wordpress.* to wordpress@localhost identified by 'wordpress';
|
|
John Berninger |
63cf95b |
OR
|
|
John Berninger |
63cf95b |
mysql> grant all privileges on wordpress.* to wordpress@'%' identified by 'wordpress';
|
|
John Berninger |
63cf95b |
|
|
John Berninger |
c5aff79 |
This has created an empty database called 'wordpress', created a user named
|
|
John Berninger |
c5aff79 |
'wordpress' with a password of 'wordpress', and given the 'wordpress' user total
|
|
John Berninger |
c5aff79 |
permission over the 'wordpress' database. Obviously, you'll want to select a
|
|
John Berninger |
c5aff79 |
different password, and you may want to choose different database and user
|
|
John Berninger |
c5aff79 |
names depending on your installation. The specific values you choose are
|
|
John Berninger |
c5aff79 |
not constrained, they simply need to be consistent between the database and the
|
|
John Berninger |
c5aff79 |
config file.
|
|
John Berninger |
c5aff79 |
|
|
John Berninger |
c5aff79 |
Next, you need to edit your /etc/wordpress/wp-config.php file to reflect the
|
|
John Berninger |
c5aff79 |
values you've chosen. These values will go in the appropriate places at the
|
|
John Berninger |
c5aff79 |
beginning of that file.
|
|
John Berninger |
c5aff79 |
|
|
John Berninger |
c5aff79 |
Once that's done and the database server and web server have been started,
|
|
John Berninger |
c5aff79 |
open a web browser to http://localhost/wordpress/wp-admin/install.php and
|
|
John Berninger |
c5aff79 |
follow the instructions given to you on the pages you see to set up the
|
|
John Berninger |
c5aff79 |
database tables and begin publishing your blog.
|
|
|
f1fa233 |
|
|
|
b99791f |
-------------------------------------------------------------------------------
|
|
|
b99791f |
|
|
|
f1fa233 |
Wordpress ships with Flash and Silverlight plugins for the 'plupload' file
|
|
|
f1fa233 |
uploader and the 'mediaelement' media player embedder. The idea is to try and
|
|
|
f1fa233 |
be able to provide a multi-file uploader and an embedded video player when
|
|
|
f1fa233 |
HTML5 is not available (or does not support the video format in question).
|
|
|
f1fa233 |
These plugins are provided as pre-built binaries and there is no mechanism
|
|
|
f1fa233 |
for building them from source during Wordpress compilation. As the inclusion
|
|
|
f1fa233 |
of pre-built binaries is against Fedora policy - see
|
|
|
f1fa233 |
https://fedoraproject.org/wiki/Packaging:Guidelines#No_inclusion_of_pre-built_binaries_or_libraries
|
|
|
f1fa233 |
- these plugins have been removed from the Fedora package. As a consequence:
|
|
|
f1fa233 |
|
|
|
f1fa233 |
a) any Wordpress element or plugin that uses the 'plupload' will only present
|
|
|
f1fa233 |
an HTML5-based multi-file uploader if HTML5 is supported by the user's browser
|
|
|
f1fa233 |
or an HMTL4-based single-file uploader in HTML5 is not supported. No Flash
|
|
|
f1fa233 |
or Silverlight-based multi-file uploader will be provided.
|
|
|
f1fa233 |
|
|
|
f1fa233 |
b) If you try to embed media into a Wordpress post using the [video] and
|
|
|
f1fa233 |
[audio] short tags, the media player will be visible if the reader is using
|
|
|
f1fa233 |
a browser that has HTML5 support for the media format in question; if not, the
|
|
|
f1fa233 |
'Download Media' link will be offered. No Flash or Silverlight-based player
|
|
|
f1fa233 |
element will be included.
|
|
|
b99791f |
|
|
|
b99791f |
-------------------------------------------------------------------------------
|
|
|
b99791f |
|
|
|
b99791f |
Optional dependencies:
|
|
|
b99791f |
|
|
|
b99791f |
You may wish to install the following packages:
|
|
|
b99791f |
|
|
|
b99791f |
php-pecl-imagick: optimize image transformation
|
|
|
b99791f |
php-pecl-ssh2: for file transfert using ssh
|
|
|
b99791f |
|
|
|
b99791f |
An opcode cache is also recommended:
|
|
|
b99791f |
php 5.5: php-opcache
|
|
|
b99791f |
php 5.4: php-pecl-zendopcache
|
|
|
b99791f |
php 5.3: php-pecl-apc
|
|
|
b99791f |
|
|
|
b99791f |
-------------------------------------------------------------------------------
|