最近在网上看到了一个免费空间Hostinger,免费版包含了2G空间、100G月流量,每个用户可以创建两个免费空间,我用其中的一个安装了WordPress,用来当自己的Blog,效果可以看这里,另外一个安装OwnCloud.
OwnCloud是开源的私有云,服务器安装好后,可以用客户端进行同步,客户的包含了Windows、Mac、Linux以及各种手机系统。
下面就是我搭建OwnCloud的介绍:
<? // assuming owncloud-8.2.1.zip is in the same directory as the executing script. $file = ‘owncloud-8.2.1.zip‘; // get the absolute path to $file $path = pathinfo(realpath($file), PATHINFO_DIRNAME); $zip = new ZipArchive; $res = $zip->open($file); if ($res === TRUE) { // extract it to the path we determined above $zip->extractTo($path); $zip->close(); echo "WOOT! $file extracted to $path"; } else { echo "Doh! I couldn‘t open $file"; } ?>
有兴趣的也可以自己创建一个试试看,Hostinger的注册地址请点这里。
原文:http://www.cnblogs.com/liwp_Stephen/p/5074816.html