Linux サーバー、PHP 8.0.17、
Laravelバージョン8.81.0で開発環境を構築中なのですが、DBの接続処理を行った際に[Class "PDO" not found]のエラーが起きてしまい、対処に困っております。
https://www.ninton.co.jp/archives/2700
上記の先駆者様のでは説明では、「php72-php と php-pdoを混在してインストールしていました。」と書かれていますが、
自分自身初めての環境構築でこの情報を捉え方が定かではありません。
お役に立つかわかりませんが、'php -m'と'rpm -qa | grep -i php'の結果を記載します。
どうか、どうかご意見よろしくお願いします。
コマンド:php -m
【結果】
[PHP Modules] bz2 calendar Core ctype curl date exif fileinfo filter ftp gettext hash iconv json libxml mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_sqlite Phar readline Reflection session sockets sodium SPL sqlite3 standard tokenizer zlib [Zend Modules]
コマンド:rpm -qa | grep -i php
【結果】
php74-php-common-7.4.28-1.el7.remi.x86_64 php-sodium-8.0.17-1.el7.remi.x86_64 php74-php-json-7.4.28-1.el7.remi.x86_64 php74-php-pecl-zip-1.20.0-1.el7.remi.x86_64 php-cli-8.0.17-1.el7.remi.x86_64 php-8.0.17-1.el7.remi.x86_64 php-mysqlnd-8.0.17-1.el7.remi.x86_64 php74-runtime-1.0-3.el7.remi.x86_64 php-common-8.0.17-1.el7.remi.x86_64 php-pdo-8.0.17-1.el7.remi.x86_64
回答1件
あなたの回答
tips
プレビュー