首页 > 代码库 > zf框架环境搭建

zf框架环境搭建

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