Question
How do I install the PDO_MYSQL PHP extension?
Answer
The PDO_MYSQL PHP extension is a dependency for mysqlnd, but it can be installed separately as well.
# repoquery -q --provides ea-php*-php-mysqlnd| grep 'pdo_mysql'
ea-php80-php-pdo_mysql = 8.0.30-9.15.1.cpanel
ea-php81-php-pdo_mysql = 8.1.34-2.6.3.cpanel
ea-php82-php-pdo_mysql = 8.2.30-2.4.3.cpanel
ea-php83-php-pdo_mysql = 8.3.30-2.4.3.cpanel
ea-php84-php-pdo_mysql = 8.4.19-1.1.3.cpanel
ea-php85-php-pdo_mysql = 8.5.4-1.1.3.cpanel
You can install PDO_MYSQL using the steps below:
- Log in to WHM as the
rootuser. - Navigate to Home / Software / EasyApache 4.
- Click the Customize button under Currently Installed Packages.
- Click PHP Extensions.
- Use the search bar to search for pdo_mysql.
Mark the extension for installation by clicking the switch icon to the far right of the extension.
Note: This needs to be done for each version of PHP for which you need the PHP Extension.
- Click Review and review the output to ensure the PHP extension you marked for installation will be installed.
- Click the Provision button to install the selected PHP extensions.
Comments
0 comments
Article is closed for comments.