Wordpress: WORDPRESS_CONFIG_EXTRA does not work

Created on 5 Sep 2018  路  1Comment  路  Source: docker-library/wordpress

The Problem

Setting WORDPRESS_CONFIG_EXTRA as an environment variable in docker does not result in lines added to wp-config.php.

Expected result

Setting the WORDPRESS_CONFIG_EXTRA parameter should add lines to wp-config.php as described on https://hub.docker.com/_/wordpress/ and mentioned in this pull request (albeit with an older parameter name): https://github.com/docker-library/wordpress/pull/142

Possible cause

The docker-entrypoint.sh file only injects that value if the wp-config.php file does not already exist, has a recent update to wordpress started deploying that file?

Most helpful comment

Sorry, my fault. I was using persistent storage and wp-config.php was remaining from an older container.

>All comments

Sorry, my fault. I was using persistent storage and wp-config.php was remaining from an older container.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

danyork picture danyork  路  4Comments

TeachMeHowToUse2FA picture TeachMeHowToUse2FA  路  4Comments

Wyvern picture Wyvern  路  5Comments

ptrdlbrg picture ptrdlbrg  路  5Comments

shankie-codes picture shankie-codes  路  5Comments