Movable Type 组件之:Image::Magick

一键搞定

yum install ImageMagick-perl

Movable Type 组件之:Image::Magick

Image::Magick

Your server does not have Image::Magick installed, or Image::Magick requires another module that is not installed. This module is needed if you would like to be able to create thumbnails of uploaded images. Please consult the installation instructions for help in installing Image::Magick.

手工安装Perl DBI DBD::MySQL

安装Movable Type的时候要用到这个数据库,如果你cpan 然后install DBD::MySQL出错的话就要手工安装的。。

先下载安装包:
[root@banyue.net]# wget http://search.cpan.org/CPAN/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.011.tar.gz

然后解压[root@banyue.net]#tar zxvf DBD-mysql-4.011.tar.gz
[root@banyue.net]# cd DBD-mysql-4.011
[root@banyue.net]# export LANG=C
[root@banyue.net]# perl Makefile.PL
[root@banyue.net] make && make install

收工。。

(越狱大结局片尾曲) 歌词及试听Lay It Down Slow

Lay it Down Slow

Lay it Down Slow(越狱大结局片尾曲) 歌词
Lay it Down Slow 
by Spiritualized 

if you got dreams in your heart 
why don’t you share them with me? 
and if dreams don’t come true 
i’ll make sure that you’re nightmares 
are through 

如果你心中有梦 
为何不与我共享 
即使梦想不能成真 
你的恶梦也会不再久长 

if you got pain in your heart 
why don’t you share it with me? 
and we’ll just wait and see 
if it’s happened what it used to be 

如果你心中有痛 
为何不让我同当 
我们一起静候命运 
看最终能跌落什么地方 

and lay it down slow 
lay it down free 
lay it down easy 
but lay it on me 
慢慢地卸下你的行囊 
     自由地搁浅你的心防 
     悠悠地放开 
     但请放在我的手掌 

if you’ve got love in your heart 
why don’t you keep it with mine? 
i can’t promise a miracle 
but i’ll always be trying 

如果你心中有爱 
为何不共我浅尝 
我不能承诺一个奇迹 
但我也努力地给你希望 

and lay it down slow 
lay it down free 
lay it down easy 
but lay it on me 

慢慢地卸下你的行囊 
自由地搁浅你的心防 
悠悠地放开 
但请放在我的手掌 

lay it down easy 
lay it on me
悠悠地放开 
但请放在我的手掌 

lay it down easy 
but lay it on me 
悠悠地放开 
但请放在我的手掌

CentOS 5.3 64位安装 php-eAccelerator

安装之前应确保系统里已经安装如下组件:
yum -y install php-devel
yum -y install autoconf
yum -y install automake
yum -y install libtool

然后 去这里http://bart.eaccelerator.net/source 下载 eaccelerator最新版。本文用的是:eaccelerator-0.9.5.3
unzip  eaccelerator-0.9.5.3.zip解压
进入这个目录 然后输入:phpize 回车,如果没有错误就可以开始编译了。

./configure
make
make install

完成之后会有如下提示: Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20060613/

记住这个路径,下面会用。

编辑php.ini 如果装了zend路径会有变化。。
加如下面的其中一个,,有两种运行方式一种PHP  一种zend任选其一

php extension

extension=”eaccelerator.so”
eaccelerator.shm_size=”16″
eaccelerator.cache_dir=”/tmp/eaccelerator”
eaccelerator.enable=”1″
eaccelerator.optimizer=”1″
eaccelerator.check_mtime=”1″
eaccelerator.debug=”0″
eaccelerator.filter=”"
eaccelerator.shm_max=”0″
eaccelerator.shm_ttl=”0″
eaccelerator.shm_prune_period=”0″
eaccelerator.shm_only=”0″
eaccelerator.compress=”1″
eaccelerator.compress_level=”9″

Zend extension

zend_extension=”/usr/lib64/php4/eaccelerator.so”
eaccelerator.shm_size=”16″
eaccelerator.cache_dir=”/tmp/eaccelerator”
eaccelerator.enable=”1″
eaccelerator.optimizer=”1″
eaccelerator.check_mtime=”1″
eaccelerator.debug=”0″
eaccelerator.filter=”"
eaccelerator.shm_max=”0″
eaccelerator.shm_ttl=”0″
eaccelerator.shm_prune_period=”0″
eaccelerator.shm_only=”0″
eaccelerator.compress=”1″
eaccelerator.compress_level=”9″

重启apache:service httpd restart

创建eaccelerator.cache_dir=”/tmp/eaccelerator”这个目录

mkdir /tmp/eaccelerator

chmod 0777 /tmp/eaccelerator

测试eaccelerator是不是已经工作:php -v 如果出现下面的信息就说明已经正常工作了:

Copyright (c) 1997-2009 The PHP Group

Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by eAccelerator

with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies

with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies

可以用网页来管理eAccelerator:
将eaccelerator安装目录下的control.php 复制到你的网页根目录也可以改成你喜欢的名字,编辑修改管理帐号密码:
/** config **/
$user = “banyue.net”;
$pw = “eAccelerator”;
修改php.ini加上:
eaccelerator.allowed_admin_path = “/var/www/html/banyue.net”(这个目录是你上传的目录)
最后service httpd restart  完工。好运!