Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: expand docs on PHP extension installation, including pecl #5715

Merged
merged 4 commits into from Jan 26, 2024

Conversation

rfay
Copy link
Member

@rfay rfay commented Jan 19, 2024

The Issue

Several recent discussions in Discord have shown people floundering with adding extra PHP extensions. This adds more detail about how to add both deb.sury.org-supported extensions and pecl extensions.

Review new content at https://ddev--5715.org.readthedocs.build/en/5715/users/extend/customizing-images/#adding-php-extensions (and a bit above there)

@rfay rfay marked this pull request as ready for review January 19, 2024 18:44
@rfay rfay requested a review from a team as a code owner January 19, 2024 18:44
Copy link
Contributor

@liayn liayn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this is a very valuable improvement!

!!!tip "Few people need pecl extensions"
Most people don't need to install PHP extensions that aren't supported by `deb.sury.org`, so you only need to go down this path if you have very particular needs.

If a PHP extension is not supported by the upstream package management from `deb.sury.org`, you'll install it via pecl using a `.ddev/web-build/Dockerfile`. You can search for the extension on [pecl.php.net](https://pecl.php.net/) to find the package name. (This technique can also be used to get newer versions of PHP extensions than are available in the `deb.sury.org` distribution.)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one space in excess after "you'll"

@stasadev stasadev merged commit 54a71e3 into ddev:master Jan 26, 2024
9 checks passed
@stasadev stasadev deleted the 20240119_php_extension_docs branch January 26, 2024 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants