Thursday, June 9, 2011

install zend framework for local testing on ubuntu

first of all you have to install apache, php, mysql

sudo apt-get install php5 mysql-server apache2
its useful to add mod rewrite
sudo a2enmod
then choose rewrite

now download and install zend framework

follow the tutorial to create the first project.
some hints:
- add alias for zf (maybe in .bashrc)
alias zf='/opt/zend/share/ZendFramework/bin/zf.sh'
- after creating the project (zf create project projectName) add a symlink (or copy) the zend library folder

cd library; ln -s path/to/ZendFramework/library/Zend .

or
cd library; cp -r path/to/ZendFramework/library/Zend .

add the virtual host in /etc/apache2/httpd.conf

this allows to have more virtual servers automatically selected by the url

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.