Hello,
This is tutorials how to install ZF2:
- 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
- Git project sample on Github:
- https://github.com/zendframework/ZendSkeletonApplication
- Go to ZendSkeletonApplication directory:
- php composer.phar self-update
- php composer.phar create-project --repository-url="https://packages.zendframework.com"
- 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>
- Now, ZendSkeletonApplication is your new ZF2 project
No comments:
Post a Comment