Friday 23 May 2014

Zend Framework 2


Hello,

This is tutorials how to install ZF2:
  1. Upgrade your PHP version older than 5.3.23:
    • sudo add-apt-repository ppa:ondrej/php5
    • sudo apt-get update
    • sudo apt-get upgrade
    • sudo apt-get install php5
  2. Git project sample on Github:
    • https://github.com/zendframework/ZendSkeletonApplication
  3. Go to ZendSkeletonApplication directory:
    • php composer.phar self-update
    • php composer.phar create-project --repository-url="https://packages.zendframework.com"
  4. Create Virtualhost:
    • <virtualhost>
          ServerName zf2-tutorial.localhost
          DocumentRoot /path/to/zf2-tutorial/public
          SetEnv APPLICATION_ENV "development"
          <directory path="" public="" to="" zf2-tutorial="">
              DirectoryIndex index.php
              AllowOverride All
              Order allow,deny
              Allow from all
          </directory>
      </virtualhost>
  5. Now, ZendSkeletonApplication is your new ZF2 project

No comments:

Post a Comment