Wordpress: Difference between revisions

From Objectif Client Inc
Jump to navigation Jump to search
No edit summary
 
(One intermediate revision by one other user not shown)
Line 12: Line 12:


===Special Setup for Multiple Sites===
===Special Setup for Multiple Sites===
# Add the following line into wp-config.php
# Add the following lines into wp-config.php
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
/* Multisite */
/* Multisite */
Line 29: Line 29:
</syntaxhighlight>
</syntaxhighlight>


# Inusre to have the special instruction configured in Apache or .htaccess
# Special instruction configured in Apache or .htaccess
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
# BEGIN WordPress
# BEGIN WordPress
Line 75: Line 75:
===Contact===
===Contact===
* Contact Form Maker
* Contact Form Maker
==Bug==
===Table 'wp_wfls_settings' doesn't exist===
<syntaxhighlight lang="sql">
CREATE TABLE IF NOT EXISTS wp_wfls_2fa_secrets (
  id int(11) unsigned NOT NULL AUTO_INCREMENT,
  user_id bigint(20) unsigned NOT NULL,
  secret tinyblob NOT NULL,
  recovery blob NOT NULL,
  ctime int(10) unsigned NOT NULL,
  vtime int(10) unsigned NOT NULL,
  mode enum('authenticator') NOT NULL DEFAULT 'authenticator',
  PRIMARY KEY (id),
  KEY user_id (user_id)
) DEFAULT CHARSET=utf8;
</syntaxhighlight>
<syntaxhighlight lang="sql">
CREATE TABLE IF NOT EXISTS wp_wfls_settings (
  name varchar(191) NOT NULL DEFAULT '',
  value longblob,
  autoload enum('no','yes') NOT NULL DEFAULT 'yes',
  PRIMARY KEY (name)
) DEFAULT CHARSET=utf8;
</syntaxhighlight>

Latest revision as of 13:34, 10 September 2019

Installation

Download

  1. Download the file from: WordPress
  2. Uncompress latest file
tar -zxvf latest.tar.gz

Apache Setup

  1. Setup apache to access to that directory

Special Setup for Multiple Sites

  1. Add the following lines into wp-config.php
/* Multisite */
define('WP_ALLOW_MULTISITE', true);
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', true);
define('DOMAIN_CURRENT_SITE', 'mydomain.com');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);

define('ADMIN_COOKIE_PATH', '/');
define('COOKIE_DOMAIN', '');
define('COOKIEPATH', '');
define('SITECOOKIEPATH', '');
  1. Special instruction configured in Apache or .htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
</IfModule>

# END WordPress

Plugin

Social

  • Facebook

SEO

  • Google Analytics Dashboard for WP
  • WordPress SEO
  • WP-Piwik

Security

  • Contact Form Maker
  • Limit Attempts
  • Wordfence Security
  • WP Security Audit Log

Locallization

  • mqTranslate

Editor

  • TinyMCE Advanced

Contact

  • Contact Form Maker

Bug

Table 'wp_wfls_settings' doesn't exist

CREATE TABLE IF NOT EXISTS wp_wfls_2fa_secrets (
  id int(11) unsigned NOT NULL AUTO_INCREMENT,
  user_id bigint(20) unsigned NOT NULL,
  secret tinyblob NOT NULL,
  recovery blob NOT NULL,
  ctime int(10) unsigned NOT NULL,
  vtime int(10) unsigned NOT NULL,
  mode enum('authenticator') NOT NULL DEFAULT 'authenticator',
  PRIMARY KEY (id),
  KEY user_id (user_id)
) DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS wp_wfls_settings (
  name varchar(191) NOT NULL DEFAULT '',
  value longblob,
  autoload enum('no','yes') NOT NULL DEFAULT 'yes',
  PRIMARY KEY (name)
) DEFAULT CHARSET=utf8;