爱子日志

zenphoto相册安装

zenphoto是一款个人相册,全英文操作界面

1、首先,将zp-config.php.example重命名为zp-config.php,然后将

$conf['mysql_user'] = "user";
$conf['mysql_pass'] = "pass";
$conf['mysql_host'] = "localhost";
$conf['mysql_database'] = "database_name";
$conf['mysql_prefix'] = "";
$conf['gallery_title'] = "my photos";

更改为自己的数据库信息。

2、将

# htaccess file for zenphoto
# NOTE: Change the RewriteBase below to the absolute path to your zenphoto directory.

RewriteEngine On
# !!! Change this to the web path (eg: http://www.example.com/photos --> /photos) !!!
RewriteBase /zp
RewriteCond %{REQUEST_FILENAME} -f [NC,OR]
RewriteCond %{REQUEST_FILENAME} -d [NC]
RewriteRule ^.*$ - [R,L]
RewriteRule ^admin/?$ zen/admin.php [R,L]
RewriteRule ^page/([0-9]+)/?$ index.php?page=$1 [L,QSA]
RewriteRule ^([^/]+)/?$ index.php?album=$1 [L,QSA]
RewriteRule ^([^/]+)/page/([0-9]+)/?$ index.php?album=$1&page=$2 [L,QSA]
RewriteRule ^([^/]+)/image/(thumb|[0-9]{1,4})/([^/\\]+)$ zen/i.php?a=$1&i=$3&s=$2 [L,QSA]
RewriteRule ^([^/]+)/image/([^/\\]+)$ albums/$1/$2 [L]
RewriteRule ^([^/]+)/([^/\\]+)$ index.php?album=$1&image=$2 [L,QSA]


中的RewriteBase /zp更改为自己的相册地址(eg: http://www.example.com/photos --> /photos)

3、如果仍无法正确显示图片请将zen/zp-config.php中的

$conf['mod_rewrite'] = true;

改为

$conf['mod_rewrite'] = false;

.这样就一切OK了!
相册还没上传图片,浏览请见源子空间



From:http://www.shadowsky.cn/friend/ilove/blog/read.php?18
zenphoto:http://www.zenphoto.org/

下了好多个相册程序mrgreen准备弄个相册