折腾了一个上午,终于把我的 VPS 上的 Apache 跑着的相关服务,都切换到 Nginx 上了:
1. Blog 用的是 WordPress,原先是用 mod_php 跑着的,现在则换成了 php-fpm
2. Wiki 用的是 Trac,原先是用的 mod_python,现在用 tracd 直接起来,然后 Nginx 转发
3. Git 前端用的是 Gitweb,因为懒得再启一个 spawn-fcgi 了,所以干脆换成 GitPHP,同样通过 php-fpm 的方式跑着
4. Zotero 的 WebDAV 存储,由于好久都不用,直接停了,有时间再看看有没有什么轻便的替代方案吧

PS1:关于 Gentoo 上的 php-fpm 配置,见 http://bugs.gentoo.org/show_bug.cgi?id=208155http://bugs.gentoo.org/show_bug.cgi?id=301279
PS2:关于 Nginx 跑 WordPress 的 Permalink 设置,可以参考 http://blog.sjinks.pro/wordpress-plugins/nginx-compatibility/

Tags: , , , ,

Upgrade chinese

Wordpress March 31st, 2008

I’ve just upgraded my WordPress to version 2.5, and there are many changes in the administration interface. The admin UI looks clean and simple, much better than before. The multi-file upload with progress bar feature is so cool, and tag management is powerful. Plugin can be upgraded by filled ftp information now, so fancy :)
Continuing trying new features~

Tags: ,

Optimized my blog chinese

Wordpress February 23rd, 2008

I was so surprise when I used the Firebug to inspect homepage net load of my blog. It loaded 378K data, and most of them are js files…
I have investigated the return result and found this issue caused by following plugins:

  1. Social Bookmarks:
    1. prototype.js 62K
    2. effect.js 34K
    3. dragdrop.js 32K
    4. controls.js 29K
    5. niftycube.js 9K
    6. slider.js 12K
  2. WP Grins:
    1. prototype.js?ver=1.5.1.1 97K
    2. wp_grins_js 9K
  3. NextGEN Gallery:
    1. jquery.js?ver=1.2.2 30K
    2. thickbox-pack.js?ver=3.1.1 9K
    3. swfobject.js?ver=1.5 7K

These plugins take extra 330K data downloaded when activated, so crazy… So I deactivated Social Bookmarks and WP Grins, keep the NextGEN Gallery only.
And I have modified the configure file of nginx server, try to optimize static files’ performance :)

Tags: ,