{"id":2597,"date":"2021-10-04T09:51:08","date_gmt":"2021-10-04T09:51:08","guid":{"rendered":"https:\/\/ownwebservers.com\/kb\/?p=2597"},"modified":"2021-10-04T09:51:08","modified_gmt":"2021-10-04T09:51:08","slug":"your-php-installation-appears-to-be-missing-the-mysql-extension-which-is-required-by-wordpress","status":"publish","type":"post","link":"https:\/\/ownwebservers.com\/kb\/your-php-installation-appears-to-be-missing-the-mysql-extension-which-is-required-by-wordpress\/","title":{"rendered":"Your PHP installation appears to be missing the MySQL extension which is required by WordPress"},"content":{"rendered":"<p>In this article, we are going to walk you through the steps to Fix the Error \u201c<strong>Your PHP installation seems to be missing the MySQL extension that is needed by WordPress<\/strong>\u201d<\/p>\n<p>The error indicates that the WordPress installation is unable to search out the PHP MySQL extension on the server that&#8217;s needed for database interactions. The PHP MySQL extension is deprecated and interrupted from PHP version 7.0. These days WordPress uses the PHP MySQLi extension for connecting the databases. Therefore this error means your WordPress installation is incompatible with the PHP version in your cPanel account. During this article, we are going to list out steps that you just will attempt from your side to fix this error.<\/p>\n<p><em>Example for a PHP handler entry:<\/em><\/p>\n<pre><em># php \u2013 BEGIN cPanel-generated handler, do not edit<\/em>\r\n<em># Set the \u201cea-php72\u201d package as the default \u201cPHP\u201d programming language.<\/em>\r\n<em>&lt;IfModule mime_module&gt;<\/em>\r\n<em>AddHandler application\/x-httpd-ea-php72 .php .php7 .phtml<\/em>\r\n<em>&lt;\/IfModule&gt;<\/em>\r\n<em># php \u2013 END cPanel-generated handler, do not edit<\/em><\/pre>\n<p><strong>1.In the .htaccess file Check for PHP Handler entries<\/strong><\/p>\n<p>PHP Handler entries within the .htaccess file may also cause this error on your web site. These recent PHP handler entries existing within the .htaccess file of your web site block your WordPress site from using the right PHP version and extensions configured in the server. Once the migration of your WordPress web site to a new host, it&#8217;s quite common to search out these PHP handler entries within the .htaccess file from the old hosting.<\/p>\n<p>For removing the PHP handler entries from the .htaccess file of your website, follow the steps as mention below.<\/p>\n<ul>\n<li>In your website\u2019s document root You can find this file.<\/li>\n<li>Go to cPanel For finding your website\u2019s document root and click on Domains where you will get the list of your websites.<\/li>\n<li>By clicking the directory showing the right side of your domain You can directly open your website\u2019s document root which is listed under the Document Root column.<\/li>\n<li>In the directory, navigate to the .htaccess file, choose it and click on Edit that will open a window where you can modify the file contains.<\/li>\n<\/ul>\n<p>If the issue is not fixed by removing the PHP handler entries in the .htaccess file under the document root of your website, you may also need to check for other .htaccess files in the public_html or in the home directory.<\/p>\n<p><strong>2. Older WordPress versions conflicts with PHP 7.0+ versions<\/strong><\/p>\n<p>As we tend to mentioned above, the PHP MySQL extension has deprecated and interrupted from PHP version 7.0. therefore if you&#8217;re using an older version of WordPress (that is compatible with the older versions of PHP, 5.6 or below) with PHP 7.0+ versions, you&#8217;ll get the \u201cYour PHP installation seems to be missing the MySQL extension that is needed by WordPress\u201d error. In this case, you would need to update WordPress to the latest version for fixing the difficulty.<\/p>\n<p><strong>3. Using PHP version 5.6 or below<\/strong><\/p>\n<p>If you&#8217;re exploitation PHP 5.6 or below and therefore the MySQL extension isn&#8217;t enabled, the positioning can throw the error and in this case, you would required to enable the MySQL extension via PHP selector in your cPanel interface.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we are going to walk you through the steps to Fix the Error \u201cYour PHP installation seems to be missing the MySQL extension that is needed by WordPress\u201d The error indicates that the WordPress installation is unable to search out the PHP MySQL extension on the server that&#8217;s needed for database interactions. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-2597","post","type-post","status-publish","format-standard","hentry","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v15.2.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Your PHP installation appears to be missing the MySQL extension which is required by WordPress - OWS KB<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ownwebservers.com\/kb\/your-php-installation-appears-to-be-missing-the-mysql-extension-which-is-required-by-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Your PHP installation appears to be missing the MySQL extension which is required by WordPress - OWS KB\" \/>\n<meta property=\"og:description\" content=\"In this article, we are going to walk you through the steps to Fix the Error \u201cYour PHP installation seems to be missing the MySQL extension that is needed by WordPress\u201d The error indicates that the WordPress installation is unable to search out the PHP MySQL extension on the server that&#8217;s needed for database interactions. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ownwebservers.com\/kb\/your-php-installation-appears-to-be-missing-the-mysql-extension-which-is-required-by-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"OWS KB\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-04T09:51:08+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\">\n\t<meta name=\"twitter:data1\" content=\"admin\">\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data2\" content=\"2 minutes\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"OWS KB\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/ownwebservers.com\/kb\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/your-php-installation-appears-to-be-missing-the-mysql-extension-which-is-required-by-wordpress\/#webpage\",\"url\":\"https:\/\/ownwebservers.com\/kb\/your-php-installation-appears-to-be-missing-the-mysql-extension-which-is-required-by-wordpress\/\",\"name\":\"Your PHP installation appears to be missing the MySQL extension which is required by WordPress - OWS KB\",\"isPartOf\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\"},\"datePublished\":\"2021-10-04T09:51:08+00:00\",\"dateModified\":\"2021-10-04T09:51:08+00:00\",\"author\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\"},\"breadcrumb\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/your-php-installation-appears-to-be-missing-the-mysql-extension-which-is-required-by-wordpress\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ownwebservers.com\/kb\/your-php-installation-appears-to-be-missing-the-mysql-extension-which-is-required-by-wordpress\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/your-php-installation-appears-to-be-missing-the-mysql-extension-which-is-required-by-wordpress\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/your-php-installation-appears-to-be-missing-the-mysql-extension-which-is-required-by-wordpress\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/your-php-installation-appears-to-be-missing-the-mysql-extension-which-is-required-by-wordpress\/\",\"name\":\"Your PHP installation appears to be missing the MySQL extension which is required by WordPress\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ba5db5841d48bd7517bb2583e13983e6d2fa56a4099a0b3c61ad2daefc321303?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/ownwebservers.com\/kb\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","_links":{"self":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/2597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/comments?post=2597"}],"version-history":[{"count":1,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/2597\/revisions"}],"predecessor-version":[{"id":2598,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/2597\/revisions\/2598"}],"wp:attachment":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/media?parent=2597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/categories?post=2597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/tags?post=2597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}