Announcement

#1 2013-05-30 18:51:20

hoedlmoser
Member
Dingelberg, Austria
2013-05-30
10

[resolved] multisite, wrong documentation in wiki

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:

Code:

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:

Code:

<?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:

Code:

  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

 

#2 2013-05-31 10:59:44

flop25
Piwigo Team
2006-07-06
6931

Re: [resolved] multisite, wrong documentation in wiki

Thx for sharing!
Could you register on the wiki and contribute? A new contributor is always welcomed ^^


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2013-05-31 11:09:51

hoedlmoser
Member
Dingelberg, Austria
2013-05-30
10

Re: [resolved] multisite, wrong documentation in wiki

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

 

#4 2013-05-31 11:15:57

flop25
Piwigo Team
2006-07-06
6931

Re: [resolved] multisite, wrong documentation in wiki

I didn't find it neither! So I added you manually


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#5 2013-05-31 11:32:21

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13191

Re: [resolved] multisite, wrong documentation in wiki

(registration is closed, due to huge amount of spam :-/)

Offline

 

#6 2013-05-31 13:18:24

hoedlmoser
Member
Dingelberg, Austria
2013-05-30
10

Re: [resolved] multisite, wrong documentation in wiki

thanks a lot, have done my first changes. will also have a look on the german documentation, which is full of spam.

Offline

 

#7 2013-05-31 13:31:24

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13191

Re: [resolved] multisite, wrong documentation in wiki

Thank you for fixing mistakes.

I have also cleaned the German wiki, I can't believe there was so much spam in it :-/

Offline

 

#8 2013-05-31 14:56:24

hoedlmoser
Member
Dingelberg, Austria
2013-05-30
10

Re: [resolved] multisite, wrong documentation in wiki

Offline

 

#9 2013-05-31 15:05:14

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13191

Re: [resolved] multisite, wrong documentation in wiki

hoedlmoser wrote:

hth!

it helps a lot, thank you (don't stop to contribute ;-)

Offline

 

#10 2013-05-31 15:06:27

flop25
Piwigo Team
2006-07-06
6931

Re: [resolved] multisite, wrong documentation in wiki

Thank you! :D


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact