On Monday 05 February 2007 23:20:22 you wrote:
I also tryed to use the same SPIP-Engine for different Sites, it worked,
but it was impossible to log in.
The user was recognised, but it was inpossible to get into the private
area.
I don't understand your problem. You have to installation, with the same
Database (same tables? oder other prefix), you like to share pictures?
I reply to the post, because I'm interested to use une SPIP-Engine for
different installations.
I did it this way.
I have two domains, one points to "/home/my_site/public_html" and the other
one points to "/home/my_site/public_html/domain2".
I have installed SPIP as usual into "public_html". After that, I copied the
whole content of the "public_html" into "public_html/domain2". By doing this,
you get another website which connects to the same database (and you do
administration tasks from the same place -> public_html/ecrire; that was my
point, so you don't have to use domain2/ecrire).
Then I changed the location of IMG for the domain1
(public_html/ecrire/inc_version.php):
FROM
define('_DIR_IMG', $dir1 ."IMG/");
define('_DIR_DOC', $dir1 ."IMG/");
define('_DIR_LOGOS', $dir1 ."IMG/");
TO
define('_DIR_IMG', $dir1 ."domain2/IMG/");
define('_DIR_DOC', $dir1 ."domain2/IMG/");
define('_DIR_LOGOS', $dir1 ."domain2/IMG/");
to keep images in the same place, accessible by both of the sites
(public_html/IMG is not accessible by site2!).
Image paths are written in paths relative to public_html in database
(example: "domain2/IMG/jpg/image.jpg"), so site2 won't find the images while
referring to that path, so you'll have to do another tweak - to replace that
type of path to (same example) "IMG/jpg/image.jpg". You can do it by issueing
$row['fichier'] = str_replace("domain2","",$row['fichier'])
in all files which deal with $row['fichier'] (do search for files containing
$row['fichier']; there are 12 of them).
Example (documents_liste.php):
REPLACE
$fichier = $row['fichier'];
WITH
$row['fichier'] = str_replace("domain2","",$row['fichier']).
Of course, you replace "domain2" with the name of your directory.
I hope this will be of help to someone.
Bye,
Marko