I’ve recently started looking at the ZEND framework for PHP and wanted to know how to install and run it on my Windows XAMMP development environment.
Norman Kosmal has a nice post on how to do thisĀ here and the Zend folk have a nice quick-start guide here
- Ruby and PHP are the Leading Web Development Languages according to Sun’s Tim Bray Tim Bray, director of Web Technologies at Sun Microsystems, said...
- BuildingWebApps.com – A great resource for Ruby on Rails Developers I know this has nothing, well almost nothing, to do...
Posted in
May 26th, 2011 at 12:46 pm
1) It is assume that XAMPP is installed on your windows system
a)Must have the mod_rewrite extension installed and configured
b)Must also ensure that Apache is configured to support .htaccess files.
AllowOverride All
2) Zend is easy to get up and running on XAMPP.
3) Download latest (Zend Framework 1.11.6) Full from link >> http://framework.zend.com/download/latest
a)Create folder named “ZendFramework” at C:\xampp\php path.
b)Uncompress “Zend Framework 1.11.6.zip” then go to library >> Zend folder copy all the content and paste
in above created ZendFramework folder at C:\xampp\php\ZendFramework
4) Then make sure to change the include path in
\xampp\php\php.ini
append include_path with new ;C:\xampp\php\ZendFramework
It should look something like this:
include_path = “.;C:\xampp\php\pear\;C:\xampp\php\ZendFramework”
>>re-start the server
Installing QuickStart Guestbook Example by zend
a) Download “ZendFrameworkQuickstart.zip” from http://framework.zend.com/manual/en/learning.quickstart.intro.html
b) For convenience create a project named “zendQuickStart” inside xampp`s htdocs folder, because apache serves files from there.
c) Uncompress “ZendFrameworkQuickstart.zip” and Copy content of project folder “zendQuickStart”
d) Create VirtualHost on XAMPP
For that make changes in below mention file
>> C:\xampp\apache\conf\extra\httpd-vhosts.conf
DocumentRoot “C:/xampp/htdocs/zendQuickStart/public”
ServerName *
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
>>re-start the server
e) Quickstart uses the sqlite database so make sure the below extension are enable in php.ini file
extension=php_pdo.dll
extension=php_pdo_sqlite.dll
>>re-start the server
f) now access http://localhost/
Creating zend project scaleton
a) Download “ZendFramework-1.11.6-minimal.zip” from path >> http://framework.zend.com/download/latest
a) Create folder named “ZendFrameworkCli” at path C:/Program Files
c) Uncompress above folder and copy “bin” and “library” folder and paste in “ZendFrameworkCli” at path C:/Program Files
d) Now Right click on “My Computer” click on properties >> Advance >> Enviroment Variables >>
select CLASSPATH under System Varibles click on Edit button and append ;C:\xampp\php to existing value.
f) Run “cmd” command and go to path C:\Progam Files\ZendFrameworkCli\bin>
g) Type below command to check zend verion
C:\Progam Files\ZendFrameworkCli\bin>zf show version
you will see
Zend Framework Version 1.11.6
h) Now Type below command to create project
C:\Progam Files\ZendFrameworkCli\bin>zf create project C:/xampp/htdocs/zfmyfirstproject
This will create a zend framework folder structure for you.
Copy tge Zend folder from ZendFramework-1.11.6-minimal/library and paste in C:/xampp/htdocs/zfmyfirstproject/library
For more details refer pdf
May 26th, 2011 at 12:49 pm
http://www.akrabat.com/wp-content/uploads/Getting-Started-with-Zend-Framework.pdf
May 26th, 2011 at 2:23 pm
@Pankaj – Thanks for the detailed instructions
May 30th, 2011 at 11:35 pm
Dear Chandesh,
Thanks for the brilliant tutorial, but right at the end, one small problem, where do I find the landing/index/start page for zend????????
I hope you can help me, I will be over the moon!
AD