從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,內容為,然后輸入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了 :)
參考文章
http://www.douzhe.com/article/data/2/649.html
新聞熱點
疑難解答