Pages

Thursday, 29 March 2012

OpenCms:一个基于JSP/MySQL(或其他类型的db)的cms

OpenCms 8.0.2 OpenCms是一个专业级别的开源网站内容管理系统。OpenCms可以非常容易的帮助建立和管理复杂的网站而无需专业的HTML知识。当使用一个复杂 的模板引擎来规划站点,它提供一个类似于我们熟知的office应用的所见即所得编辑器来帮助使用者创建内容。OpenCms是一个完全开源的软件,它不 需要任何许可费用。OpenCms基于JAVA和XML语言技术,因此它适合完全融入到现有的系统内部。OpenCms可以非常好的运行在一个完全的开源 环境中(例如:Linux、Apache、Tomcat、MySQL). 当然,也可以很好的运行于商业环境下(例如:Windows NT、IIS、BEA Weblogic、Oracle DB)。

功能特色:
OpenCms是真正的开放源代码软件
OpenCms使用LGPL许可
无需许可费用
OpenCms能自由从项目官方站点下载
特别适用于生成公司Web站点和Intranet
适用于已有IT基础设施的中大型企业
大多数特性是根据实际的客户需求开发的
高度灵活和可定制
使用了许多已验证的开源Java组件
核心系统的开源开发由Alkacon软件牵头
有活力的开发团体:订阅邮件列表超过1000
广泛的商业支持:超过50个官方解决方案提供者,200个以上的WEB公司提供技术.

下载地址: http://www.opencms.org/downloads/opencms/opencms_8.0.2.zip
解压这个zip文件,会出现一个opencms.war文件,用unzip  opencms.war命令解压这个war文件。然后访问www.urdomain.com:8080/opencms/setup,按屏幕的提示去做即可。
如果安装时,遇到提示:
"Validating Database Server Configuration
MySQL system variable 'max_allowed_packet' is set to 1048576 Byte (1MB).
Please note that it will not be possible for OpenCms to handle files bigger
than this value in the VFS.
Error while checking the server configuration!
*Your 'max_allowed_packet' variable is set to less than 16777216 Byte
(16MB).*
The required value for running OpenCms is at least 16MB.Please change your
MySQL configuration (in the my.ini or my.cnf file)."
请修改你的my.cnf文件,在文件最末尾加上:
max_allowed_packet = 16M然后重启mysql即可。(改为比16M更大的值,比如50M更好).安装好之后的cms地址为www.urdomain.com:8080/opencms/opencms,登录地址为
 www.urdomain.com:8080/opencms/opencms/system/login/,默认的用户名为Admin,注意不是admin,密码为admin,请登录后,点击preferences页面里的user data标签栏,进行密码的修改。

(安装方法:

Install OpenCms using the Setup-Wizard

Start the Setup-Wizard by pointing your webbrowser to http://localhost:8080/opencms/setup/. Depending on your configuration, you have to replace localhost with your servername. The port 8080 is only used if you start Tomcat in standalone mode.
Follow the instructions of the OpenCms Setup-Wizard. It will set up the OpenCms database and import all available modules into the system. For normal installations with MySql and Tomcat running on the same server, all default settings will fit your needs. If you are using different database users, be sure that they exist before creating the database tables and importing the modules.
Important: Make sure you disable all popup blockers and enable Javascript for the server URL you installed OpenCms on. Otherwise you will not be able to log in to the OpenCms Workplace.

Now your system is ready

Now your system is ready to use. You can login with username: Admin and password: admin. Please change this password as soon as possible. The login URL of OpenCms in a default configuration is: http://localhost:8080/opencms/opencms/system/login/.

Security issues

Finally after you have installed OpenCms you should have a look at the security settings.
First change the Admin user password of OpenCms by calling the user preferences (the "checkbox" icon in the top menu on the main screen of the Workplace).
Then you can add a password to the MySQL database. Enter the following commands at the MySQL command line.
use mysql;
insert into user values ('localhost', 'opencmsuser', password('XXXXX'),\
   'N','N','N','N','N','N','N','N','N','N','N','N','N','N');
insert into db values ('localhost', 'opencms', 'opencmsuser',\
   'Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');
flush privileges;
Make sure you replace opencmsuser and opencms with the name of your user and database in case you have changed them on the setup wizard.
Don't forget to add the new user and password to all connect strings of the database in your opencms.properties file. Only the new user can now connect to the OpenCms tables. For more information see the MySQL documentation。

from http://www.opencms.org/en/development/installation/server.html )

No comments:

Post a Comment