Title: PHP Upgrade
Last modified: October 15, 2021

---

# PHP Upgrade

 *  Resolved [urchman89](https://wordpress.org/support/users/urchman89/)
 * (@urchman89)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/php-upgrade-13/)
 * 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 4 years, 10 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Moved to Fixing WordPress, this is not an Everything else WordPress
      topic
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-upgrade-13%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [lucawal](https://wordpress.org/support/users/lucawal/)
 * (@lucawal)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/php-upgrade-13/#post-14974420)
 * 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 [http://yourwebsite.com/info.php](http://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 4 years, 10 months ago by [lucawal](https://wordpress.org/support/users/lucawal/).
    -  This reply was modified 4 years, 10 months ago by [lucawal](https://wordpress.org/support/users/lucawal/).
 *  Thread Starter [urchman89](https://wordpress.org/support/users/urchman89/)
 * (@urchman89)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/php-upgrade-13/#post-14975660)
 * [@lucawal](https://wordpress.org/support/users/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
 *  [barnez](https://wordpress.org/support/users/pidengmor/)
 * (@pidengmor)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/php-upgrade-13/#post-14976032)
 * 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++](https://notepad-plus-plus.org/downloads/v8.1.7/),
   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 [http://yourwebsite.com/info.php](http://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](https://wordpress.org/support/users/urchman89/)
 * (@urchman89)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/php-upgrade-13/#post-14976097)
 * [@pidengmor](https://wordpress.org/support/users/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.
 *  [barnez](https://wordpress.org/support/users/pidengmor/)
 * (@pidengmor)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/php-upgrade-13/#post-14976535)
 * 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](https://wordpress.org/support/users/urchman89/)
 * (@urchman89)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/php-upgrade-13/#post-14977302)
 * [@pidengmor](https://wordpress.org/support/users/pidengmor/) [@lucawal](https://wordpress.org/support/users/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.
 *  [lucawal](https://wordpress.org/support/users/lucawal/)
 * (@lucawal)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/php-upgrade-13/#post-14979016)
 * 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](https://wordpress.org/support/users/urchman89/)
 * (@urchman89)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/php-upgrade-13/#post-14980044)
 * Thanks for the help
    -  This reply was modified 4 years, 10 months ago by [urchman89](https://wordpress.org/support/users/urchman89/).

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘PHP Upgrade’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 3 participants
 * Last reply from: [urchman89](https://wordpress.org/support/users/urchman89/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/php-upgrade-13/#post-14980044)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
