Wordpress: Enable option to install wordpress networks (wordpress multiuser)

Created on 8 Nov 2014  路  9Comments  路  Source: docker-library/wordpress

Enable option to install wordpress networks (wordpress multiuser)

Most helpful comment

As reply to @pierreozoux, mostly because I don't like the attitude: It's still not possible to "just" extend the functionality of entrypoint.sh to customize wp-config.php at this point, so this ticket was a totally valid request. Of course manual edition using vim is not an option for an automated deployment.

A pointer to #8 (and meanwhile #100) would have been useful.

All 9 comments

This should be pretty easy to setup today. All you need to do is provide a custom wp-config.php (or modify it after getting WordPress setup, which is likely a lot easier to do) to add the WP_ALLOW_MULTISITE entry: (http://codex.wordpress.org/Create_A_Network#Step_2:_Allow_Multisite)

/* Multisite */
define( 'WP_ALLOW_MULTISITE', true );

I was telling about automating the .htaccess as it wpmu need custom htaccess and going to admin and enable network. as

From what I see WordPress itself should be doing the automation of the .htaccess file and possibly even the wp-config.php additions, but instead they just give you the code to put in the files. I don't think we should automate what they have chosen not to. As @tianon says, it is simple enough to provide a custom wp-config so the htaccess will not be much different.

Hi guys,

I may be asking dumb question but also :)

how to properly alter wp-config file after wp was setup ?

I tried to edit file from inside container with nano editor, but saw there was no vi or nano installed ( which is great )

@mkdizajn since /var/www/html is a volume, you can edit the file from another container that shares the volumes of your wordpress container. Looks like haron/vim would work:

docker run -it --rm --volumes-from wordpress -w /var/www/html haron/vim vim wp-config.php

Actually, that haron/vim has issues because it's running as a dev user...

O heu! Why aren't there any good vim images? :disappointed:

Perhaps I'll make one at some point...

I just realized you can do this:

docker run -it --rm --volumes-from wordpress -w /var/www/html -u root haron/vim vim wp-config.php

I opened this issue to discuss the use of USER dev in the otherwise quite usable haron/vim: https://github.com/HaronK/docker-vim/issues/1

I think to have multiuser setup, you can just create your image on top of this one. Can we close this issue now? Thanks

As reply to @pierreozoux, mostly because I don't like the attitude: It's still not possible to "just" extend the functionality of entrypoint.sh to customize wp-config.php at this point, so this ticket was a totally valid request. Of course manual edition using vim is not an option for an automated deployment.

A pointer to #8 (and meanwhile #100) would have been useful.

Was this page helpful?
0 / 5 - 0 ratings