• Resolved wordpressstruggle

    (@wordpressstruggle)


    Hi, I’m just installing WordPress on Redhat Enterprise Linux version 7.2 using Apache 2.4.6, MySQL 5.7.16 and PHP version 7.0.10.

    I have sudo/root access to this server.

    I’ve been following the instructions at https://codex.www.ads-software.com/Installing_WordPress using /var/www/html/ as the directory where I extracted all the WordPress files to. I also set up a wp-config.php file as instructed, and used https://api.www.ads-software.com/secret-key/1.1/salt/ for the auth keys/salts.

    However, when I go to https://MYWEBSITE.COM/wp-admin/install.php, I get an error that reads:

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

    So I tried deleting wp-config.php, but I still get the same error.

    Here is a list of my PHP modules related to MySQL:

    $ php -m | grep sql
    pdo_pgsql
    pdo_sqlite
    pgsql
    sqlite3
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter wordpressstruggle

    (@wordpressstruggle)

    Update, just realized I didn’t have mysql installed (need my eyes checked). However, it still does not work after these steps because I have the same error:

    $ sudo yum install php70w-mysql
    [Successful Install]
    
    $ php -m | grep sql
    mysqli
    pdo_mysql
    pdo_pgsql
    pdo_sqlite
    pgsql
    sqlite3
    Thread Starter wordpressstruggle

    (@wordpressstruggle)

    Update 2: Resolved. Just needed to restart Apache.

    $sudo systemctl restart httpd

    THANK YOU! Virtually the same install with CentOS/PHP7.1 with the same issue. I had everything right but didn’t realize I needed to restart Apache. Doh! Thanks for posting the resolution.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP missing the MySQL extension’ is closed to new replies.