搜索
首页后端开发php教程超好用的懒人webdav based on PHP个人云服服务搭建软件, 可用于zotero文献同步

Introduction

phpEasyVCS is a simple version control system (VCS) and WebDAV server with minimal hosting requirements:

  • PHP 5.2+

No database is needed.

Files can be viewed and uploaded with a browser or by WebDAV.

License: GPLv3

If you want to see the web interface of phpEasyVCS, either

  • see the Screenshots or
  • go to the Demo site (login with username demo and password demo). You may only upload files up to 50kB and the data will be purged regularly.

Download

You can download phpEasyVCS from Sourceforge.

Installation

Copy phpEasyVCS to a directory on your server, e.g. easyvcs.

Browse to http(s)://your.server/easyvcs-dir/index.php (replace your.server and easyvcs-dir with your server and installation directory) and fill out the settings form.

You can also create additional users on the Users tab.

Depending on your server settings, the authorization header might not reach PHP. In case of Apache you can add the following rewrite rule to your .htaccess:

RewriteEngineonRewriteBase/RewriteRule.*-[E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

You can also create additional repositories by

  • creating a new directory in the data folder (on the same level as the default folder)
  • editing the user(s) to give them access to the additional repository - you have to reenter the password for this

Usage

Independent of the access type the user has to identify himself with his user name and password. If the user has access to multiple repositories, he must prefix the user name with the repository name and a backslash, e.g. "specialrepository\max", otherwise it is not sure, into which repository he will be logged in.

Web Browser

Browse to http(s)://your.server/easyvcs-dir/index.php (replace your.server and easyvcs-dir with your server and installation directory).

You can browse the VCS, create tags to browse the VCS at a specific date, view versions, revert a file to a version, etc.

The web access will work

  • with Javascript switched off (no syntax highlighting, page reload on many actions),
  • with Javascript activated,
  • with Javascript and Java plugin activated and the Java applet loaded you can upload whole directories and get progress bars during upload.

To enable Java and experience the least warnings possible:

  • Download and install Java from java.com,
  • in your favorite browser (which should support the Java plugin), go to the plugins page (e.g. in Firefox Tools/Add-ons/Plugins) and make sure that the Java plugin will either Always Activate orAsk to Activate,
  • open the Java Plugin Control Panel (Windows: in Start/Programs, Linux Gnome: search for "java" in your Gnome menu) and set Security/Security Level to medium and add your phpEasyVCS web site URL to the website exceptions.

Using the navigation item Profile the user can change his password and switch the repository, if he has access to multiple repositories.

WebDAV

Use http(s)://your.server/easyvcs-dir/webdav.php for WebDAV access. The actual syntax may vary depending on your operating system and WebDAV program.

The root level of the WebDAV drive shows at least the directory current, which represents the currently saved files. You will also see the tags created in the web interface, which represent read-only views of your VCS at a specific time. Additionally you can view the VCS at a specific point in time by manually specifying a date and time in the format YYYY-MM-DD or YYYY-MM-DDTHH:MM, e.g.http://your.server/easyvcs-dir/webdav.php/2011-01-01 or http://your.server/easyvcs-dir/webdav.php/2011-01-01T16:00 (this might not work with your WebDAV client).

Linux

Enter the following URL in Nautilus or Caja: dav://your.server/easyvcs-dir/webdav.php

If this does not work, connect explicitely by use of its menu File/Connect to Server and set Server to your.server, type to WebDAV (HTTP) or Secure WebDAV (HTTPS), path to easyvcs-dir/webdav.php and enter your user name and password.

You can also connect using Gnome Commander: set type to WebDAV, server to your.server and remote directory to /easyvcs-dir/webdav.php.

Or install davfs2 and mount the WebDAV, e.g.:

sudo apt-get install davfs2 sudo mkdir /media/easyvcs sudo mount -t davfs http://your.server/easyvcs-dir/webdav.php /media/easyvcs

You probably need to add options like -o rw,user,uid=myusername to be able to write, too.

Windows XP

Preparation:

  • Download and install KB907306 for web folders
  • To use basic authentication, set the DWORD registry entry UseBasicAuth in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters to 1and restart Windows.

Goto explorer - Tools - Map Network Drive - Connect to a Web site and enter http://your.server/easyvcs-dir/webdav.php as URL

Or goto explorer - Tools - Map Network Drive and directly add http://your.server/easyvcs-dir/webdav.php as folder (this only seems to work if your phpEasyVCS installation requires no authentication)

Windows Vista/Windows 7

Preparation:

  • Go to Settings in your phpEasyVCS instance and make sure that authentication method is Digest.
  • Or, if you really want to use Basic authentication, follow the steps in KB841215: Set the DWORD registry entry BasicAuthLevel inHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters to 2 and restart Windows.

Goto explorer - Map Network Drive - Connect to a Web site and enter http://your.server/easyvcs-dir/webdav.php as URL.

Alternatives for Windows XP/Windows Vista/Windows 7

TotalCommander has a WebDAV plugin.

BitKinex - All-in-one FTP/SFTP/HTTP/WebDAV Client (Freeware)

  • When setting up the connection you need to specify first the server and then set easyvcs-dir/webdav.php as default directory.

NetDrive (free for home use): You can assign a drive letter to the WebDAV drive and use it like a local drive.

Problem Solving

The following is a list of problems with various WebDAV clients:

  • With Nautilus you get an error message when moving/renaming (this is a Nautilus bug). But the move is executed correctly and you will see it after a refresh (F5).
  • Windows XP: opening a file from a WebDAV drive, which is NOT mapped to a drive letter, will only work, if the opening program is WebDAV aware, like Microsoft Word.
  • Windows 7: Although connecting to a WebDAV drive without authentication by http works perfectly, connecting to the same WebDAV drive with basic authentication set up only displays grayed out entries, clicking on a file or folder will do nothing.

Comparison with other VCSes

phpEasyVCS is the only VCS which

  • is implemented in pure PHP,
  • stores the data in the file system, and
  • offers WebDAV access.

版权声明:本文为博主原创文章,未经博主允许不得转载。

以上就介绍了超好用的懒人webdav based on PHP个人云服服务搭建软件, 可用于zotero文献同步,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
哪些常见问题会导致PHP会话失败?哪些常见问题会导致PHP会话失败?Apr 25, 2025 am 12:16 AM

PHPSession失效的原因包括配置错误、Cookie问题和Session过期。1.配置错误:检查并设置正确的session.save_path。2.Cookie问题:确保Cookie设置正确。3.Session过期:调整session.gc_maxlifetime值以延长会话时间。

您如何在PHP中调试与会话相关的问题?您如何在PHP中调试与会话相关的问题?Apr 25, 2025 am 12:12 AM

在PHP中调试会话问题的方法包括:1.检查会话是否正确启动;2.验证会话ID的传递;3.检查会话数据的存储和读取;4.查看服务器配置。通过输出会话ID和数据、查看会话文件内容等方法,可以有效诊断和解决会话相关的问题。

如果session_start()被多次调用会发生什么?如果session_start()被多次调用会发生什么?Apr 25, 2025 am 12:06 AM

多次调用session_start()会导致警告信息和可能的数据覆盖。1)PHP会发出警告,提示session已启动。2)可能导致session数据意外覆盖。3)使用session_status()检查session状态,避免重复调用。

您如何在PHP中配置会话寿命?您如何在PHP中配置会话寿命?Apr 25, 2025 am 12:05 AM

在PHP中配置会话生命周期可以通过设置session.gc_maxlifetime和session.cookie_lifetime来实现。1)session.gc_maxlifetime控制服务器端会话数据的存活时间,2)session.cookie_lifetime控制客户端cookie的生命周期,设置为0时cookie在浏览器关闭时过期。

使用数据库存储会话的优点是什么?使用数据库存储会话的优点是什么?Apr 24, 2025 am 12:16 AM

使用数据库存储会话的主要优势包括持久性、可扩展性和安全性。1.持久性:即使服务器重启,会话数据也能保持不变。2.可扩展性:适用于分布式系统,确保会话数据在多服务器间同步。3.安全性:数据库提供加密存储,保护敏感信息。

您如何在PHP中实现自定义会话处理?您如何在PHP中实现自定义会话处理?Apr 24, 2025 am 12:16 AM

在PHP中实现自定义会话处理可以通过实现SessionHandlerInterface接口来完成。具体步骤包括:1)创建实现SessionHandlerInterface的类,如CustomSessionHandler;2)重写接口中的方法(如open,close,read,write,destroy,gc)来定义会话数据的生命周期和存储方式;3)在PHP脚本中注册自定义会话处理器并启动会话。这样可以将数据存储在MySQL、Redis等介质中,提升性能、安全性和可扩展性。

什么是会话ID?什么是会话ID?Apr 24, 2025 am 12:13 AM

SessionID是网络应用程序中用来跟踪用户会话状态的机制。1.它是一个随机生成的字符串,用于在用户与服务器之间的多次交互中保持用户的身份信息。2.服务器生成并通过cookie或URL参数发送给客户端,帮助在用户的多次请求中识别和关联这些请求。3.生成通常使用随机算法保证唯一性和不可预测性。4.在实际开发中,可以使用内存数据库如Redis来存储session数据,提升性能和安全性。

您如何在无状态环境(例如API)中处理会议?您如何在无状态环境(例如API)中处理会议?Apr 24, 2025 am 12:12 AM

在无状态环境如API中管理会话可以通过使用JWT或cookies来实现。1.JWT适合无状态和可扩展性,但大数据时体积大。2.Cookies更传统且易实现,但需谨慎配置以确保安全性。

See all articles

热AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover

AI Clothes Remover

用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool

Undress AI Tool

免费脱衣服图片

Clothoff.io

Clothoff.io

AI脱衣机

Video Face Swap

Video Face Swap

使用我们完全免费的人工智能换脸工具轻松在任何视频中换脸!

热工具

SublimeText3 英文版

SublimeText3 英文版

推荐:为Win版本,支持代码提示!

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

功能强大的PHP集成开发环境

MinGW - 适用于 Windows 的极简 GNU

MinGW - 适用于 Windows 的极简 GNU

这个项目正在迁移到osdn.net/projects/mingw的过程中,你可以继续在那里关注我们。MinGW:GNU编译器集合(GCC)的本地Windows移植版本,可自由分发的导入库和用于构建本地Windows应用程序的头文件;包括对MSVC运行时的扩展,以支持C99功能。MinGW的所有软件都可以在64位Windows平台上运行。

适用于 Eclipse 的 SAP NetWeaver 服务器适配器

适用于 Eclipse 的 SAP NetWeaver 服务器适配器

将Eclipse与SAP NetWeaver应用服务器集成。

Atom编辑器mac版下载

Atom编辑器mac版下载

最流行的的开源编辑器