[3.x]: Must install mysql libs when using postgresql
Open
Nobody has claimed this yet.
bug
craft3
- Dominant language
- PHP
- Stars
- 3.6k
- Forks
- 705
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 134
Description
What happened?
Description
Web installer scripts does not indentify postgres install and prompts for mysql to be installed. https://craftcms.com/docs/3.x/installation.html#step-4-create-a-database
Steps to reproduce
- Run a server with just php8.1-pgsql and a postgres server installation
- try to run the web installer
- says must install mysql libs
Expected behavior
- the installer screen detects we have psql installed and allow us to continue
Actual behavior
Craft CMS version
3
PHP version
8.1
Operating system and version
ubuntu 20.04 LTS
Database type and version
postgres
Image driver and version
No response
Installed plugins and versions
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the web installer on Ubuntu 20.04 with PHP 8.1, only php8.1-pgsql, and PostgreSQL, then inspect the installer’s database-library check. Done means PostgreSQL installations are recognized and the installer no longer requires MySQL libraries when PostgreSQL support is present.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, postgresql
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100