Zend Server搭建网站备注
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?
轉載于:https://www.cnblogs.com/maplewizard/archive/2012/08/30/2942041.html
總結
以上是生活随笔為你收集整理的Zend Server搭建网站备注的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ASP.NET MVC中同步与异步
- 下一篇: golang 标准库间依赖的可视化展示