Search

Пользовательский поиск

Friday, 29 July 2011

Installing Zend Framework

You have many ways to start up the Zend Framework ,
I will describe in detail a few of them 



1. One way of them:

  sudo apt-get install zend-framework-bin



 2 Second way "Do it yourself":

First of all you'll need download the package:

   ZF 1.11.9 Minimal( zip , tar.gz )

Create a zend directory:

   mkdir zend

Extracting the files from a tar file:


   tar -xvf /home/umitay/Downloads/ZendFramework-1.11.9.tar.gz

Begin install the Zend_Tool:
 
    sudo cp bin/*  /usr/bin 

    ln -s /usr/bin/zf.sh  /usr/bin/zf

To run Zend_tool use the zf command



Additional notes

I would like that  all your projects  would have used one source.
For this purpose you need to copy "Zend" folder from library into php include path.

Get include path:
 php -i | grep include_path
 sudo cp -r Zend   /usr/share/php/

zf show version

cd /var/www

zf create project your_pr_name 

Including modules
sudo a2enmod rewrite

Including site

sudo nano /sites-available/your_pr_name

Paste
<VirtualHost *:80>
        ServerNameyour_pr_name
        DocumentRoot /var/www/yuor_pr_name/public
        SetEnv APPLICATION_ENV "development"
        AccessFileName /var/www/your_pr_name /public/.htaccess
        <Directory /var/www/links/your_pr_name/public>
            DirectoryIndex index.php
            AllowOverride All
            Order allow,deny
            Allow from all
        </Directory>
 </VirtualHost>




sudo a2ensite  your_pr_name
sudo nano /etc/hosts/ 
sudo apache2ctl restart