eZ publish 3 安装指南
---------------------
这个文档包括如何安装eZ publish 3到windows,Linux和freeBSD的快速安装指南。

请吧有关这个安装文件的反馈和有关eZ publish 3的反馈发送到beta@ez.no

要得到更多的eZ publish 3文档:
http://ez.no/sdk
http://ez.no/manual

离线的文档请参看:
http://yourhost/index.php/sdk
http://yourhost/index.php/manual

http://yourhost/sdk
http://yourhost/manual

内容
----
1. eZ publish 3 需求
2. eZ publish 在Linux和FreeBSD上安装
2.1 数据库设置
2.1.1 MySQL
2.1.2 PostgeSQL
2.2 演示数据
2.3 配置eZ publish
2.4 虚拟主机设置
3. eZ publish 在Windows上安装
3.1 数据库设置
3.1.1 MySQL
3.2 演示数据
3.3 配置eZ publish
3.4 虚拟主机安装

1. eZ publish 3 需求
--------------------
- PHP >= 4.2.3 版本
http://www.php.net
- Apache 1.3 (apache 2.0 可/不可运行)
http://www.apache.org
- MySQL或PostgreSQL数据库
http://www.mysql.org
http://www.postgresql.org
- ImageMagick 和/或 GD编译的PHP版本用于图像转换(不需要)
http://www.imagemagick.org

这些程序的安装在他们各自的主页上都有详细的文档,因此我这里将不介绍。

2. 在Linux和FreeBSD安装eZ publish
---------------------------------
1. 解压缩文件ezpublish-xxx.tar.gz到<httproot>目录
$ tar xvfz ezpublish-xxx -C <httproot>
2. $ cd <httproot>/ezpublish-xxx/
3. $ bin/modfix.sh

2.1 数据库设置
--------------
2.1.1 MySQL
我们需要登录,建立一个新数据库,赋予用户权限并加入一个数据库。

1. $ mysql -u root -p <password>
2. 你现在应该在mysql> 提示符下
mysql> create database <name_of_database>;
3. mysql> grant all on <name_of_database>.* to <user>@localhost identified by '<password>';
(这个命令将同样建立制定的用户并附加相关的权限。)
4. 如果你不想演示数据:
$ mysql -u<user> -p<password> <name_of_database> < <httproot>/ezpublish-xxx/kernel/sql/mysql/kernel_schema.sql
$ mysql -u<user> -p<password> <name_of_database> < <httproot>/ezpublish-xxx/kernel/sql/mysql/cleandata.sql

如果你想要演示数据:
$ mysql -u<user> -p<password> <name_of_database> < <httproot>/ezpublish-xxx/kernel/sql/mysql/kernel_schema.sql
$ mysql -u<user> -p<password> <name_of_database> < <httproot>/ezpublish-xxx/kernel/sql/mysql/demodata.sql

2.1.2 PosgreSQL
我们需要登录,建立一个新数据库,赋予用户权限并加入一个数据库。

1. $ su <postgres_super_user>
2. $ createuser <user>
3. $ createdb <name_of_database>
4. 如果你不想演示数据:
4. $ psql -U<user> <name_of_database> < <httproot>/ezpublish-xxx/kernel/sql/postgresql/kernel_schema.sql
$ psql -U<user> <name_of_database> < <httproot>/ezpublish-xxx/kernel/sql/postgresql/cleandata.sql

如果你想要演示数据:
现在PostgreSQL没有演示数据。

2.2 演示数据
-------------
演示数据仅仅在MySQL数据库中有,在你处理前,请确认你已经安装了demodata.sql文件
要安装所有的演示数据,你还要打开var.tgz数据包:

1. $ cd <httproot>/ezpublish-xxx/
2. $ tar xfvz var.tgz
3. $ bin/modfix.sh

2.3 配置eZ publish
------------------
用你喜欢的编辑器打开<httproot>/ezpublish-xxx/settings/site.ini,设置正确的[DatabaseSettings]段落.
(除了直接使用这个文件,你可以建立一个文件名叫<httproot>/ezpublish-xxx/settings/override.site.ini.append
Here you can override settings in site.ini,仅仅添加你需要的部分.)你需要选择你想用的数据库参数,数据库主机名字,用户名,口令和数据库名字等。

[DatabaseSettings]
# 使用ezmysql 或者 ezpostgresql
DatabaseImplementation=ezpostgresql
# 需要连接的数据库服务器名字
Server=localhost
# 数据库用户名字
User=<user>
# 数据库用户口令
Password=<password>
# 在以前步骤中你建立的数据库名字
Database=<name_of_database>

2.4 虚拟主机设置
----------------
你可使用虚拟主机设置的方式使用eZ publish。当使用虚拟主机的时候,你不需要特别指定URL中的index.php。下边就是一个虚拟主机设置的例子。把这些放置到apache的配置文件中,然后重新启动apache即可。

<VirtualHost 10.0.0.1>
<Directory <httproot>/ezpublish-xxx/>
Options FollowSymLinks Indexes ExecCGI
AllowOverride None
</Directory>

RewriteEngine On
RewriteRule !/.(gif|css|jpg|png)$ <httproot>/ezpublish-xxx/index.php

ServerAdmin root@localhost
DocumentRoot <httproot>/ezpublish-xxx/
ServerName 10.0.0.1
</VirtualHost>

3. 在Windows上安装eZ publish
----------------------------
1. 解压缩ezpublish-xxx.tar.gz到<httproot>目录
使用一个支持文件类型.tar.gz程序,比如Winzip。
2. 到目录<httproot>/ezpublish-xxx
3. 确认目录var/cache/ini存在,如果不存在建立它!

3.1 数据库设置
--------------
3.1.1 MySQL
我们需要登录,建立一个新数据库,然后赋予一个用户权限并插入数据库

1. 打开windows的控制台(根据你的windows版本,选择:开始->运行->cmd.exe 或 开始->运行->command.exe)
2. 到你的mysql目录找到mysql.exe文件(应该在bin/目录下)
2. 运行: mysql.exe -u root -p <mysql口令>
3. 你现在应该在mysql>提示符下,输入下面的语句:
mysql> create database <name_of_database>;
4. mysql> grant all on <name_of_database>.* to <user>@localhost identified by '<口令>';
(这个命令将同样建立制定的用户并附加相关的权限。)
5. 如果你不需要演示数据:
$ mysql.exe -u<user> -p<password> <name_of_database> < <httproot>/ezpublish-xxx/kernel/sql/mysql/kernel_schema.sql
$ mysql.exe -u<user> -p<password> <name_of_database> < <httproot>/ezpublish-xxx/kernel/sql/mysql/cleandata.sql
如果你需要演示数据:
$ mysql.exe -u<user> -p<password> <name_of_database> < <httproot>/ezpublish-xxx/kernel/sql/mysql/kernel_schema.sql
$ mysql.exe -u<user> -p<password> <name_of_database> < <httproot>/ezpublish-xxx/kernel/sql/mysql/demodata.sql

译者注:可选择phpmyadim工具,这是一个更方便的管理mysql的PHP工具。

3.2 演示数据
-------------
演示数据仅仅对于mysql数据库有,在你处理下面的步骤之前,你需要确认你安装的数据库是安装的demodata.sql而不是cleandata.sql文件。
要安装所有的演示数据,你还需要做最后一个步骤:
1. 到<httproot>/ezpublish-xxx目录
2. 解压缩var.tgz到<httproot>/ezpublish-xxx

3.3 Configure eZ publish
------------------------
Open <httproot>/ezpublish-xxx/settings/site.ini in notepad and set
the correct settings in the [DatabaseSettings] section.
You need to set what database implementation you use, hostname of database
server to connect to, user name, password, database name.
(Instead of using this file, you can create a file called
<httproot>/ezpublish-xxx/settings/override.site.ini.append
Here you can override settings in site.ini. Add only the parts you need.)

[DatabaseSettings]
# Use either ezmysql or ezpostgresql
DatabaseImplementation=ezpostgresql
# Name of server to connect to
Server=localhost
# DB user name
User=<user>
# DB Password
Password=<password>
# database name you have created on previous step
Database=<name_of_database>

3.4 Virtualhost setup
---------------------
You can use eZ publish with a virtualhost setup. When using
a virtualhost you don't need to specify the index.php in the URL.

Make sure these lines exists in your apache configfile and is not commented out:
LoadModule rewrite_module modules/mod_rewrite.so
AddModule mod_rewrite.c

Below is a sample configuration for virtualhost setup. Include this in
your apache config file and restart apache when you are done.

<VirtualHost <your_ip_adress>>
<Directory <httproot>/ezpublish-xxx/>
Options FollowSymLinks Indexes ExecCGI
AllowOverride None
</Directory>

RewriteEngine On
RewriteRule !/.(gif|css|jpg|png|jar)$ <httproot>ezpublish-xxx/index.php

ServerAdmin root@localhost
DocumentRoot <httproot>/ezpublish-xxx/
ServerName <your_ip_adress>
</VirtualHost>

That's it,

Enjoy!

- eZ publish team

eZ publish 3 安装指南相关推荐

  1. eZ Publish 的 Site.INI文件的中文翻译

    Site.INI文件的中文翻译 #?ini charset="iso-8859-1"? # eZ publish 配置文件 # 注意:并不建议直接修改这个文件,最好是写一个这个文件 ...

  2. eZ Publish 的文章

    eZ Publish 的文章 http://www.irmagic.com/irphoto_f ... 0dac&forumid=10 eZ的部分文章翻译 eZ publish 3 READM ...

  3. CMS 平台: Drupal, eZ Publish, WordPress, CMS Made Simple 横向比较

    世界上没有最好的 CMS,只有最适合的,最近的 DrupalCamp 大会在芬兰赫尔辛基召开,一家叫 Exove 当地公司提供了一个演示,对四大 CMS 平台,Drupal , WordPress , ...

  4. eZ Publish 2013.4 发布,CMS 内容管理系统

    eZ Publish 2013.4 修复了 60 个bug,62 个 pull-request 合并和两个增强. eZ publish是一个专业的开源内容管理系统(CMS)和一个开发框架(CMF).作 ...

  5. app.publish_获取eZ Publish 5.x以便在Homestead上工作的13个步骤

    app.publish I have since taken another look at eZ Publish (now eZ Platform) and things have improved ...

  6. [eZ publish] fetch_alias() and fetch()

    When going through the manual, we can know that, fetch_alias() can be thought of as a configuration- ...

  7. symfony框架_为什么我们放弃传统的Symfony框架

    symfony框架 一个成功的组织为什么要抛弃一个拥有活跃的开发人员社区的优秀开源Web开发平台? 这就是我要讲的故事. 如果您不熟悉eZ Systems的名称,请允许我们自我介绍:eZ是商业开源软件 ...

  8. 开源之旅之开源企业软件采购指南

    开源之旅之开源企业软件采购指南 ( 2006-02-06 10:31:09)   [导读]:从开源数据库.应用服务器,到开源的Web服务器,我们已经带您领略开源软件世界的旖旎风光.此次的"开 ...

  9. sublime text plugins

    Sublime Text 插件,HTML+CSS+JAVASCRIPT+JSON快速格式化:  htmlpretty 快捷键:Ctrl+Shift+H Essential Sublime Text 2 ...

最新文章

  1. 从Java到Kotlin(五)
  2. 可以看到对方是否打开_打开手机实景地图,连你家门口都可以清晰看到,方便又好用...
  3. 神策数据钟秉哲:一文了解用户标签画像,从洞察到突破
  4. python format用法
  5. FXK Javascript
  6. 最近安装prestashop遇到莫名其妙的问题。突然毛瑟顿开了,create default language就出现错误...
  7. Element-UI中Drawer抽屉去除标题自带蓝色框
  8. 知识表示与知识图谱--介绍
  9. GitLab的CICD配置文件.gitlab-ci.yml
  10. matlab实时系统时间,转--MATLAB——时间,日期及显示格式
  11. Linux 系统下对目录扩容的方法
  12. salesforce 零基础学习(三十二)通过Streams和DOM方式读写XML
  13. java基础_day02
  14. 103 规约分析总结
  15. 谈一谈凑单页的那些优雅设计
  16. dataframe读取以文本形式储存的excel中的数字
  17. 笔记本电脑触摸板无法使用(失灵)解决方案 (win10和win7通用)
  18. 3D视觉感知市场规模现状及行业发展前景分析
  19. YOLO工程代码如何在windows上配置和运行!window上YOLO训练样本的制作
  20. Python框架之UnitTest

热门文章

  1. npm 安装axios和使用增删改查
  2. VS 错误: 未找到与约束contractname Microsoft.VisualStudio.Utilities.IContentTypeRegistryService...
  3. Python-三元运算符和lambda表达式
  4. windows下配置nginx+php环境
  5. 简述面向对象中__new__和__init__区别,这道题朝简单!
  6. jquery.ajax之beforeSend方法使用介绍
  7. (转)淘淘商城系列——导入商品数据到索引库——dao层
  8. 用纯css改变下拉列表select框的默认样式
  9. 《深度学习 500 问》已更新,GitHub 标星 2.6W
  10. PyTorch 1.0 中文官方教程:用例子学习 PyTorch