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

Fix plugin for usage with Debian wordpress package #730

Merged
merged 3 commits into from Aug 2, 2020

Conversation

smortex
Copy link

@smortex smortex commented Feb 15, 2020

Debian packages wordpress in a way that a single wordpress instance can
be used to serve multiple websites. The wp-config.php file is stored
in a well-known location: /etc/wordpress/config-$HOST.php as explained
in the README.Debian file.

The package defines DEBIAN_FILE as the filename of the configuration
file. When it is defined, and if the wp-config.php was not found using
the "traditional" way, use it.

By default, this file is not writable by the application, adding the
following to it is enough to use the plugin:

define('WP_CACHE', true);
define('WPCACHEHOME', '/var/lib/wordpress/wp-content-xxxxx/plugins/wp-super-cache/');

Debian packages wordpress in a way that a single wordpress instance can
be used to serve multiple websites.  The wp-config.php file is stored
in a well-known location: /etc/wordpress/config-$HOST.php as explained
in the [README.Debian] file.

The package defines DEBIAN_FILE as the filename of the configuration
file.  When it is defined, and if the wp-config.php was not found using
the "traditional" way, use it.

By default, this file is not writable by the application, adding the
following to it is enough to use the plugin:

define('WP_CACHE', true);
define('WPCACHEHOME', '/var/lib/wordpress/wp-content-xxxxx/plugins/wp-super-cache/');

[README.Debian]:https://salsa.debian.org/debian/wordpress/blob/master/debian/README.debian
@donnchawp
Copy link
Contributor

Thanks for the patch. I fixed some formatting but it looks good.

We're checking other locations, might as well check here too.
@donnchawp donnchawp merged commit 5c8a5e8 into Automattic:master Aug 2, 2020
@smortex smortex deleted the debian-fix branch August 4, 2020 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants