Page 1 of 1
Gallery2 Einbindung
Posted: Sun Feb 06, 2011 3:46 pm
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
Re: Gallery2 Einbindung
Posted: Mon Feb 07, 2011 9:18 am
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.
oder
Auf
g2data darf man sowieso nie von außen zugreifen.
Ian