Zend Framework is an open-source, object-oriented web application framework implemented in PHP. How to install Zend Framework in a Linux server? Well, follow the steps given below.
Go to /opt, download the latest Zend Frame version from here and untar it.
cd /opt tar -xzvf ZendFramework-1.11.4.tar.gz cd ZendFramework-1.11.4
Find your main php.ini file and take a backup of it. Run the command given below. This will show you the main php.ini location.
php -i | grep php.ini cp -arp /usr/local/lib/php.ini /usr/local/lib/php.ini.bck
Edit the file
vi /usr/local/lib/php.ini
You can find a directive “include_path” and add the library folder “/opt/ZendFramework-1.11.4/library/” from the extracted tar file.
An example is given below.
include_path => .:/usr/lib/php:/usr/local/lib/php:/opt/ZendFramework-1.11.4/library/
Now copy the zf.sh and zf.php to the bin folder.
cp -arp /opt/ZendFramework-1.11.4/bin/zf.sh /usr/local/bin/ cp -arp /opt/ZendFramework-1.11.4/bin/zf.php /usr/local/bin/ cd /usr/local/bin/
Rename the zf.sh to zf
mv zf.sh zf
Check the working.
[root@server ~]# zf show version Zend Framework Version: 1.11.4
So that’s how you install Zend Framework!