[GH-ISSUE #836] Unable to install ext-PDO with Composer. #490

Closed
opened 2026-02-25 21:35:10 +03:00 by kerem · 4 comments
Owner

Originally created by @PaulTGG on GitHub (Dec 5, 2023).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/836

Originally assigned to: @Yannick243 on GitHub.

🐛 Bugreport

Unable to use composer to install ext-PDO for database connections. Composer acts like ext-PDO is already installed, but still suggests that it be installed. I've also tried installing Postgres and Maria, with all their dependencies, and what I think are all the available php modules that connect to either Maria or Postgres. I also don't know if Composer is just lying, and a database connection would still work. (If I uncomment the database extension lines in php.ini, Composer says that PDO is already enabled, even though it still says that ext-PDO is suggested.)

Version & Environment

Rev: a8d6826 (Latest master as of December 5, 2023.)

OS: Debian 12.2..0
PHP 8.2.7
Composer: 2.5.5

Steps to reproduce

  1. Install some fresh Debian
  2. As root: apt install php composer php-curl php-redis php-gd php-memcached php-gnupg php-imagick php-bcmath php-soap php-xdebug php-xml
  3. mkdir cypht-test
  4. cd cypht-test
  5. wget https://github.com/cypht-org/cypht/archive/master.zip
  6. unzip master.zip
  7. cd cypht-master
  8. composer suggest <-- this shows that ext-PDO is not installed
  9. composer require ext-PDO <-- this installs a bunch of stuff, then throws into a bunch of looping "composer suggest" commands.
  10. composer suggest <-- still shows that ext-PDO is not installed.
Originally created by @PaulTGG on GitHub (Dec 5, 2023). Original GitHub issue: https://github.com/cypht-org/cypht/issues/836 Originally assigned to: @Yannick243 on GitHub. ## 🐛 Bugreport <!-- Describe your issue in detail. Include screenshots if needed. Give us as much information as possible. --> Unable to use composer to install ext-PDO for database connections. Composer acts like ext-PDO is already installed, but still suggests that it be installed. I've also tried installing Postgres and Maria, with all their dependencies, and what I think are all the available php modules that connect to either Maria or Postgres. I also don't know if Composer is just lying, and a database connection would still work. (If I uncomment the database extension lines in php.ini, Composer says that PDO is already enabled, even though it still says that ext-PDO is suggested.) ### Version & Environment <!-- Paste Git-Commit ID or Tag-Name here --> Rev: a8d6826 (Latest master as of December 5, 2023.) <!-- Specify your OS and OS Version here if the issue is (most likely) platform dependent. --> OS: Debian 12.2..0 PHP 8.2.7 Composer: 2.5.5 ### Steps to reproduce 1. Install some fresh Debian 2. As root: apt install php composer php-curl php-redis php-gd php-memcached php-gnupg php-imagick php-bcmath php-soap php-xdebug php-xml 3. mkdir cypht-test 4. cd cypht-test 5. wget https://github.com/cypht-org/cypht/archive/master.zip 6. unzip master.zip 7. cd cypht-master 8. composer suggest <-- this shows that ext-PDO is not installed 9. composer require ext-PDO <-- this installs a bunch of stuff, then throws into a bunch of looping "composer suggest" commands. 10. composer suggest <-- still shows that ext-PDO is not installed.
kerem closed this issue 2026-02-25 21:35:10 +03:00
Author
Owner

@marclaporte commented on GitHub (Dec 6, 2023):

@Yannick243 Please use one of the lab servers to solve this. And please also review docs about usage with MariaDB and PostgreSQL.

<!-- gh-comment-id:1843865999 --> @marclaporte commented on GitHub (Dec 6, 2023): @Yannick243 Please use one of the lab servers to solve this. And please also review docs about usage with MariaDB and PostgreSQL.
Author
Owner

@Yannick243 commented on GitHub (Dec 9, 2023):

This has been adjusted in composer suggestions; however, you should just ensure that the different drivers are installed before enabling the extensions in php.ini for MariaDB and/or PostgreSQL;

apt install php8.2-mysql php8.2-pgsql

and finally check if the extension is enabled with phpinfo();
phpinfo-screen

<!-- gh-comment-id:1848367572 --> @Yannick243 commented on GitHub (Dec 9, 2023): This has been adjusted in composer suggestions; however, you should just ensure that the different drivers are installed before enabling the extensions in php.ini for MariaDB and/or PostgreSQL; ``` apt install php8.2-mysql php8.2-pgsql ``` and finally check if the extension is enabled with `phpinfo();` ![phpinfo-screen](https://github.com/cypht-org/cypht/assets/14950700/b28e25dd-0865-4c89-bdc2-af7944d50ecb)
Author
Owner

@marclaporte commented on GitHub (Dec 10, 2023):

@PaulTGG Can we close this?

<!-- gh-comment-id:1848870098 --> @marclaporte commented on GitHub (Dec 10, 2023): @PaulTGG Can we close this?
Author
Owner

@PaulTGG commented on GitHub (Dec 12, 2023):

Yep, my bad!

<!-- gh-comment-id:1851105197 --> @PaulTGG commented on GitHub (Dec 12, 2023): Yep, my bad!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#490
No description provided.