0

I am completely new with zend and Ubuntu as well.

Though I have configured Zend on my ubuntu system. but issue is that at each set I have to copy my Zend library to my project/library/.. else it arises 'require_once(): Failed opening required 'Zend/Application.php' error.

Is it necessory to copy each time my Zend library to my project/library location. Can't I use it globlally from my /opt/Zend/library/Zend where exactly I have put my Zend Library folder. What changes I need to make to use it globally for all project. Please help.

2 Answers 2

2

You can place Zend Framework source in any folder on your linux system, then just make symlink from _source_dir_/library/Zend into any project's library/Zend.

You can easy switch between different ZF versions (eg 1.12.x, 1.11.x) such way also if you need this.

ln -s _SOURCE_DIR_/library/Zend _TARGET_DIR_/library/Zend
Sign up to request clarification or add additional context in comments.

1 Comment

Can you please tell me how to symlink my /opt/Zend/library/Zend folder so it can be use as globally.
1

An easier way for Linux users. Type in terminal

sudo apt-get install zend-framework

You need to remove comment in first line from file /etc/php5/apache2/conf.d/zend-framework.ini

;include_path=${include_path} ":/usr/share/php/libzend-framework-php"

Just remove this semicolon(;) from from the beginning.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.