{"id":24292,"date":"2017-11-28T07:00:04","date_gmt":"2017-11-28T13:00:04","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=24292"},"modified":"2022-06-03T03:41:51","modified_gmt":"2022-06-03T08:41:51","slug":"wordpress-two-factor-authentication","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/wordpress-two-factor-authentication\/","title":{"rendered":"How to Set up WordPress Two-Factor Authentication"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"size-full wp-image-24381 alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/How-to-set-up-wordpress-two-factor-authentication.jpg\" alt=\"\" width=\"1200\" height=\"600\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/How-to-set-up-wordpress-two-factor-authentication.jpg 1200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/How-to-set-up-wordpress-two-factor-authentication-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/How-to-set-up-wordpress-two-factor-authentication-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/How-to-set-up-wordpress-two-factor-authentication-768x384.jpg 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/How-to-set-up-wordpress-two-factor-authentication-1024x512.jpg 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/How-to-set-up-wordpress-two-factor-authentication-860x430.jpg 860w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/How-to-set-up-wordpress-two-factor-authentication-680x340.jpg 680w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/How-to-set-up-wordpress-two-factor-authentication-500x250.jpg 500w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/How-to-set-up-wordpress-two-factor-authentication-400x200.jpg 400w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/How-to-set-up-wordpress-two-factor-authentication-200x100.jpg 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/How-to-set-up-wordpress-two-factor-authentication-50x25.jpg 50w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>In this guide we are going to provide you with step-by-step instructions on how to set up two-factor authentication on a WordPress website, hosted on <a href=\"https:\/\/www.rosehosting.com\/centos-hosting.html\">CentOS 7 VPS.<\/a> There are many two-factor authentication WordPress plugins available in the WordPress.org plugin repository, but for the purpose of this tutorial, we will install and set up the Google Authenticator plugin for WordPress.<\/p>\n<p><!--more--><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69ec7d45c8a8f\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69ec7d45c8a8f\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/wordpress-two-factor-authentication\/#1-Update-OS-packages\" >1. Update OS packages<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/wordpress-two-factor-authentication\/#2-Install-PHP-7\" >2. Install PHP 7<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/wordpress-two-factor-authentication\/#3-Create-a-new-database\" >3. Create a new database<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/wordpress-two-factor-authentication\/#4-Create-a-new-virtual-host-in-Apache\" >4. Create a new virtual host in Apache:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/wordpress-two-factor-authentication\/#5-Install-WordPress\" >5. Install WordPress<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/wordpress-two-factor-authentication\/#6-Install-Google-Authenticator-plugin\" >6. Install\u00a0Google Authenticator plugin<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/wordpress-two-factor-authentication\/#7-Verify-if-the-WordPress-Two-Factor-Authenticator-is-working\" >7. Verify if the WordPress Two-Factor\u00a0Authenticator is working<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"1-Update-OS-packages\"><\/span>1. Update OS packages<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Before starting with the installation procedure, update the server OS packages with the latest available packages by running the following commands:<\/p>\n<pre>sudo yum clean all\r\nsudo yum update<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"2-Install-PHP-7\"><\/span>2. Install PHP 7<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>CentOS 7 has PHP 5.4 installed by default. We can remove PHP 5.4 and install PHP 7.1 version. To do so, check which PHP 5.4 packages are installed on the server and remove them:<\/p>\n<pre>sudo rpm -qa | grep php\r\nphp-cli-5.4.16-42.el7.x86_64\r\nphp-pdo-5.4.16-42.el7.x86_64\r\nphp-common-5.4.16-42.el7.x86_64\r\nphp-5.4.16-42.el7.x86_64\r\nsudo yum remove php php-cli php-common php-pdo<\/pre>\n<p>Then, install PHP 7.1 version:<\/p>\n<pre>sudo rpm -Uvh https:\/\/dl.iuscommunity.org\/pub\/ius\/stable\/CentOS\/7\/x86_64\/ius-release-1.0-15.ius.centos7.noarch.rpm\r\nsudo yum update\r\nsudo yum install php71u php71u-devel php71u-gd php71u-pdo php71u-mysqlnd php71u-xml php71u-mcrypt php71u-intl php71u-mbstring php71u-json php71u-iconv php71u-opcache php71u-imap php71u-soap<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"3-Create-a-new-database\"><\/span>3. Create a new database<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre>mysql -u root -p\r\nMariaDB [(none)]&gt; CREATE DATABASE wordpress;\r\nMariaDB [(none)]&gt; GRANT ALL PRIVILEGES ON wordpress.* TO 'wordpress'@'localhost' IDENTIFIED BY 'Y0urPa55w0rd';\r\nMariaDB [(none)]&gt; flush privileges;\r\nMariaDB [(none)]&gt; quit;<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"4-Create-a-new-virtual-host-in-Apache\"><\/span>4. Create a new virtual host in Apache:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre>vi \/etc\/httpd\/conf.d\/wordpress.conf<\/pre>\n<p>Add the following lines and save the file:<\/p>\n<pre>&lt;VirtualHost *:80&gt;\r\nServerName yourdomain.com\r\nServerAlias www.yourdomain.com\r\nServerAdmin webmaster@yourdomain.com\r\nDocumentRoot \/var\/www\/html\/wordpress\/\r\n\r\n&lt;Directory \/var\/www\/html\/wordpress&gt;\r\nOptions Indexes FollowSymLinks MultiViews\r\nAllowOverride All\r\n&lt;\/Directory&gt;\r\n\r\nErrorLog \/var\/www\/html\/wordpress\/logs\/yourdomain.com_error.log\r\nCustomLog \/var\/www\/html\/wordpress\/logs\/yourdomain.com_access.log combined\r\n\r\n&lt;\/VirtualHost&gt;<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"5-Install-WordPress\"><\/span>5. Install WordPress<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Download the latest version of WordPress, and extract it on the server:<\/p>\n<pre>cd \/opt\/\r\nwget https:\/\/wordpress.org\/latest.zip \r\nunzip latest.zip\r\nmv wordpress \/var\/www\/html\/wordpress\/<\/pre>\n<p>Set proper permissions to the files and directories of\u00a0 WordPress:<\/p>\n<pre>sudo chown -R apache:apache \/var\/www\/html\/<\/pre>\n<p>Edit the PHP configuration file and add\/modify the following settings (change the timezone according to your actual timezone):<\/p>\n<pre>memory_limit = 512M\r\ndate.timezone = US\/Chicago<\/pre>\n<p>Restart the Apache service for the changes to take effect:<\/p>\n<pre>sudo systemctl restart httpd<\/pre>\n<p>Open http:\/\/yourdomain.com in your favorite web browser and follow the easy instructions to finish the WordPress installation.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"6-Install-Google-Authenticator-plugin\"><\/span>6. Install\u00a0Google Authenticator plugin<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Log in to your WordPress dashboard and install the Google Authenticator plugin by clicking on the &#8216;Add New&#8217; button from the Plugins menu, then activate it.<\/p>\n<p>Go to Users -&gt; your user (Admin) &gt;&gt; edit &gt;&gt; Google Authenticator Settings &gt;&gt; check &#8216;Active&#8217; and &#8216;Relaxed mode&#8217; &gt;&gt; Create new secret , write down the secret on a piece of paper and store it in a safe place. Then, click on the &#8216;Show QR code&#8217; button next to the &#8216;Create new secret&#8217; button and scan the generated QR code with your phone.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-24385\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/Set-up-WordPress-Two-Factor-Authentication.jpg\" alt=\"Set-up-WordPress-Two-Factor-Authentication\" width=\"488\" height=\"359\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/Set-up-WordPress-Two-Factor-Authentication.jpg 680w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/Set-up-WordPress-Two-Factor-Authentication-150x110.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/Set-up-WordPress-Two-Factor-Authentication-300x221.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/Set-up-WordPress-Two-Factor-Authentication-500x368.jpg 500w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/Set-up-WordPress-Two-Factor-Authentication-400x294.jpg 400w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/Set-up-WordPress-Two-Factor-Authentication-200x147.jpg 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/Set-up-WordPress-Two-Factor-Authentication-50x37.jpg 50w\" sizes=\"(max-width: 488px) 100vw, 488px\" \/><\/p>\n<p>Click on the &#8216;Update profile&#8217; button at the bottom of the page for the changes to take effect.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"7-Verify-if-the-WordPress-Two-Factor-Authenticator-is-working\"><\/span>7. Verify if the WordPress Two-Factor\u00a0Authenticator is working<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To test if the two-step authentication is set properly, log out from the WordPress back-end, open http:\/\/yourdomain.com\/wp-admin and enter your username, password and Google Authenticator code.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-24386\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/WordPress-two-way-authenticator-wordpress-login.jpg\" alt=\"WordPress-two-way-authenticator-wordpress-login\" width=\"450\" height=\"494\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/WordPress-two-way-authenticator-wordpress-login.jpg 450w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/WordPress-two-way-authenticator-wordpress-login-137x150.jpg 137w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/WordPress-two-way-authenticator-wordpress-login-273x300.jpg 273w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/WordPress-two-way-authenticator-wordpress-login-400x439.jpg 400w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/WordPress-two-way-authenticator-wordpress-login-200x220.jpg 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/WordPress-two-way-authenticator-wordpress-login-50x55.jpg 50w\" sizes=\"(max-width: 450px) 100vw, 450px\" \/><\/p>\n<p>That\u2019s it, your WordPress website is now using a two-factor authentication and it is a little more secure now.<\/p>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-24387\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/Google-Authenticator-for-WordPress.png\" alt=\"Google Authenticator for WordPress\" width=\"265\" height=\"162\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/Google-Authenticator-for-WordPress.png 265w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/Google-Authenticator-for-WordPress-150x92.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/Google-Authenticator-for-WordPress-200x122.png 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/Google-Authenticator-for-WordPress-50x31.png 50w\" sizes=\"(max-width: 265px) 100vw, 265px\" \/>If you use one of our <a href=\"https:\/\/www.rosehosting.com\/wordpress-hosting.html\">WordPress Hosting Services<\/a>,\u00a0 you can simply ask our expert Linux admins to enable two-factor authentication on your WordPress site for you. They are available 24&#215;7 and will take care of your request immediately.<\/p>\n<p><strong><span style=\"color: #ff0000;\">PS<\/span>.<\/strong> If you liked this post on how to set up\u00a0WordPress Two-Factor\u00a0Authenticator\u00a0 please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this guide we are going to provide you with step-by-step instructions on how to set up two-factor authentication on &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Set up WordPress Two-Factor Authentication\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/wordpress-two-factor-authentication\/#more-24292\" aria-label=\"Read more about How to Set up WordPress Two-Factor Authentication\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":24381,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1710,1703],"tags":[34,1633,1627,148],"class_list":["post-24292","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cms-crm-erp","category-security","tag-centos","tag-google","tag-two-factor-authentication","tag-wordpress","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Setup WordPress Two-Factor Authentication<\/title>\n<meta name=\"description\" content=\"In this guide we are going to provide you with step-by-step instructions on how to set up two-factor authentication on a WordPress website, on CentOS 7 VPS.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/wordpress-two-factor-authentication\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Set up WordPress Two-Factor Authentication\" \/>\n<meta property=\"og:description\" content=\"How to Set up WordPress Two-Factor Authentication | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/wordpress-two-factor-authentication\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2017-11-28T13:00:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:41:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/How-to-set-up-wordpress-two-factor-authentication.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wordpress-two-factor-authentication\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wordpress-two-factor-authentication\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Set up WordPress Two-Factor Authentication\",\"datePublished\":\"2017-11-28T13:00:04+00:00\",\"dateModified\":\"2022-06-03T08:41:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wordpress-two-factor-authentication\\\/\"},\"wordCount\":467,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wordpress-two-factor-authentication\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/11\\\/How-to-set-up-wordpress-two-factor-authentication.jpg\",\"keywords\":[\"centos\",\"google\",\"two-factor authentication\",\"wordpress\"],\"articleSection\":[\"CMS, CRM, ERP\",\"Security\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wordpress-two-factor-authentication\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wordpress-two-factor-authentication\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wordpress-two-factor-authentication\\\/\",\"name\":\"How to Setup WordPress Two-Factor Authentication\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wordpress-two-factor-authentication\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wordpress-two-factor-authentication\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/11\\\/How-to-set-up-wordpress-two-factor-authentication.jpg\",\"datePublished\":\"2017-11-28T13:00:04+00:00\",\"dateModified\":\"2022-06-03T08:41:51+00:00\",\"description\":\"In this guide we are going to provide you with step-by-step instructions on how to set up two-factor authentication on a WordPress website, on CentOS 7 VPS.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wordpress-two-factor-authentication\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wordpress-two-factor-authentication\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wordpress-two-factor-authentication\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/11\\\/How-to-set-up-wordpress-two-factor-authentication.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/11\\\/How-to-set-up-wordpress-two-factor-authentication.jpg\",\"width\":1200,\"height\":600},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wordpress-two-factor-authentication\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Set up WordPress Two-Factor Authentication\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Setup WordPress Two-Factor Authentication","description":"In this guide we are going to provide you with step-by-step instructions on how to set up two-factor authentication on a WordPress website, on CentOS 7 VPS.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/wordpress-two-factor-authentication\/","og_locale":"en_US","og_type":"article","og_title":"How to Set up WordPress Two-Factor Authentication","og_description":"How to Set up WordPress Two-Factor Authentication | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/wordpress-two-factor-authentication\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2017-11-28T13:00:04+00:00","article_modified_time":"2022-06-03T08:41:51+00:00","og_image":[{"width":1200,"height":600,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/How-to-set-up-wordpress-two-factor-authentication.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/wordpress-two-factor-authentication\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/wordpress-two-factor-authentication\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Set up WordPress Two-Factor Authentication","datePublished":"2017-11-28T13:00:04+00:00","dateModified":"2022-06-03T08:41:51+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/wordpress-two-factor-authentication\/"},"wordCount":467,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/wordpress-two-factor-authentication\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/How-to-set-up-wordpress-two-factor-authentication.jpg","keywords":["centos","google","two-factor authentication","wordpress"],"articleSection":["CMS, CRM, ERP","Security"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/wordpress-two-factor-authentication\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/wordpress-two-factor-authentication\/","url":"https:\/\/www.rosehosting.com\/blog\/wordpress-two-factor-authentication\/","name":"How to Setup WordPress Two-Factor Authentication","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/wordpress-two-factor-authentication\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/wordpress-two-factor-authentication\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/How-to-set-up-wordpress-two-factor-authentication.jpg","datePublished":"2017-11-28T13:00:04+00:00","dateModified":"2022-06-03T08:41:51+00:00","description":"In this guide we are going to provide you with step-by-step instructions on how to set up two-factor authentication on a WordPress website, on CentOS 7 VPS.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/wordpress-two-factor-authentication\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/wordpress-two-factor-authentication\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/wordpress-two-factor-authentication\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/How-to-set-up-wordpress-two-factor-authentication.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/11\/How-to-set-up-wordpress-two-factor-authentication.jpg","width":1200,"height":600},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/wordpress-two-factor-authentication\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Set up WordPress Two-Factor Authentication"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/24292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=24292"}],"version-history":[{"count":1,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/24292\/revisions"}],"predecessor-version":[{"id":41849,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/24292\/revisions\/41849"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/24381"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=24292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=24292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=24292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}