Comments (9)
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.
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.
I was telling about automating the .htaccess as it wpmu need custom htaccess and going to admin and enable network. as
from wordpress.
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.
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.
@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.
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.
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.
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)
- CLI variant fails connecting to MySql server via caching_sha2_password
- Passing WP_ENVIRONMENT_TYPE not working
- Installing wordpress 6.4.2 with php 8.2: headers already sent by HOT 1
- Configuring PHP directives without custom images
- CSS and JS are not hosted on an HTTPS.
- ftps doesn't work starting from php 8 HOT 1
- PHP error logging
- Theme templates bug when port forwarding is different from host port 80 HOT 1
- why mod_php in 2024? HOT 1
- The 6.5 tags are not on Docker Hub HOT 1
- How to change port 8080 to some other port
- BUG: Restarting docker logs users out HOT 7
- Docker Hub instance version 6.5.2-php8.2 breaks sites with "Use of "static" in callables is deprecated" HOT 1
- Blank Screen with WordPress 6.5.3 when creating a new page HOT 1
- Permission error on changing workdir with www-data user HOT 2
- MacBook running docker reports an error
- Unable to create directory wp-content/uploads/2024/07. Is its parent directory writable by the server?
- Docker CLI Image - Permission issues. HOT 1
- Updating the ghostscript HOT 1
- Azurmainh HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wordpress.