本中文手册由HEXU.INFO独立翻译整理。如果你对本手册有任何意见,请到我的网站:http://hexu.info/blog 提出,很高兴能和喜爱 Nucleus 的朋友交流,共同提高。另外,http://hexu.info/blog 还给你提供更多的支持,这些内容时刻都在增加着。如果你有时间和能力,欢迎加入我的行列,共同推动 Nucleus 的中文化和本地化。
Nucleus是一个文件管理系统(Content Management System ,CMS): 一套强有力的能让你管理维护一个或多个博客或者日记的PHP程序。Nucleus的主要功能如下:
安装Nucleus的服务器要求: (如果你不知道这些参数,亲询问你的系统管理员)
Nucleus是专门为那些要求能充分控制自己站点的人准备的。如果你只想用一种简单的方式来构建你的网站,或者根本不懂HTML,试试其他比较“简单”化的源码,比如:Blogger。
Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
Copyright (C) 2002-2005 The Nucleus Group
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Your possession of this software signifies that you agree to these terms. Please delete your copy of this software if you don't agree to these terms.
Nucleus经过以下步骤安装:
将文件包中的所有文件解压缩到你电脑上的某个目录中。保证解压缩后的文件目录结构保持不变。解压缩完成后,你将得到如下的目录结构(* 代表该目录下包含文件):
/* (系统主文件目录) /nucleus/* (管理主文件目录) /nucleus/javascript/* (javascript帮助代码目录) /nucleus/libs/* (Nucleus核心库文件目录) /nucleus/language/* (语言包文件目录) /nucleus/plugins/* (插件目录) /nucleus/xmlrpc/* (XML-RPC接口目录) /nucleus/documentation/* (文档 + 管理帮助目录) /nucleus/styles/* (文档 + 管理帮助风格目录) /nucleus/forms/* (表单式样目录) /extra/* (其他, e.g. needed files to enable fancy URLs) /skins/* (皮肤目录[导入的皮肤也存放于此]) /media/* (媒体文件目录[空的])
上传所有的文件到服务器,保证所有的php文件都是在ASCII模式下进行传输。如果用其他模式传输,程序运行将会出错。
用你的浏览器打开下面的地址,将 yoursite和yourpath 的内容改成你的服务器对应的内容。
http://www.yoursite.com/yourpath/install.php
该安装脚本将会提示你输入一些信息并完成大部分的安装工作。当安装成功以后,install.php 将会给你进一步的提示(你仍需要手工删除一些文件)。
安装完成后你就可以访问你的网站并进行管理了。更多安装问题请到HEXU查询。
由于Nucleus需要使用 mySQL 数据库,因此数据库的密码必须保存在PHP文件中。在多用户系统中,这将导致不可避免的安全风险:在某些系统中,其他用户能够读取你的登陆信息。你必须联系你的服务器管理员了解关于这方面的更详细的信息。
上面的问题对于所有需要连接数据库的PHP程序来说都是普遍存在的。作为用户,你对此无论作出什么都无法保证100%的安全,你要做的知识要注意这些潜在的危险。
Nucleus使用 cookies来保存用户登陆信息。这也会在 cookies 被泄漏后带来一定的安全风险。但你的密码并没有保存cookie当中,cookie中仅保存了用户名和一串随机字符串。这些信息可能会被用在另外的计算机上来模拟用户登陆。
如果你启用文件上传功能,你必须设置媒体目录的属性为777,这将导致服务器上任何人都可以在该目录下删除或添加文件。但如果你想要文件上传功能,这个风险无可避免。
跟其他博客和日记脚本不同,Nucleus不产生静态文档。也就是说,只要有文件请求,Nucleus就会运行php脚本并连接数据库来显示所请求的页面。
对于小网站来说,这个并没有太大的问题。但是对于那些每秒钟都有数百的点击量的网站来说,将会导致服务器的负担增加。但到目前为止还没有用户报告过这方面的问题(有些用户运行较大的网站,甚至在一个安装下设置30多个博客,都没有出现问题)。
Nucleus包括了一些转化脚本,能让你从一些老的博客程序中导入Nucleus博客。在带入过程中对数据没有任何破坏。
获取更多的信息,请到 Nucleus website 查询。目前能使用的工具仅有 Blogger 和 GreyMatter blogs。
Nucleus对于评论有如下限制:
以上这些限制都是程序内部设定的。
XML-RPC is a format for remote calls using XML messages. Sounds complex, but implementing an XML-RPC interface into an application allows other services to communicate with it.
Currently, there are three APIs supported: the Blogger API, the metaWeblog API, and the Movable Type API. If you want an examples of a client that uses these interfaces, try w.Bloggar (Windows) or Ecto (MacOS).
The available calls to the interface are described in the development documentation, which can be separately downloaded, or viewed online.
下面是一些关于Nucleus的最常见的问题,在请求帮助前请先阅读以下的FAQ:
Cannot send headers. Headers already sent...
config.php 文件的开头或结尾存在空白所引起的。检查 config.php 文件,看有没有空格或者空行存在于文件头的 <? 之前或文件尾的 ?> 之后。如果有,将其删除即可。另外该错误还可能是语言文件包或者其他插件包中的空格引起的。
一些已知的问题和BUGS:
No matter how hard we try, some people will be unintentionally overlooked in this section.
Many thanks should also go to all people who have helped Nucleus to become what it is today.