Instalacia

  1. Rozbalim do adresara do koreho chcem
  2. nastavim singapore.ini
    1. nastavim napr. base_path na plnu cestu k adresaru, v ktorom to mam (napr.: base_path = ”/var/www/photo/”) Pisu, ze to netreba, ale kym som to nenastavil, tak mi to s mojim exotickym nastavenim webservra nefungovalo.
  3. v browseri otvorim mojserver.sk/mojagaleria/install a idem step by step
  4. nastavim temu v templates/mojatema/templates.ini

mod_rewrite

cp tools/mod_rewrite.htaccess .htaccess
vim .htaccess
  • v .htaccess zmenim retazec “singapore” na nazov adresara, v ktorom to mam
  • v singapore.ini nastavim base_url na /adresar/ napr.: base_url = ”/photo/”

Ukladanie logov a thumbnailov na ine miesto

Ako donutim singapore 10 a viac aby neukladal thumbnaily a statistiky do galerii:

http://www.sgal.org/forum/viewtopic.php?id=980&p=2

I changed few things to force singapore to track hits (create files hits.csv) in logs directory and not in galleries. I changed:

in includes/singapore.class.php, line 845:

$mode=1 to $mode=0.

in includes/io_csv.class.php, line 213:

$fp = @fopen($this->config->base_path.$this->config->pathto_logs.strtr("views".$gal->id,":/?\\","----").".log","r");

and in includes/io_csv.class.php, line 255:

$logfile = $this->config->base_path.$this->config->pathto_logs.strtr("views".$gal->id,":/?\\","----").".log";

I also created writable directory data/logs

mkdir data/logs

Paranoid access rights settings:

chown -R httpd:httpd .
chmod -R 400 .
chmod -R u+X .
chmod -R u+w data

Works with Solaris 10 and PHP in Safe mode.

 
singapore.txt · Last modified: 31.03.2010 17:51 (external edit)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki