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

memcached php extension broken in wordpress 21.0.0 to 21.0.3 #24605

Closed
fabio-peptone opened this issue Mar 21, 2024 · 3 comments · Fixed by #25034
Closed

memcached php extension broken in wordpress 21.0.0 to 21.0.3 #24605

fabio-peptone opened this issue Mar 21, 2024 · 3 comments · Fixed by #25034
Assignees
Labels
solved tech-issues The user has a technical issue about an application wordpress

Comments

@fabio-peptone
Copy link

fabio-peptone commented Mar 21, 2024

Name and Version

bitnami/wordpress 21.0.3

What architecture are you using?

amd64

What steps will reproduce the bug?

Install chart 21.0.3 with

wordpressConfigureCache: true

memcached:
  enabled: true

The memcached plugin is not enabled in php.

Execing into the wordpress container

$ $ grep memcache /opt/bitnami/php/etc/php.ini
;extension = memcached

The extension is correctly enabled in chart 20.1.3

What is the expected behavior?

memcached php extension should be enabled

What do you see instead?

memcached php extension is not enabled

Additional information

I believe this was broken in 38bf03c. As far as I understand, php extensions are enabled during container build. Replacing php/etc with an emptydir removes all the build-time configuration

@fabio-peptone fabio-peptone added the tech-issues The user has a technical issue about an application label Mar 21, 2024
@github-actions github-actions bot added the triage Triage is needed label Mar 21, 2024
@github-actions github-actions bot removed the triage Triage is needed label Mar 21, 2024
@github-actions github-actions bot assigned andresbono and unassigned carrodher Mar 21, 2024
@Multiply
Copy link

Noticing the same problem here.

@yourcelf
Copy link

yourcelf commented Apr 5, 2024

A workaround that worked for me is to define a post-init script which uncomments the extension in php.ini:

# Enable memcached plugin in php.ini
# https://github.com/bitnami/charts/issues/24605
customPostInitScripts:
  enable_php_ini_memcached.sh: |
    #!/bin/bash
    sed -i 's/^;extension = memcached$/extension = memcached/' /opt/bitnami/php/etc/php.ini  

@andresbono
Copy link
Member

Hi, thank you for reporting this issue. We have submitted this PR that should fix it: #25034. Feel free to take a look. Thank you again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solved tech-issues The user has a technical issue about an application wordpress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants