FYI my environment are:
- Ubuntu 9.04 (Jaunty Jackalope)
- Apache 2.2
- download ZendFramework minimal at http://zendframework.com/download/latest
I use Zend Framework 1.8.3 that released on June 09, 2009. and keepfile at desktop - extract compress file to /usr/local/
pangpond@Julius:~$ sudo tar --directory=/usr/local/ -xzvf ./Desktop/ZendFramework-1.8.3-minimal.tar.gz
- rename extracted folder to ZendFrameworkCli
pangpond@Julius:~$ sudo mv /usr/local/ZendFramework-1.8.3-minimal /usr/local/ZendFrameworkCli
- open ~/.bashrc and uncomment following line
pangpond@Julius:~$ sudo vim ~/.bashrc
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi - open ~/.bash_aliases to add alias then close terminal and open a new terminal window to take effect.
pangpond@Julius:~$ sudo vim ~/.bash_aliases
alias zf='/usr/local/ZendFrameworkCli/bin/zf.sh' - now run zf command to check zf version
pangpond@Julius:~$ zf show version
Zend Framework Version: 1.8.3 - cd to your www root path and use zf create project projectname command to create project and tree (I create at store all project at ~/Sites)
pangpond@Julius:~$ cd ~/Sites/
pangpond@Julius:~/Sites$ zf create project zendframework - copy all Zend library to project library path
pangpond@Julius:~/Sites$ cp -R /usr/local/ZendFrameworkCli/library/Zend ~/Sites/zendframework/library/
- now I have to config virtualhost
pangpond@Julius:~/Sites$ sudo vim /etc/apache2/sites-enabled/000-default
ServerName zendframework
DocumentRoot /home/pangpond/Sites/zendframework/public
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /home/pangpond/Sites/zendframework/public/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory> - restart apache to take effect
pangpond@Julius:~/Sites$ sudo /etc/init.d/apache2 restart
- edit /etc/hosts file
pangpond@Julius:~/Sites$ sudo vim /etc/hosts
127.0.0.1 zendframework
ไม่มีความคิดเห็น:
แสดงความคิดเห็น