![]() ![]() ![]() In the later Ubuntu operating systems, MySQL’s native drivers are used instead of the old PHP libraries. Missing php-mysqlnd-ms packages in Ubuntu servers If you have a custom configuration file, it is best to comment out the lines that have the following:Ĥ. We’ve seen typing mistakes and wrong extension directory paths put in the custom configuration files. These files will not be automatically updated by system programs during an upgrade or a migration. Some websites have custom configured PHP configuration (php.ini) files. Wrong file name/path for MySQL.so or MySQL.DLL ![]() If you are not sure, just comment the line, and restart the web server. It should either be commented, or it should have the correct path to PHP extensions. Now, look for the entry called “ extension_dir“. The file path noted there is the actual location to the PHP configuration file. Look for the line called “Loaded Configuration File”. For this, put the following code into a file called info.php, and access it from a browser. To fix this, first locate which PHP.ini file is being loaded by your website. This directory stores all the PHP libraries, and if not set correctly, PHP cannot execute those functions. In some websites, especially those that were recently migrated, or in a newly setup VPS, the “ extension_dir” is sometimes misconfigured. In RedHat compatible servers, use the command:Ģ. If not, you may have to install MySQL extensions. It should show a MySQL section like this: To check if your PHP has MySQL support, put the following code into a file called info.php in your site, and access it from a browser. In some default operating system setup, this extension might not be present. PHP’s ability to send SQL commands to MySQL comes from an additional module called MySQL extension. Today we’ll take a look at the top 5 reasons for this error, and how to fix them. In these sites, this error usually comes up after a recent migration: Your PHP installation appears to be missing the MySQL extension which is required by WordPress. Support Engineers at Bobcares manage thousands of WordPress sites of web designers, digital marketers, online publishers, web hosts and more. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |