PogoPlug折腾全过程--安装迷你云1.1.9

前面的文章已经提到过http://blog.csdn.net/conupefox/article/details/9119503,不过有点小问题。而且用apache2感觉过于庞大,现在改成用lighttpd的。

大致过程差不多。

 

安装sqlite、lighttpd、php5

apt-get update
apt-get install sqlite
apt-get install lighttpd
apt-get install php5 php5-cgi php5-sqlite php5-mcrypt php5-mysql php5-gd


vi /etc/php5/cgi/php.ini
找到下面的内容,我这里都修改成了1000M。修改临时目录,我这里修改到可用空间足够的数据区,这样就能解决网页版上传大文件会失败的问题。

post_max_size = 1000M
upload_max_filesize = 1000M
upload_tmp_dir = /mnt/es2_1t/miniyun/upload_tmp_dir


编辑/etc/lighttpd/lighttpd.conf,临时目录要与php.ini里面的一致。通过$SERVER["socket"] == "0.0.0.0:80" {}可以增加监听的端口,我这里就监听了80和8088。80端口用于内网访问,由于ADSL已经被运营商封掉了80端口,所以外网访问需通过8088端口。

server.modules = (
        "mod_access",
        "mod_alias",
        "mod_accesslog",
        "mod_fastcgi",
        "mod_compress",
        "mod_redirect",
        "mod_rewrite",
)

server.document-root        = "/var/www"
server.upload-dirs          = ( "/mnt/es2_1t/miniyun/upload_tmp_dir" )
server.errorlog             = "/var/log/lighttpd/error.log"
server.pid-file             = "/var/run/lighttpd.pid"
server.username             = "www-data"
server.groupname            = "www-data"
server.port                 = 8088
$SERVER["socket"] == "0.0.0.0:80" {}

index-file.names            = ( "index.php", "index.html",
                                "index.htm", "default.htm",
                               " index.lighttpd.html" )

url.access-deny             = ( "~", ".inc" )

static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )

include_shell "/usr/share/lighttpd/use-ipv6.pl"

dir-listing.encoding        = "utf-8"
server.dir-listing          = "enable"

compress.cache-dir          = "/var/cache/lighttpd/compress/"
compress.filetype           = ( "application/x-javascript", "text/css", "text/html", "text/plain" )

include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"

fastcgi.server = ( ".php" => ((
                     "bin-path" => "/usr/bin/php-cgi",
                     "socket" => "/tmp/php.socket",
                     "max-procs" => 2,
                 )))


安装unzip,下载迷你云源代码

apt-get install unzip
cd /var/www
wget http://www.miniyun.cn/app/download/type/server/mime/zip
unzip zip
rm zip
chmod -R 777 ./assets/
chmod -R 777 ./protected/config/
chmod -R 777 ./protected/runtime/
chmod -R 777 ./statics/thumbnails/
chmod -R 777 ./statics/images/
chmod -R 777 ./upload/


下载Controller.rar补丁,1.1.9版的bug,官方说将在1.20版修复。
http://wiki.miniyun.cn/index.php?title=%E6%96%87%E4%BB%B6:Controller.rar
下载文件文件:Controller.rar,将其解压后得到Controller.php,然后将其覆盖文件{迷你云安装路径下\protected\components}

电脑访问 http://198.18.8.252

进行迷你云安装向导,数据库类型选择sqlite。数据库文件和数据源设置存放在数据分区里面。

超频到了850Mhz,基本可以满足内网分享使用。

 

Enjoy!!

原文首发CSDN博客,转载请保留作者和出处,谢谢。

你可能感兴趣的:(pogoplug,nas)