Skip to main content



Did you update your PHP and get an odd error? Have no concern, for Josh is in this article. We are going to clearly show you how to correct that pesky mistake and get your web-site jogging effectively in no time.

If you are continue to receiving the error following adhering to the actions of this video clip, you may want to look at for a .htaccess in the folder/listing previously mentioned the one where by your web page is saved. If there is a PHP handler there, disable it and it should deal with the challenge.

In this movie you’ll learn:
How to place the “MySQL Extension” Error following updating your PHP
How to locate your .htaccess file
How to make a backup of your .htaccess file
How to remark or delete what is triggering the error
How to be tremendous fired up about fixing your web page

Test out our Knowledgebase article content for much more information and facts:
How to Edit Your .htaccess File:
How to Generate a PHPinfo Webpage:
The PHP Configuration Plugin:

What versions of PHP are available on our servers? Test out this chart:

Be a part of our Web-site Entrepreneurs Neighborhood on Fb:

42 Comments

  • 1503HUSTLER says:

    Thanks Josh!

    Bro…I was freaking worried. I'm not techy at ALL. Took over a website.. thinking it would be EASY to be a webmaster. I Don't know code..or anything else. I followed the video on updating the php..then this showed up on my associations site. I was @#$+& bricks…but found this video. Hope it works will follow EXACTLY as you did. So giving you props before doing the Fix. I'm sure it will work.

  • slim bob says:

    Thank you Josh, this worked perfectly. i've been pulling my hair out all day trying to find this. thank you so much!

  • CS Stripovi says:

    every time i chat with Host Gator staff it says to me one of your plugins is causing website not to work..since i use elementor..just crazy

  • Marcio says:

    Thanks! It was the only thing that worked for me, you helped me a lot! Thank you!

  • Jam Musix says:

    When I comment the .htaccess code the php version changes from 7 to 5 which is inherited. please help.

  • I would like to contribute with this small library that allows handling programming and server errors for development environments with PHP

    https://github.com/arcanisgk/BEH-Basic-Error-Handler

  • I do not have a .htaccess in my file. Now what?

  • Wael Yasmina says:

    For people getting this error message "Use of undefined constant WP_CONTENT_DIR – assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP)…" after following this video. Go to the root "home/yourdomain" in the file manager and delete the htaccess file (again the file at the root not the one in the public_html folder).

  • That worked! Thanks!

  • Website Gang says:

    I don't have any .htacces file in any folder. What should I do?

  • Olly Powell says:

    Literally been screaming at my computer for 3 hours and this video has saved the day and Josh with his mega beard! As others have commented just check to make sure there isnt another /htaccess file somewhere else.

  • Olly Powell says:

    Literally been screaming at my computer for 3 hours and this video has saved the day and Josh with his mega beard! As others have commented just check to make sure there isnt another /htaccess file somewhere else.

  • I was going crazy for a couple of days with this PHP error message! Some sites recommended a manual WordPress update via FTP and it was a long list of steps. This solution was very easy and it worked perfectly. Thanks for posting this!!! Hostgator rocks.

  • Do I need to remove the backup .htaccess file after the edit works? I also have several hidden .htaccess-14915468 files that I didn't know if they should be removed. They are old from when we used Adobe Muse on our website.
    For our site, our .htaccess file that needed correcting was one up from my public_html so in the overall home folder.
    Thanks for your help and those that commented on what worked for them. We are up and running again! Take that Covid

  • why don't I have a .htaccess file in that location?

  • RPGlover says:

    Instead of scan and resolve issue automatically. You choose to push responsibility to the customers . You lose my trust . I have this issue for months. I work for an agency and we handle many accounts . I can't get billing account credential to contact live support for every accounts.(I only have cpanel access) This is really inconvenience. The solution you provide did work on some accounts but some didn't working . Today I contacted support on live chat(12nov). He solved that for me but I still can't do it myself for other accounts. He asked me 'Can I confirm that I have these issues for months.' This made me wonder Have you ever montitor your hosting system? Why users have to edit htaccess , search for solution or contact support 'just for upgrading php'? I went through much trouble.

  • Jason Belcik says:

    This does not work. I did not have any previous .php version written in the .htaccess file.

  • Looks like I may have to find another hosting provider since wordpress is not the only content management system in the world… You should call yourself wordpress gator or something lol (mostly in regards to the php 7.4 update)

  • PHP is going to make strict mode deprecated with the path they're taking. More code and fewer results.. kind of thinking about node.js.. when you gonna offer something there?

  • now that my sites are up to date I need to figure out how to turn the error reporting on lol

  • Alexking05 says:

    I don´t have the .htaccess in file administration. I have one called old htaccess and i don´t konw wy? i cant upgrade my PHP ·Your PHP installation appears to be missing the MySQL extension which is required by WordPress.

  • J says:

    If you don't have those lines of code he talks about in your htaccess file, "go up" a level/directory and check if there is one in that folder. God knows why, but I had another file in there with the conflicting entry

  • MiragePixel says:

    You may see some other "junk config" from very old times. If you see a "<IfModule mod_suphp.c>" section, you may want to test without this declaration. Don't forget to backup files. Of course don't forget to clean the whole file tree up to "/" (root).
    Me thinks I should get a coupon for that.

  • MVal26 says:

    Hey Josh! Followed the instructions. Works like a charm! Thanks! Nice and simple to follow. Keep it up! Thank again!

  • youssef sami says:

    I have 3 .htacess files on my website, how can if fix the same issue as the php update make changes to the default file only?
    I tried to edit the files manually but still not fixed.

  • If you are still receiving the error after following the steps of this video : PHP Startup: imagick: Unable to initialize module
    Module compiled with module API=20100525
    PHP compiled with module API=20180731
    These options need to match
    in Unknown on line 0

  • erad67 says:

    Didn't work for me. I started with just the "Your PHP installation appears to be missing the MySQL extension which is required by WordPress." error, then adding the hashtags in those places also returned a new error "Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0".

  • followed the instructions in the video. The .htacess did not even contain the old file, but I'm still getting the error message "Your PHP installation appears to be missing the MySQL extension which is required by WordPress.". It appears that something else is causing this, still can't access my sites. Not sure what to do next.

  • JandroTech says:

    Congratulations, I found another way to solve it, but the one you have used seems more accurate. Many thanks!! Great job!!

  • Thank you. That fixed it.

  • For all Hostgator shared server users seeing this video: Be aware that shortly Hostgator will remove ALL versions of PHP prior to 7.4 . Essentially this means most older sites will fail dramatically, and you'll get huge log files of warnings & messages as well. If your site is manually calling a PHP version via .htaccess, they will fail. In short – if the sites you're hosting are all modern & created sometime in the last 6 months, you should be OK. If not: you have a ton of work ahead of you. Thanks so much, HG.
    NB: One trick for Joomla users: If your site fails (it will) with a 7.4 'upgrade' with a session handler error – set session handler to 'none' rather than the default 'database'.

  • Yamina Dansa says:

    I can't see a .htaccess file in the Public html folder, how come??? So I am blocked there and cannot follow the prompts from this video any more 🙁 My issue is the following, after updated to PHP 7.4, I cannot see my website any more and get this: Your PHP installation appears to be missing the MySQL extension which is required by WordPress.

    Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0

  • Lamoureux says:

    Thanks for this video, it worked! On the other hand, WordPress keeps asking me to update my PHP, I don't understand if I did something wrong. 🤔

  • J Savannah says:

    Would have been helpful if you'd explained what "in the folder/directory above the one where your website is stored" meant. I finally figured it out. There was one that was years old in there! For any other lost souls: In the menu bar above the files, click "Up One Level" and look there.

  • pff nightmare, but finally done. I had to follow the additional instructions on the second parradraph and it was ok

  • No mames me salvaste la vida, you save my life, thanks.

  • fishtopian says:

    God I hate HostGator. I've had nothing but bad experiences with this garbage host. Needless to say this video didn't help me with my problem at all.

  • 2 web sites upgraded and 3 interactions with support via chat. Ugh. I lament that I have 2 more sites to convert.

    UPDATE: All the advice in this video is good, but I had an additional thing I had to do. I had a custom php.ini defined in version 5.4. This did not translate at all to php7.4. Make sure if you have a custom php.ini file that you back it up and delete it. Then, make your custom php.ini for the new 7.4 version.

  • I love you. you saved my life! Thanks!

Leave a Reply