Jean-Louis Mas wrote: > Le 19/03/2016 14:31, Jiri 'Ghormoon' Novak a écrit : > >> what may I be missing, if the configuration that came with wordpress >> package doesn't apply correctly? >> there is: /usr/share/wordpress/wp-config.php: >> define('WP_CONTENT_DIR', '/var/lib/wordpress/wp-content'); >> >> but that doesn't have any effect unless I define it in >> /etc/wordpress/config-www.domain.tld.conf too. >> am I missing something essential or may it be a bug? > When using Wordpress package from repos in Debian (and Centos also), you > never edit /usr/share/wordpress/wp-config.php > > > /*** > * WordPress's Debianised default master config file > * Please do NOT edit and learn how the configuration works in > * /usr/share/doc/wordpress/README.Debian > ***/ > > That's the way linux packaging do. Configs files are in /etc, logs in > /var/log and so on. So it's perfectly normal > > You should instead edit /etc/wordpress/config-www.domain.tld.conf > > /etc/wordpress/config-www.domain.tld.conf is the same as the usual > wp-config.php > > If you have multiples Wordpress virtualhosts on your server, you can use > different Wordpress config files > > Regards > Hi,
a do NOT edit it. the line is there since beginning, but does not apply. I have to copy it over to /etc to make the setting take effect. I thought it should work anyway when it's set in /usr (and not overriden anyhow in /etc) Gh.