码迷,mamicode.com
首页 > 其他好文 > 详细

zf框架环境搭建

时间:2014-07-24 10:14:13      阅读:229      评论:0      收藏:0      [点我收藏+]

标签:des   http   os   文件   io   re   

apache配置:

1.....在#LoadModule vhost_alias_module modules/mod_vhost_alias.so后面加上


LoadModule php5_module C:/php5.3/php5apache2_2.dll
PHPIniDir "C:/php5.3/"
AddType application/x-httpd-php .php .html .phtml





php配置:

1,
打开extension=php_mysql.dll
extension=php_mysqli.dll

2
date.timezone = Asia/Shanghai


3
extension_dir = "ext"



zendframework配置
1。。
把解压的zend文件夹放到php5.3/includes文件夹中

2..
在php.ini中描述第一步操作
; Windows: "\path1;\path2"
include_path = ".;c:\php5.3\includes"

3
把zendframework的bin放到programs files(X86)
新建的zend文件夹中。在配置环境变量。zf命令新建工作目录

C:\php5.3;C:\Program Files (x86)\zend\bin;

4
配置http。conf,配置虚拟机

NameVirtualHost *:80

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        ServerName test.localhost

        SetEnv APPLICATION_ENV "development"
        DocumentRoot "d:\dev\web\test\public"
        <Directory "d:\dev\web\test\public">
                DirectoryIndex index.php
                Options Indexes FollowSymLinks MultiViews
                AllowOverride all
                Order allow,deny
                allow from all
        </Directory>

        ErrorLog logs/test_error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel error

        CustomLog logs/test_access.log combined
</VirtualHost>

5

打开rewrite...httpd.conf
LoadModule rewrite_module modules/mod_rewrite.so


6
在system32/drivers/etc/hosts中添加
127.0.0.1   www.localhost
127.0.0.1    test.localhost

zf框架环境搭建,布布扣,bubuko.com

zf框架环境搭建

标签:des   http   os   文件   io   re   

原文地址:http://www.cnblogs.com/breece/p/3864768.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!