Could someone please tell be how to run Staticsync, I 've edited the config file, but how do I run the sync?
there's no step by step info on the wiki,(or maybe I'm being dumb)
i'm on windows7 using xampp
thanks in advance
Rob
Are you using the bitnami stack? If so, you need to hardcode $baseurl in your config.php. Via cli php cannot access $_SERVER variables therefore will produce an error. So for example with bitnami part your config.php looks like this:# Base URL of the installationif (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') {$baseurl = 'https://' . $_SERVER['HTTP_HOST'] . '/resourcespace';} else {$baseurl = 'http://' . $_SERVER['HTTP_HOST'] . '/resourcespace';}
change $baseurl to yor server url, for example:$baseurl = 'http://localhost/resourcespace';
or you can merge both and just hardcode it for cli case:# Base URL of the installationif (isset($_SERVER['HTTP_HOST'])) {if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') {$baseurl = 'https://' . $_SERVER['HTTP_HOST'] . '/resourcespace';} else {$baseurl = 'http://' . $_SERVER['HTTP_HOST'] . '/resourcespace';}} else {$baseurl = 'http://localhost/resourcespace';}
Am Sonntag, 15. Februar 2015 15:27:47 UTC+1 schrieb Emad Ahmad:Dears
I need help setting staticsync
when I execute the staticsync.php, I get Undefined index
Any idea how to make it work?!!
thanks
} else { $baseurl = 'http://localhost:8080/resourcespace';}but it doesn't work, and it prevents me from logging on, so I'm thinking this is not my base URL--
ResourceSpace: Open Source Digital Asset Management
http://www.resourcespace.org
---
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to resourcespac...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
chmod -R 777 include
mysql -u root -e "create database resourcespace"
the command mysql went unrecognized in terminal
and the version of RS was old.
Thanks Alison.
I'm getting nearer and I agree with you that the problem seems to be with paths etc.
everything seems to be working except for StaticSync.php
this is the error
Parse error: parse error in /Applications/MAMP/htdocs/ResourceSpace/include/config.php on line 63
Robs-Mac-Pro:tools rob$ php staticsync.php
and i'm trying to connect to the Synology Diskstation at afp://DiskStation._afpovertcp._tcp.local/Photo backup
and I have tried //DiskStation//Photo backup/
both produce the same error
the config settings are currently
$syncdir="//DiskStation/Photo backup/test/“;
$nogo="[folder1]";
$staticsync_autotheme=false;
$staticsync_folder_structure=false;
$staticsync_extension_mapping_default=1;
$staticsync_extension_mapping[3]=array("mov","3gp","avi","mpg","mp4","flv");
$staticsync_extension_mapping[4]=array("flv");
$staticsync_title_includes_path=false;
$staticsync_ingest=false;
$staticsync_alternatives_suffix="_alternatives";
$staticsync_prefer_embedded_title = true;
hope you can help
thanks in advance
Rob
...
mount_afp afp://DiskStation._afpovertcp._tcp.local/Photo backup /Users/yourname/newfolder
my staticsync settings in config.php are
$syncdir="Macintosh\HD/Photobackup/test";
Unable to change file mode on /Volumes/Photobackup: Permission denied
<?php phpinfo();