How to install Zend Framework on Windows

Viewed 40565

"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 important part: Installing the darn thing. After browsing the quickstart guide for hours, all it said was:

"download Zend [...] add the include directory (bla bla) and YOU'RE DONE!"

right, i'm done using Zend.

Ok, not really, not yet anyway. I beg of you people, I wanna go to bed, please tell me how (in simple 6th grade detail) to install the framework. I've got the unzipped folder in my htdocs directory, and I placed zf.bat+zf.php in the htdocs root.

What's next?

thank you so much.

8 Answers

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

<VirtualHost *:80>
ServerAdmin alex@conexion-seo.com.mx
DocumentRoot "C:\Users\alex\Documents\My Web Sites\zf_cms/public"
ServerName zf_cms.conexion

<Directory "C:\Users\alex\Documents\My Web Sites\zf_cms/public">
    #DirectoryIndex index.php
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

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

127.0.0.1     zf_cms.conexion
Related