hi!
have seen the multisite feature is documented in Multiple site (multisite). but there are two major issues: first, on the two lines were upload_dir and data_location are defined, you have to remove the last closing bracket! second, the chmod is just wrong, it should be a chown!
so, my personal solution was the following for creating all the directories and setting correct ownership:
cd /var/www/piwigo mkdir -p gallery1/local/config mkdir gallery1/_data mkdir gallery1/upload chown -R www-data: gallery1
and my local/config/config.inc.php looks like:
<?php if (preg_match('/^piwigo.kmp.or.at$/', $_SERVER['SERVER_NAME'])) { $site_dir = 'gallery1'; } if (isset($site_dir)) { # $conf['upload_dir'] = './upload'; # $conf['data_location'] = '_data/'; # define('PWG_LOCAL_DIR', 'local/') define('PWG_LOCAL_DIR', $site_dir.'/local/'); $conf['upload_dir'] = './'.$site_dir.'/upload'; $conf['data_location'] = $site_dir.'/_data/'; # in case there is a specific configuration file for each "site" @include(PHPWG_ROOT_PATH.PWG_LOCAL_DIR. 'config/config.inc.php'); } ?>
my apache virtualhost conf has a name and an alias entry:
ServerName piwigo.rekmp.net ServerAlias piwigo.kmp.or.at
main benefit is to have a main piwigo and some "virtual" ones.
just my two cents. :-)
who likes to update this in the wiki?
gre3tings, Klaus
Offline
Thx for sharing!
Could you register on the wiki and contribute? A new contributor is always welcomed ^^
Offline
hi flop25!
I would have been already done an update of the wiki, but to be honest, can't find a link for a new subscription, just seen the link for login. would you please be so kind and give me a short hint how to get an account for the wiki.
many thanks.
gre3tings, Klaus
Offline
I didn't find it neither! So I added you manually
Offline
(registration is closed, due to huge amount of spam :-/)
Offline
thanks a lot, have done my first changes. will also have a look on the german documentation, which is full of spam.
Offline
Thank you for fixing mistakes.
I have also cleaned the German wiki, I can't believe there was so much spam in it :-/
Offline
added all my changes I mentioned in my first post [Forum, post 143315 by hoedlmoser in topic 22170] multisite, wrong documentation in wiki to the wiki Multiple site (multisite).
hth!
Offline
hoedlmoser wrote:
hth!
it helps a lot, thank you (don't stop to contribute ;-)
Offline
Thank you! :D
Offline