Code Monkey home page Code Monkey logo

Comments (9)

lwille avatar lwille commented on August 23, 2024 4

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.

from wordpress.

tianon avatar tianon commented on August 23, 2024

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 );

from wordpress.

nnn-gif avatar nnn-gif commented on August 23, 2024

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

from wordpress.

yosifkit avatar yosifkit commented on August 23, 2024

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.

from wordpress.

mkdizajn avatar mkdizajn commented on August 23, 2024

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 )

from wordpress.

md5 avatar md5 commented on August 23, 2024

@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

from wordpress.

md5 avatar md5 commented on August 23, 2024

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

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

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

from wordpress.

md5 avatar md5 commented on August 23, 2024

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: HaronK/docker-vim#1

from wordpress.

pierreozoux avatar pierreozoux commented on August 23, 2024

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

from wordpress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.