Setting up zend framework on ubuntu server


Now i am going to install the Zend Framework. Download the most recent version from the Zend Framework website and extract it to the /opt folder.

To enable us to easily switch out different versions, we will create a symbolic link to this folder (just right click and select the ‘Make link’ option and name it ‘zend’ and place it to your favourite location in my case I placed it to /var/www/ )

Next, we will tell php to include the zend framework in the include_path.


sudo gedit /etc/php5/apache2/php.ini

Add/Change the include_path in to :


include_path = ".:/var/www/zend/library"

Note that I used the symbolic link in the include path.. This way, when there is a new version of ZF, we can just switch out the symlink without having to edit the ini file!

In order to use the zend framework command line tool (/var/www/zend/bin/zf.sh), we need to install the php command line interface (php5-cli).


sudo apt-get install php5-cli

Note that the CLI uses a different version of the php.ini file (NOT the one in the apache2 folder but in the cli folder!). We need to tell CLI also where the zend framework directory is located.


sudo gedit /etc/php5/cli/php.ini

and set:


include_path = ".:/var/www/zend/library"

The final step is to include the path to /opt/Zend/bin in the unix PATH variable (this way, you can use zf.sh instead of /var/www/ zend/bin/zf.sh). use the following command .

sudo gedit ~/.bashrc

Add the following line at the end:


PATH=/var/www/zend/bin:”${PATH}”

The Zend Framework relies on the apache “rewrite” module. So, go ahead and enable the “rewrite” module using the following command:


sudo a2enmod rewrite

Restart apache..


sudo /etc/init.d/apache2 restart

and you should be all set

Advertisements
  1. How to install UBUNTU SERVER quick and easy.Any questions just post them on the youtube channel.

  2. Great items from you, man. I have bear in mind your
    stuff previous to and you’re just extremely great. I really like what
    you have got here, really like what you’re stating and the way during which you are
    saying it. You’re making it enjoyable and you still care for to keep it wise.
    I cant wait to learn far more from you. That is really a wonderful website.

  3. What i don’t understood is if truth be told how you’re not
    actually much more well-appreciated than you may be
    right now. You’re so intelligent. You recognize thus significantly in terms
    of this subject, made me in my vidw imagine it from so many various angles.

    Its like meen and women aren’t fascinated until it is one thing to doo with Lady gaga!
    Your personal stuffs nice. All the time dral
    with it up!

  4. I see you don’t monetize your page, don’t waste your traffic, you can earn additional bucks every
    month because you’ve got hi quality content.
    If you want to know how to make extra money, search for: best adsense
    alternative Wrastain’s tools

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: