During installation, fatal PDO error displays

This article provides a fix for an exception fatal PDO error during installation.

Issue

PHP Fatal error:  Class 'PDO' not found in /var/www/html/magento2/setup/module/Magento/Setup/src/Module/Setup/ConnectionFactory.php on line 44

Solution

Make sure you install all the required PHP extensions.

recommendation-more-help
8bd06ef0-b3d5-4137-b74e-d7b00485808a