วันจันทร์ที่ 13 ธันวาคม พ.ศ. 2553

set on ubuntu 9.04

This instruction will guideline you to install Zend Framework 1.8 on Ubuntu with Zend_Tool.
FYI my environment are:
  • Ubuntu 9.04 (Jaunty Jackalope)
  • Apache 2.2

  1. 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
  2. extract compress file to /usr/local/ pangpond@Julius:~$ sudo tar --directory=/usr/local/ -xzvf ./Desktop/ZendFramework-1.8.3-minimal.tar.gz
  3. rename extracted folder to ZendFrameworkCli pangpond@Julius:~$ sudo mv /usr/local/ZendFramework-1.8.3-minimal /usr/local/ZendFrameworkCli
  4. open ~/.bashrc and uncomment following line pangpond@Julius:~$ sudo vim ~/.bashrc

    if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
    fi
  5. 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'
  6. now run zf command to check zf version pangpond@Julius:~$ zf show version
    Zend Framework Version: 1.8.3
  7. 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
  8. copy all Zend library to project library path pangpond@Julius:~/Sites$ cp -R /usr/local/ZendFrameworkCli/library/Zend ~/Sites/zendframework/library/
  9. 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>
  10. restart apache to take effect pangpond@Julius:~/Sites$ sudo /etc/init.d/apache2 restart
  11. edit /etc/hosts file pangpond@Julius:~/Sites$ sudo vim /etc/hosts
    127.0.0.1 zendframework

ไม่มีความคิดเห็น:

แสดงความคิดเห็น