1. download and unzip the latest version of ZendFramework to /home/dan/
2. add the zend framework's library to PHP's include path:
$cd /etc/php5/apache2
$sudo emacs php.ini
find the include_path in the php.ini file and edit it:
include_path = "/home/dan/ZendFramework/library:.:/usr/share/php"
3. restart apache2: $sudo /etc/init.d/apache2 restart
4. create project:
$zf.sh create project quickstart
Issue:
1. make sure the ZendFramework's library folder is not empty.
2. if install ZendFramework by: sudo apt-get zend-framework
remove it by: sudo apt-get remove zend-framework
it might tell you:
The following packages were automatically installed and are no longer required:
libzend-framework-php linux-headers-2.6.28-11-generic linux-headers-2.6.28-11
Use 'apt-get autoremove' to remove them.
then run: sudo apt-get autoremove
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment