2
votes

I have been going through this page to install zend framework on my machine locally.

http://framework.zend.com/manual/en/zend.tool.framework.clitool.html

I can't get it recognize the command in my terminal "zf show version", it keeps coming back to me with command not found. I do have xampp installed on this machine and everytime I run the command "which php" it brings up my xampp folder and when I run php-i|grep include_path it brings up the include path from xampp. I can go to the Zend Server on my browser and see the include path, install path, etc. /usr/local/zend/share/ZendFramework..I can see where zf.php and zf.sh are. I have the proper libraries installed. I just want to be able to access my zf from the command line and it's not allowing me to. Is this because of xampp? I'm really confused. This is my first post on stack overflow :-)

2

2 Answers

1
votes

I got this working by going to my bashrc file located in the root. So in the terminal type cd /.. to the root and then type cd /etc. Just open that bashrc file and add an alias... alias zf='zf.sh', then do source bashrc in your terminal and you should be setup. Basically what I learned here is that any shortcut that you want to have instead of the long path, you have to make an alias for it in the bashrc file in order for it to work in the terminal. Maybe there is another way, but this is what worked for me

0
votes

My first Zend project was kind of a pain to get running. After a while of trying to get the simlink (symbolic link) to work. I ended out navigating to the folder where I want to setup my project and got the zf.sh running by entering the whole path

cd /var/www/
and then
/usr/local/zend/share/ZendFramework/bin/zf.sh create project project Name

or something like that