Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • PDO and Laravel on Red Hat 7.5

    Posted on

    Hi.

    I have problem with PDO on Red Hat 7.5.
    When I try use command: php artisan migrate I get message:

    PHP Fatal error: Class 'PDO' not found in /home/rhel/projects_php/help_desk/vendor/laravel/framework/src/Illuminate/Database/Connection.php on line 1246

    Symfony\Component\Debug\Exception\FatalErrorException : Class 'PDO' not found

    at /home/rhel/projects_php/help_desk/vendor/laravel/framework/src/Illuminate/Database/Connection.php:1246
    1242| * @return mixed
    1243| */
    1244| public static function getResolver($driver)
    1245| {

    1246| return static::$resolvers[$driver] ?? null;
    1247| }
    1248| }
    1249|

    Whoops\Exception\ErrorException : Class 'PDO' not found

    at /home/rhel/projects_php/help_desk/vendor/laravel/framework/src/Illuminate/Database/Connection.php:1246
    1242| * @return mixed
    1243| */
    1244| public static function getResolver($driver)
    1245| {

    1246| return static::$resolvers[$driver] ?? null;
    1247| }
    1248| }
    1249|

    What I doing incorrect?

    Please help me.

    Kind Regards.

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat