• Resolved urchman89

    (@urchman89)


    Hi

    I recently upgraded my PHP version to 8.0, and when i try to login to my wordpress it keeps showing the error “Your PHP installation appears to be missing the MySQL extension which is required by WordPress”. I have checked an my wordpress is up to date as well. Kindly assist.

    • This topic was modified 3 years, 5 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi there,

    Create a file named ‘info.php’ containing this code:
    <?php phpinfo(); ?>
    Upload it to your website folder. Next, with your browser, type in https://yourwebsite.com/info.php and check the active PHP version and extensions

    If the php8.0-mysql extension is missing, you should add it to your server (if your website is hosted on a private server – otherwise, contact your hosting provider):

    sudo apt-get install php8.0-mysql
    Then
    sudo phpenmod php8.0-mysql

    Also, check that php8.0 module for Apache or Ngninx is active

    Finally
    sudo systemctl restart apache2 if using Apache

    • This reply was modified 3 years, 5 months ago by lucawal.
    • This reply was modified 3 years, 5 months ago by lucawal.
    Thread Starter urchman89

    (@urchman89)

    @lucawal Thanks for the response..i am a bit new to web designing so please can you tell me how and where to create the file info.php

    You have 2 options:

    1) Contact your hosting support, mention the error message, and see if they can troubleshoot the issue.
    2) Follow lucawal’s advice:
    Create the info.php file and add the suggested line of code. You can either create this file on your desktop using an application like Notepad++, and then upload it to the same directory where you find the /wp-content/ directory and wp-config.php file (amongst other directories and files), or create the file directly using the file manager in the control panel (e.g. CPanel) provided by your host. Note that when you signed up for hosting, the host should have provided you with some kind of control panel access (url, username + password) so you can access the files and folders. As you mention that you recently upgraded to php 8.0, then I perhaps you are familar with this.

    Then continue as advised above:

    … Next, with your browser, type in https://yourwebsite.com/info.php and check the active PHP version and extensions

    If the php8.0-mysql extension is missing, you should add it to your server (if your website is hosted on a private server – otherwise, contact your hosting provider):

    Thread Starter urchman89

    (@urchman89)

    @pidengmor Thank you for the response..i have done what you asked and i have checked but the PHP extension is missing…please how do i add it to my server.

    Follow the guidance above from lucawal. Use the command line to add this extension if you are running your own server, or ask the host to help if that support is available.

    Thread Starter urchman89

    (@urchman89)

    @pidengmor @lucawal I contacted my hosting company for support and they recommended that i downgrade the php version, which i did and it worked.

    Thank you all for your assistance.

    Glad it worked! We have some issues on our website with php8.0-ftm and we will sadly downgrade to 7.4…
    Please tick as resolved

    Thread Starter urchman89

    (@urchman89)

    Thanks for the help

    • This reply was modified 3 years, 5 months ago by urchman89.
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘PHP Upgrade’ is closed to new replies.