Php - Your PHP installation appears to be missing the MySQL extension which is required by WordPress

前端 未结 25 1366
死守一世寂寞
死守一世寂寞 2020-11-28 08:48

How do I fix the error below?

Your PHP installation appears to be missing the MySQL extension which is required by WordPress.

I

25条回答
  •  孤街浪徒
    2020-11-28 09:11

    I have resolved the issue just adding following code in .htaccess file. I hope this will work for you guys also.

    Step 1: Change the PHP version form the server.

    Step 2: Add the following code in your .htaccess file according to your PHP version (Selected from the server).

    To switch to PHP 4.4:

    AddHandler application/x-httpd-php4 .php
    

    To switch to PHP 5.0:

    AddHandler application/x-httpd-php5 .php
    

    To switch to PHP 5.1:

    AddHandler application/x-httpd-php51 .php
    

    To switch to PHP 5.2:

    AddHandler application/x-httpd-php52 .php
    

    To switch to PHP 5.3:

    AddHandler application/x-httpd-php53 .php
    

    To switch to PHP 5.4:

    AddHandler application/x-httpd-php54 .php
    

    To switch to PHP 5.5:

    AddHandler application/x-httpd-php55 .php
    

    To switch to PHP 5.6:

    AddHandler application/x-httpd-php56 .php
    

    To switch to PHP 7:

    AddHandler application/x-httpd-php7 .php
    

    To switch to PHP 7.1:

    AddHandler application/x-httpd-php71 .php 
    

提交回复
热议问题