Try this:
-bash-3.00$ ls -la /usr/local/lib | grep php drwxr-xr-x 14 root root 4096 May 13 10:17 php -rw-r--r-- 1 root root 44292 May 12 16:51 php.ini
Note that /usr/local/lib/ will vary on different systems. But I found my php directory next to my php.ini. So it is probably a good idea to look for the php.ini.
Put zf.sh and zf.php inside:
/usr/local/bin
Again, this might vary in your system.
The ZF download:
library |--- Zend |--- /*Zend Framework files*/ |--- /* more ZF files */
Copy library/Zend to:
/usr/local/lib/php
So you php folder (/usr/local/lib/php) will have the following:
-bash-3.00$ pwd /usr/local/lib/php -bash-3.00$ ls -la total 232 drwxr-xr-x 14 root root 4096 May 13 10:17 . drwxr-xr-x 6 root root 4096 May 12 16:51 .. drwxr-xr-x 2 root root 4096 Apr 24 2007 Archive drwxr-xr-x 2 root root 4096 May 13 09:49 build drwxr-xr-x 3 root root 4096 Apr 24 2007 .channels drwxr-xr-x 2 root root 4096 May 13 09:49 Console drwxr-xr-x 4 root root 4096 May 13 09:49 data -rw-r--r-- 1 root root 2459 May 13 09:49 .depdb -rw-r--r-- 1 root root 0 May 13 09:49 .depdblock drwxr-xr-x 5 root root 4096 May 13 09:49 doc drwxr-xr-x 3 root root 4096 Sep 4 2008 extensions -rw-r--r-- 1 root root 7134 May 13 09:49 .filemap drwxr-xr-x 2 root root 4096 May 13 10:32 library -rw-r--r-- 1 root root 0 May 13 09:49 .lock drwxr-xr-x 2 root root 4096 May 13 09:49 OS drwxr-xr-x 11 root root 4096 May 13 09:49 PEAR -rw-r--r-- 1 root root 15585 May 13 09:49 pearcmd.php -rw-r--r-- 1 root root 34813 May 13 09:49 PEAR.php -rw-r--r-- 1 root root 1806 May 13 09:49 peclcmd.php drwxr-xr-x 4 root root 4096 May 13 09:49 .registry drwxr-xr-x 3 root root 4096 May 13 09:49 Structures -rw-r--r-- 1 root root 19933 May 13 09:49 System.php drwxr-xr-x 3 root root 4096 May 13 09:49 test
See the library in the file list? That folder should contain the Zend folder too.
Hopefully I got that right. This is what I can remember from yesterday while setting it up.
BUT, if you are too lazy to do all those things. You can just go to the zf.sh found in the library/bin folder of the ZF download.
-bash-3.00$ pwd /opt/apache2/htdocs/apps/ZendFramework -bash-3.00$ ls -la total 56 drwxrwxr-x 4 webmaster webmaster 4096 May 13 01:53 . drwxr-xr-x 31 webmaster webmaster 4096 May 13 10:35 .. drwxrwxr-x 2 webmaster webmaster 4096 May 12 23:47 bin -rw-rw-r-- 1 webmaster webmaster 3438 May 12 23:44 INSTALL.txt drwxrwxr-x 3 webmaster webmaster 4096 May 12 23:46 library -rw-rw-r-- 1 webmaster webmaster 1547 May 12 23:44 LICENSE.txt -rw-rw-r-- 1 webmaster webmaster 3628 May 13 01:53 README.txt -bash-3.00$ cd bin -bash-3.00$ ls -la total 40 drwxrwxr-x 2 webmaster webmaster 4096 May 12 23:47 . drwxrwxr-x 4 webmaster webmaster 4096 May 13 01:53 .. -rwxrwxr-x 1 webmaster webmaster 1258 May 12 23:44 zf.bat -rwxrwxr-x 1 webmaster webmaster 3004 May 12 23:44 zf.php -rwxrwxr-x 1 webmaster webmaster 1402 May 12 23:44 zf.sh -bash-3.00$ ./zf.sh show version Zend Framework Version: 1.8.1
Should work!