Hello!
I am making a multisite install and preserving common files amongst the multiple installations to preserve disk space, I would like to know if you can tell, which directories should I maintain exclusive for each site (those who are stateful to the specific site) and which ones can be shared (which are stateless/common)?
Thanks in advance!
EDIT: I mean, beyond the config.php
.
Also, can you tell me what of stateful is in a fresh installation's database? Can I install and then just replicate it (by dumping the db, so I don't need to run the web installer for each automatized install, but instead use that model?)
EDIT2: My findings: 60mb of the composer install is inside the vendor/
directory: seems that one can simply put the vendor apart, remove the directory vendor/ from inside the install and symlink ln -s /abs/path/to/vendor /abs/path/to/flarum/install/vendor
and you can save more than 60mb for each new (additional) install. Let's say, the rest of the installation (not vendor/
) is 11mb; if you had 10 sites, you would spend 71*10 = 710mb; this way, with 10 sites you would spend (11*10)+60 = 170mb
With 20 sites it would be 1.42gb, now with symlinks, 20 sites would be (11*20)+60=280mb. Use Options +SymlinksIfOwnerMatch
in Apache config and sudo chown -R www-data: .
(or whichever user your distro uses as web-user) everything inside the server directory files. (-R
here is "recursive".)