从http://prdownloads.sourceforge.net/lilina/lilina-0.7.tar.gz?download下载lilina最新版lilina-0.7.tar.gz,从http://cn2.php.net/get/php-4.3.9.tar.gz/from/a/mirror和http://apache.justdn.org/httpd/下载php-4.3.9.tar.gz和apache_1.3.33.tar.gz,用ftp将三个文件放到服务器上(/funpower)
1、 安装apache和php
#tar zxvf apache_1.3.33.tar.gz
#tar zxvf php-4.3.9.tar.gz
#cd apache_1.3.33
#./configure --prefix=/usr/local/apache
#cd php-4.3.9
#./configure --with-apache=../apache_1.3.33 --with-mysql --disable-debug --enable-track-vars
#cp php.ini-dist /usr/local/lib
#cd /usr/local/lib
#mv php.ini-dist php.ini
#cd apache_1.3.33
#./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.a
#make
#make install
配置/usr/local/apache/conf/httpd.conf
加入:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
并修改以下几项:
Servername funpower_info.3322.org
DirectoryIndex index.php
将apache加入到启动项:
#ee /etc/rc.local
加入如下一行:
/usr/local/apache/bin/apachectl start
重启服务器,在/usr/local/apache/htdocs下新建一个test.php,内容为 phpinfo(); ?>,然后输入http://yourdomain.com/test.php,如果能看到php-4.3.9的信息,则apache和php安装成功。
2、安装lilina-0.7
删除/usr/local/apache/htdocs下的全面内容,将lilina0.7文件夹下的所以内容复制过去,并作如下修改:
#chmod 777 cache
#chmod 777 .myfeeds.data
#chown -R nobody:nobody htdocs
配置conf.php文件,内容如下:
$BASEURL = 'http://lilina.sourceforge.net' ; // no trailling slash!
$USERNAME = 'funpower' ; //改自己的
$PASSWORD = '123456789' ; //改自己的
$SITETITLE = "funpower blog" ; //改自己的
$OWNERNAME = "guanjianfeng" ; //改自己的
$OWNEREMAIL = "guanjianfeng@jscpu.com" ; //改自己的
$DATAFILE = './.myfeeds.data' ; //不修改
$TIMEFILE = './.time.data' ; //不修改
$GOOGLE_KEY = '' ; // Use your Google WEB APIs key here. For info visit http://www.google.com/apis/
/*
IMPORTANT NOTE! Setting ENABLE_DELICIOUS to 1 will make lilina poll del.icio.us for tags.
THIS MAY RESULT TO DEL.ICIO.US BANNING YOUR IP!!!
Until del.icio.us officially allows such use, it is better to leave this to 0.
*/
$ENABLE_DELICIOUS = 0 ;
/*
Default cache expiration is set to 1 hour.
This can be overriden by loading index.php?force_update=1
*/
define('MAGPIE_CACHE_AGE',60 * 60);
?>
保存退出。重启服务器,打开首页,就能看到lilina-0.7的页面了,进入管理界面就能订阅你自己喜欢的rss了 :)