php based WebDAV server - can be used with any (e.g. free) hosting plans and via standard ports
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
You have me as an instance proof that it's at least possible, so perhaps it's worth persuing.
I've found Amazon's customer service quite responsive, if only intermittently competent, in the past (if you can find their support form which they bury quite deep somewhere). Maybe you could ask them to help out?
Looking at https://jungledisk.com/secure/signup/JungleDiskPurchase.aspx, it says: I think I just followed on from that form, and all was OK. Sorry I can't be of more help.
Finally I worked through the sign-up and found the link that took me to the JD "drive thru" version of Amazon Payments, where yeah, you just need a credit card.
Thanks CB! You imparted sufficient belief that it must be possible.
Zotero syncing is working fine now.
http://www.domain.dk/zotero/webdav_server.php/zotero/ from my browser but when I try to connect zotero it says:
"You don't have permission to access /zotero/webdav_server.php/zotero/ on the storage server. Please check your storage settings or contact your server administrator."
I then tried logging in using a "normal" webdav client which works fine but I cannot store any files. I get a permission denied. All files/folders in the data directory are set to 777 in file permissions. Any ideas? :)
I have installed it and the "webdav_server.php" works then in Firefox. And then, I use BitKinex to access it as an Webdav. It connects, but I have to type the address without "http:".
Then when it comes to Zotero, it said "The storage server did not accept the username and password you entered. Please check your storage settings or contact your server administrator."
Anyone ideas? :)
Any suggestions?
Thanks,
zotero tells me: "You don't have permission to access /xxxx/webdav_server.php/zotero/ on the WebDAV server. Please check your file sync settings or contact your server administrator."
http://gombang.wordpress.com/2009/05/30/update-free-webdav-service/
I signed up at mydrive.ch - it was totally easy and it works. Remains to be seen whether it remains free...
Thanks.
sorry for not having posted to this thread for a while - my two babies (PhD and ..., well, my 'real' baby) needed a lot of attention lately.
Here some answers:
S3: I don't know if it is possible to connect to S3 with php (I guess it should be), but it would certainly require a major rewrite of this script and I am certain that I won't do that.
For permission problems: note that you have to enter username and password in zotero even if you don't have htacess enabled. In this case, of course, it doesn't matter want you enter, but it seems that zotero needs something on these fields. So make sure you still enter something when testing without authentification.
Re compatibility: I am using my installation of this script since sync preview version (1.5) and had no problem with the any zotero versions up to and including the current.
Hope that helps.
Christian
Enrico
The implementation of locking in the webdav server in php was too complicated and not worth it as zotero doesn't require locking to work. My goal was to keep the script as straightforward as possible to keep maintenance low. This is not meant to be a full webdav implementation, but rather a stripped down version that works with zotero. Finder is probably not the only program not working with it, but it wasn't intended to be used with it in the first place.
If zotero will ever require locking I guess I will have to look into it, but until this hopefully never occurring time, I won't make any changes.
Have a look at the webdav server implementation in PEAR (which this here script is based upon). I am relatively sure that they didn't implement locking either (or not fully functionally), but I might well be wrong and it's all there. Either way, chances are that somebody changed the webdav pear package since I last had a look and it's now all in order.
Good luck,
krueschan
Your script is great. I'd like to add lock support but I'll try it myself.
Your work is the best webdav 'ready to go' on the net.
Enrico
Then I tried it with my cellphone: I was able to upload/download files without being asked for any username/password.
How come?
Can you please assist?
At some web hosters, the ftp user is not the same as the php user. So if you upload the php scripts by ftp, their owner is the ftp user. In order to upload zotero files to the 'data' directory, this directory has to be owned by the php user. Otherwise you will get an error while trying to upload / sync files.
got it working but have an additional request; Is it possible to change the default directory on my storage? now it is the /data/zotero folder. I would like to use some space outside the webspace.
More would it be possible to have some kind of security?
thanks
@black coffee: This is odd and must have something to do with your hosting service and/or your .htaccess file. Authentication is not handled by my script so it is really your own responsibility to secure your storage according to your needs. (on a side note, my installation requests a username/password on my cell phone (iphone) as expected and consistently, on Safari, Opera, Atomic and WAP browsers)
@thisquestion: no. it is not possible to use storage outside the webspace for this script. The purpose of this script is to provide a php bridge to your webspace, your request is exactly the opposite of what this script is intended to achieve. Depending on where this other 'space' is located, there might be a host of other ways of providing WebDAV access (for example, if the 'space' is on your home computer, you could install a webdav server). As for security: as indicated in the initial post of this thread, I am using and recommending to secure the folder where your script is located using an .htaccess file. This should provide the level of security needed for this (if you need more security you should probably use a different WebDAV server anyway).
Hope this helped.
It is also possible that the online library links will work in the future-- the limitations in Firefox that make ZIP files necessary on the WebDAV server have apparently been resolved as of Firefox 10 (not yet out), so there may come a day when the WebDAV-accessible files will be visible to Zotero.org. But not yet.
As a workaround, you get use the following strategy to get to your files while away from your computer:
- navigate to the library item of your interest on zotero.org
- look at the URL bar; you will find something like https://www.zotero.org/username/items/itemKey/AZ2FQHBD
- the 8 character code at the end of the URL is the item key and should correspond with a zip file in your WebDAV
- thus, navigate to your phpZoteroWebDAV location, e.g. http://example.com/zotero/webdav_server.php/zotero/ (this is the URL that is displayed in the WebDAV section of the Sync tab in your zotero settings)
- find AZ2FQHBD.zip, download it to your computer, and unzip it
- the filenames will have the format TWFyeF9FbmdlbHNfMTg0OC5wZGY=%ZB64 - copy and paste this string up to (up not including) the last 5 characters (%ZB64) into a base64 decoding tool (http://www.opinionatedgeek.com/dotnet/tools/base64decode) to get the original filename
- rename the file accordingly and, voila, you're already done :P
(NB: this method is only really feasible for attachments that consist of one or very few files (i.e. NOT web snap shots) since the decoding and renaming of the filenames would have to be done manually for every file)
@ajlyon: I never thought that the zipping of attachments was due to a firefox limitation. rather, I always thought of it (and still do) as a rather obvious design decision of the zotero developers: remember that an attachment to an item is not always just a single file. In the case of snapshots of websites the attachment is a whole folder with a great number of individual files, so zipping them would make a lot of sense. Also, this is a very easy way to retain exact file names (a lot of WebDAV server implementations mess up Unicode characters in the file names) and time stamps of files (again, not all WebDAV server can successfully set/retain filestamps upon uploading or downloading). So putting all in a zip file makes a lot of sense and will continue to make a lot of sense even as Firefox evolves.
Files stored on WebDAV aren't accessible from zotero.org because 1) it would require zotero.org storing the synced WebDAV path, 2) all users who tried to access those files would have to have the credentials, and zotero.org wouldn't have any way of knowing if they did, and, of course, 3) the files would be zipped. Even once the filename encoding goes away, that's all pretty unpleasant. As it is, when zotero.org can provide a good experience (with guaranteed one-click access to a file), it does.
(on a side note: is it possible to move this whole thread to the "syncing" forum category? It's just that the thread and the php script discussed therein is still relevant for syncing but it's currently in the "2.0 (closed)" category which I assume not many folk are actively consulting for advice on syncing with newer versions of zotero. alternatively, I can start a new thread over there and link here. just let me know.)