Gallery2 Einbindung

Hier können Probleme und alles andere in Deutscher Sprache gelöst werden.
Post Reply
para1
Posts: 1
Joined: Sat Feb 05, 2011 4:37 pm

Gallery2 Einbindung

Post by para1 »

Bitte ich habe die "Gallery2" erfolgreich installiert und möchte diese nun in den Blog einbinden. Leider komme ich nicht dahinter, wie der Pfad lautet, schon mehrere Varianten (erfolglos) probiert. Auch wenn ich händisch ein im Folder liegendes Foto betrachten will, habe ich keinen Zugriff !
You don't have permission to access /gallery2/g2data/albums/ on this server.
Weiss jemand Rat ?
Danke, para1
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Gallery2 Einbindung

Post by Timbalu »

Hi

Code: Select all

/*
 * In order for Gallery to manage your data, you must provide it with
 * a directory that it can write to.  Gallery is a webserver application,
 * so the directory that you create must be writeable by the
 * webserver, not just by you.
 *
 * Create an empty directory anywhere you please.  Gallery will fill this
 * directory with its own files (that you shouldn't mess with).  This directory
 * can be anywhere on your filesystem.  For security purposes, it's better
 * if the directory is not accessible via your webserver (ie, it should
 * not be in your DocumentRoot).  If you *do* make it available via your
 * web server then you probably won't have any security for your data files.
 *
 * Don't make this the same as your gallery directory!
 */
$gallery->setConfig('data.gallery.base', '/var/www/webs/domain/g2data/');

/*
 * This setting can be used to override Gallery's auto-detection of the domain-name,
 * protocol (http/https), URL path, and of the file & query string.
 * Most users can leave this empty. If the server is misconfigured or for very special
 * setups, this setting can be quite handy.
 * Examples (the positions of the slashes ('/') are important):
 *   override the path: $gallery->setConfig('baseUri', '/another/path/');
 *   override the host + path: $gallery->setConfig('baseUri', 'example.com/gallery2/');
 *   override the protocol + host + path + file:
 *           $gallery->setConfig('baseUri', 'https://example.com:8080/gallery2/index.php');
 */
$gallery->setConfig('baseUri', 'http://domain.tld/g2/main.php');
Erstmal ist es wichtig diese beiden Pfade in der gallery config.php richtig zu setzen.
Dann kann man - und da muss ich nur raten - die Pfade in Serendipity daraufhin anpassen.

Code: Select all

/g2/main.php
oder

Code: Select all

/var/www/webs/domain/g2/main.php
Auf g2data darf man sowieso nie von außen zugreifen.

Ian
Post Reply