Wordpress: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(3 intermediate revisions by one other user not shown) | |||
Line 11: | Line 11: | ||
# | # | ||
===Special Setup for Multiple | ===Special Setup for Multiple Sites=== | ||
# Add the following | # Add the following lines into wp-config.php | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
/* Multisite */ | /* Multisite */ | ||
Line 18: | Line 18: | ||
define('MULTISITE', true); | define('MULTISITE', true); | ||
define('SUBDOMAIN_INSTALL', true); | define('SUBDOMAIN_INSTALL', true); | ||
define('DOMAIN_CURRENT_SITE', ' | define('DOMAIN_CURRENT_SITE', 'mydomain.com'); | ||
define('PATH_CURRENT_SITE', '/'); | define('PATH_CURRENT_SITE', '/'); | ||
define('SITE_ID_CURRENT_SITE', 1); | define('SITE_ID_CURRENT_SITE', 1); | ||
Line 29: | Line 29: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
# | # 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
- Download the file from: WordPress
- Uncompress latest file
tar -zxvf latest.tar.gz
Apache Setup
- Setup apache to access to that directory
Special Setup for Multiple Sites
- 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', '');
- 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
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;