1、Zend Server的使用
Zend Server自带php和apache,所以装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原因:
a、Zend\ZendServer\etc\ZendEnablerConf.xml文件开头有乱码
b、时区设置有问题。时区设置有问题,有的可以运行有的不可以。时区设置在Zend\ZendServer\etc\php.ini中设置date.timezone = PRC 注意去掉前面的分号
4、配置虚拟主机:
在apache的httpd.conf文件中,需要设置DocumentRoot,Listen的端口,AllowOverride All,Options 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