craftcms / craftcms/cms

[3.x]: Must install mysql libs when using postgresql

Open
#10,919 4 comments 2 reactions 0 assignees View on GitHub

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
  1. Run a server with just php8.1-pgsql and a postgres server installation
  2. try to run the web installer
  3. says must install mysql libs
Expected behavior
  1. the installer screen detects we have psql installed and allow us to continue
Actual behavior
Screenshot 2022-04-14 at 13 07 11
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.