How to install Zend Framework on Windows

前端 未结 8 1267
面向向阳花
面向向阳花 2021-02-01 05:13

\"installing Zend Framework is so easy!!!!\" yeah right...

Ok I\'m working with a beginner\'s book and the ONE thing that is not excessively detailed is the most importa

8条回答
  •  旧时难觅i
    2021-02-01 05:38

    Gal, I don't understand what do you want to do.

    There is no installation or configuration for the framework. You just have to

    1. Unpack the framework anywhere
    2. Create a project running zf create "myproject"
    3. Create a shourtcut/link in /library => root folder of the framework. You can also just unpack the whole framework in this folder (/library) but if you have many projects, you will end with many copies of the framework using diskspace.
    4. change you apache configuration for opening /myproject/public/index.php when redirecting the web browser to your site.

    I mean, this have nothing to do with zf, if you create a site in your computer, you have to tell Apache where is it.

    You always can run zf.bat writing the whole path. If zf.bat returns un error, then very probably you have problems with you php installation.

    Just in case it's helpful, this is my apache configuration (httpd.conf) for a project named zf_cms

    
    ServerAdmin alex@conexion-seo.com.mx
    DocumentRoot "C:\Users\alex\Documents\My Web Sites\zf_cms/public"
    ServerName zf_cms.conexion
    
    
        #DirectoryIndex index.php
        AllowOverride All
        Order allow,deny
        Allow from all
    
    

    Then you have to add this line to %windir%\system32\drivers\etc\hosts

    127.0.0.1     zf_cms.conexion
    

提交回复
热议问题