How to install Zend module via RPM?
These are the steps to install zend module via RPM.
1) Download
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
or
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
2)Install Zend Framework 1.11.3
yum --enablerepo=remi install php-ZendFramework
3)Install Zend Framework Full setup
yum --enablerepo=remi install php-ZendFramework* --exclude php-ZendFramework-Db-Adapter-Oracle
4)Custom setup
yum --enablerepo=remi install php-ZendFramework \
php-ZendFramework-Cache-Backend-Memcached php-ZendFramework-Db-Adapter-Mysqli \
php-ZendFramework-Dojo php-ZendFramework-Feed \ php-ZendFramework-Gdata \
php-ZendFramework-Pdf php-ZendFramework-Search-Lucene \
php-ZendFramework-Services php-ZendFramework-Soap php-ZendFramework-demos \
php-ZendFramework-extras php-ZendFramework-tests
5) Create New Zend test-project and Test That The Zend Framework is Working.
Create New Zend test-project and Test That The Zend Framework is Working
zf show version
Zend Framework Version: 1.11.3
6)Create new zend project
## Change to web directory ##
cd /var/www/html
## Create new Zend Framework project using zf command ##
zf create project test-project
Creating project at /var/www/html/test-project
Note: This command created a web project, for more information setting up your VHOST, please see docs/README
7)Create Link (symlink) / Copy Zend directory to your project directory
## Change directory to /var/www/html/test-project/library ##
cd test-project/library
## OR ##
cd /var/www/html/test-project/library
## Symlink Zend Framework on library path ##
ln -s /usr/share/php/Zend .
## OR ##
## Copy Zend Framework on library path ##
cp -R /usr/share/php/Zend .
8)Check test-project directory content
Should look like following (check also library/Zend):
test-project
|-- application
| |-- Bootstrap.php
| |-- configs
| | `-- application.ini
| |-- controllers
| | |-- ErrorController.php
| | `-- IndexController.php
| |-- models
| `-- views
| |-- helpers
| `-- scripts
| |-- error
| | `-- error.phtml
| `-- index
| `-- index.phtml
|-- docs
| `-- README.txt
|-- library
| `-- Zend -> /usr/share/php/Zend
|-- public
| `-- index.php
`-- tests
|-- application
| `-- bootstrap.php
|-- library
| `-- bootstrap.php
`-- phpunit.xml
16 directories, 11 files
9)Check index page on browser
Open following url http://localhost/test-project/public/ on your browser.
These are the steps to install zend module via RPM.
1) Download
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
or
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
2)Install Zend Framework 1.11.3
yum --enablerepo=remi install php-ZendFramework
3)Install Zend Framework Full setup
yum --enablerepo=remi install php-ZendFramework* --exclude php-ZendFramework-Db-Adapter-Oracle
4)Custom setup
yum --enablerepo=remi install php-ZendFramework \
php-ZendFramework-Cache-Backend-Memcached php-ZendFramework-Db-Adapter-Mysqli \
php-ZendFramework-Dojo php-ZendFramework-Feed \ php-ZendFramework-Gdata \
php-ZendFramework-Pdf php-ZendFramework-Search-Lucene \
php-ZendFramework-Services php-ZendFramework-Soap php-ZendFramework-demos \
php-ZendFramework-extras php-ZendFramework-tests
5) Create New Zend test-project and Test That The Zend Framework is Working.
Create New Zend test-project and Test That The Zend Framework is Working
zf show version
Zend Framework Version: 1.11.3
6)Create new zend project
## Change to web directory ##
cd /var/www/html
## Create new Zend Framework project using zf command ##
zf create project test-project
Creating project at /var/www/html/test-project
Note: This command created a web project, for more information setting up your VHOST, please see docs/README
7)Create Link (symlink) / Copy Zend directory to your project directory
## Change directory to /var/www/html/test-project/library ##
cd test-project/library
## OR ##
cd /var/www/html/test-project/library
## Symlink Zend Framework on library path ##
ln -s /usr/share/php/Zend .
## OR ##
## Copy Zend Framework on library path ##
cp -R /usr/share/php/Zend .
8)Check test-project directory content
Should look like following (check also library/Zend):
test-project
|-- application
| |-- Bootstrap.php
| |-- configs
| | `-- application.ini
| |-- controllers
| | |-- ErrorController.php
| | `-- IndexController.php
| |-- models
| `-- views
| |-- helpers
| `-- scripts
| |-- error
| | `-- error.phtml
| `-- index
| `-- index.phtml
|-- docs
| `-- README.txt
|-- library
| `-- Zend -> /usr/share/php/Zend
|-- public
| `-- index.php
`-- tests
|-- application
| `-- bootstrap.php
|-- library
| `-- bootstrap.php
`-- phpunit.xml
16 directories, 11 files
9)Check index page on browser
Open following url http://localhost/test-project/public/ on your browser.
No comments:
Post a Comment