Hello Friends, if you are trying to install Zend Framework on linux, following steps will help you do so.
1. We will be using a repository
named remi for our installation. You don't need to know about repository,
just run one of following commands according to your server. This will
enable remi repository on your server.
rpm
-Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm (redhat/centos 5 32 bit)
rpm
-Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
(redhat/centos 5 64 bit)
rpm
-Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm (redhat/centos 6 32 bit)
rpm
-Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm (redhat/centos 5 64 bit)
2. Now we will install php-ZendFramwork
yum
--enablerepo=remi install php-ZendFramework
3. Now we have to create a Zend Project, go to any directory and run the
following
cd /home
zf create project abhishek
4. Now we have to make changes in apache file. Run following command:
vim /etc/httpd/conf/httpd.conf
Make a new Virtual Host:
<VirtualHost
*:80>
ServerAdmin superhero@gmail.com
DocumentRoot /home/abhishek/public
ServerName testingsite.com
ErrorLog logs/testing.com-error_log
CustomLog logs/testing.com-access_log
common
</VirtualHost>
Most People make mistake in third line.
Document root is public folder and not abhishek folder.
And its
Done!!!!!! Just open your browser and
type IP of your server or testingsite.com, whichever works for you and you will see the welcome screen of framework saying,
Welcome to the Zend Framework!
This is your project's main page
Enjoy!!
Comments
Post a Comment