Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #165878

Re: wordpress from packages - wp-content location not applied?

From Jean-Louis Mas <Jean-Louis.Mas@imag.fr>
Newsgroups linux.debian.user
Subject Re: wordpress from packages - wp-content location not applied?
Date 2016-03-23 16:40 +0100
Message-ID <rfT34-5r3-13@gated-at.bofh.it> (permalink)
References <repgK-sb-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

-- 
Jean Louis Mas

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

wordpress from packages - wp-content location not applied? Jiri 'Ghormoon' Novak <ghormoon@gmail.com> - 2016-03-19 14:40 +0100
  Re: wordpress from packages - wp-content location not applied? arian <debian@semioptimal.net> - 2016-03-19 19:30 +0100
    Re: wordpress from packages - wp-content location not applied? Jiri 'Ghormoon' Novak <ghormoon@gmail.com> - 2016-03-19 20:30 +0100
      Re: wordpress from packages - wp-content location not applied? Adam Wilson <moxalt@riseup.net> - 2016-03-20 09:40 +0100
  Re: wordpress from packages - wp-content location not applied? Jiri 'Ghormoon' Novak <ghormoon@gmail.com> - 2016-03-23 16:40 +0100
  Re: wordpress from packages - wp-content location not applied? Jean-Louis Mas <Jean-Louis.Mas@imag.fr> - 2016-03-23 16:40 +0100

csiph-web