Zend Framework Deployment( on Ubuntu)
1, Install Zend Framework from terminal
"sudo apt-get install zend-framework"
2, create your project
" zf create project 'project-name' "
3, Create virtual host
"cd /etc/apache2/sites-enable"
"sudo vim 000-defalts"
add
Alias /testzf/ "/path/to/quickstart/public"
-
SetEnv APPLICATION_ENV "development"
-
-
<Directory /path/to/quickstart/public>
-
DirectoryIndex index.php
-
AllowOverride All
-
Order allow,deny
-
Allow from all
-
</Directory>
/home/peyton/Desktop/zf/testproject/public/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
then you need to load rewrite module
In Ubuntu you just need to input
"sudo a2enmod rewrite"
"sudo service apache2 restart"
then the problem is solved
5, open "localhost/testzf/" to see the default zend framework page.