• I have a domain that is running two WordPress installations.

    One of them works just fine.

    The other one says: “Your PHP installation appears to be missing the MySQL extension which is required by WordPress” when I try to login to admin.

    Because the same domain is running another installation of wordpress just fine it appears that the MySQL extension is in fact installed.

    I am looking for a little guidance on how to resolve it. My research hasn’t pulled up anything that helped because some installations are working just fine.

    I do not see a separate php.ini file for the blog that is not working.

    I think it is running the latest wordpress version but I am not 100% sure because I can’t login.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Do you have two separate databases linked to your two separate sites?

    Thread Starter lwatkins

    (@lwatkins)

    Yes. Two separate databases.

    Try doing the following test:

    Download:
    https://github.com/AzizSaleh/mysql

    Extract it to a folder: X. Create a new file: wp-content/db.php and place this code in it (update pathToMySQL with path to your extracted folder X):

    <?php
    $pathToMySQL = 'C:\\xampp\\htdocs\\mysql\\';
    require_once($pathToMySQL . 'MySQL_Definitions.php');
    require_once($pathToMySQL . 'MySQL.php');
    require_once($pathToMySQL . 'MySQL_Functions.php');

    If that works, then this means that the admin section is running under a different PHP which doesn’t have pdo_mysql.so enabled.

    If so, create a new php file in your admin section (call it php.info.php) and place in it:

    <?php
    phpinfo();

    Then access that page and look for: Loaded Configuration File, which will give you the location of the php.ini it is using, which you will need to modify and uncomment:

    extension=php_mysql.dll

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Installation with Multiple Blog Website’ is closed to new replies.