Archive

About this site

搬家的时候没有做好功课,错误的选择了RCN做网络接入。天杀的RCN封锁了所有的80端口,美名其曰为了保护用户免受病毒伤害。

无奈只好把blog从pogoplug上面搬回wordpress.com,又做了域名绑定,看来以后一段时间会比较少折腾web hosting了。

图片导入挺方便的,但是其他上传的附件都失效了,所幸其他附件也就只有代码,于是开了一个github账号把代码挂到上面去了。

上天保佑没有80端口的人民⋯⋯

Finally I got my own server. It looks like:

Well, it’s not a rack nor a blade nor a tower. It’s just a pogoplug based on Marvell’s plug computer architecture with an ARM cpu running plugbox linux. But it is small, noiseless, and power-save.

Now this WordPress blog is running on this server. Lighttpd + FastCGI + PHP + MySQL are chosen to support WordPress. I guess Lighttpd should be smaller and faster than Apache. For database, I really want to use some lightweight database, such as SQLite, rather than MySQL. But I don’t know whether WordPress can provide a good support for SQLite. So I give up this thought. All of these softwares are running on Plugbox Linux, a linux distribution similar to Archlinux but is designed to support Marvell’s ARM cpu.

For those who also want to turn pogoplug into a linux web server, there are some tutorials on plugapps site, but some of these documents are out of date or not for Plugbox linux. And Lifehacker has a wonderful guide for turning a pogoplug into a LAMP server. Generally you can just follow this guide to make your own server.

Here are some tips that are not mentioned in Lifehacker’s guide:

  1. If you encounter some glibc compatibility problem when installing softwares, run pacman -Syyu to do a full update to your system.
  2. Make sure to create a mysql group and a mysql user before you install MySQL.
  3. If MySQL service can’t start and show some error like /var/run/mysql.sock not found, you can just use touch to create one, but remember to assign a right permission such that user mysql can read and write it. I was stuck on this for a long time.
  4. When WordPress has been installed and it can not find any plugins or themes you installed, just check the permission of related files again and correct it if user http can’t read it.


###Update Oct. 25, 2010###

As MySQL made this server quite slow, I removed the need for MySQL by using Pdo plugin for WordPress and SQLite database, which brings a considerable speed improvement.

###Update Jan. 25, 2011###

There is a modified firmware that can enable the total 256mb RAM in pogoplug v2 “pink”. You can get an installation instruction from this link. Remember to boot to the original PogoPlug OS before starting the update. The flash_erase program can be retrieved via

wget http://jeff.doozan.com/debian/uboot/flash_erase