Zend Server搭建网站备注

1Zend Server的使用

Zend Server自带phpapache,所以装zendserver的话不需要再安装其他任何东西。(mysql默认没有安装,可以自行设置)

2、工作路径配置:

Zend\Apache2\conf\httpd.conf中添加

Alias/test "F:/workbench/test/"

<Directory"F:/workbench/test">

DirectoryIndexindex.php index.htm index.html

Options-Indexes FollowSymLinks

AllowOverrideNone

Orderallow,deny

Allowfrom all

</Directory>

 

3、安装中常出现的问题:

1)安装Zend Server需安装社区版(community),免费,不需要序列号。

2)Internal Server Error原因:

aZend\ZendServer\etc\ZendEnablerConf.xml文件开头有乱码

b、时区设置有问题。时区设置有问题,有的可以运行有的不可以。时区设置在Zend\ZendServer\etc\php.ini中设置date.timezone = PRC 注意去掉前面的分号

4、配置虚拟主机:

apachehttpd.conf文件中,需要设置DocumentRootListen的端口,AllowOverride AllOptions All。然后添加如下代码:

<VirtualHost*:80>

ServerNamequickstart.localhost

DocumentRoot  "F:\workbench\quickstart\public"

<DirectoryF:\workbench\quickstart\public>

  Options +Indexes +FollowSymLinks +ExecCGI

      DirectoryIndex index.php

      AllowOverride All

      Order allow,deny

      Allow from all

</Directory>

</VirtualHost>

C:\Windows\System32\drivers\etc\host文件中添加  127.0.0.1 quickstart.localhost

5、导入数据表SQL命令:

use  dbname;

sourced:\wcnc_db.sql 

posted on 2012-08-30 14:17  mapleWizard  阅读(137)  评论(0编辑  收藏  举报

导航