Trying to get Zend framwork to work on IIS localhost

Posted on 2013-09-26
Medium Priority
Last Modified: 2013-10-07
I am trying to get the zend framework working with an IIS server on my local machine.
I am having some trouble because the directions are all for the apache server.
I am using netbeans and set up their example zend project.
I added these url rewrite rules that I found here,http://www.zendframework.com/manual/1.12/en/zend.controller.router.html , to the web.config in order to get the routing correct with the mvc.
                 <rule name="Imported Rule 1" stopProcessing="true">
                     <match url="^.*$" />
                     <conditions logicalGrouping="MatchAny">
                         <add input="{REQUEST_FILENAME}"
                             matchType="IsFile" pattern=""
                             ignoreCase="false" />
                         <add input="{REQUEST_FILENAME}"
                             pattern="" ignoreCase="false" />
                     <action type="None" />
                 <rule name="Imported Rule 2" stopProcessing="true">
                     <match url="^.*$" />
                     <action type="Rewrite" url="index.php" />

Open in new window

I set the website up in IIS and the zend library is included in the include_path on the php.ini file.
All well and good but now all I get it a never ending spinning page when I go to localhost.
It never times out it just sits there spinning.
Any one have any experience with setting up the zend framework for IIS.
What have I missed?
Question by:haloexpertsexchange
  • 3
LVL 16

Assisted Solution

hankknight earned 1500 total points
ID: 39532852
LVL 13

Author Comment

ID: 39534715
Unfortunately I am not going to be using the zend server so the first link isn't as much use as I had hoped.
I looked through the explanations that the second two offer and they are useful but I still can't seem to get the url rewrites necessary working.
After following the directions I found here, http://blog.richardknop.com/2011/09/making-zend-framework-run-under-iis/, I tried using the example project that was offered but I still cannot get it working.
Errors,[30-Sep-2013 11:52:15 America/Chicago] PHP Warning:  include(Zend/Session.php): failed to open stream: No such file or directory in C:\inetpub\test_site\public\index.php on line 24
[30-Sep-2013 11:52:15 America/Chicago] PHP Warning:  include(): Failed opening 'Zend/Session.php' for inclusion (include_path='C:\Program Files\ZendFramework-2.2.4\library') in C:\inetpub\test_site\public\index.php on line 24
[30-Sep-2013 11:52:15 America/Chicago] PHP Fatal error:  Class 'Zend_Session' not found in C:\inetpub\test_site\public\index.php on line 28

Any ideas?
LVL 13

Accepted Solution

haloexpertsexchange earned 0 total points
ID: 39541312
I got the project working when I swapped out the version of the zend framework to the older 1.1 version.
That appears to be working fine.
Not sure what the problem with zend 2 is but I am guessing that there is something else that needs to be done to get it to work on iis but since all the instructions I can find are for 1.1 I am stuck with the older version for now.
LVL 13

Author Closing Comment

ID: 39551690
The instructions hankknight provided were for the zend framework 1.1 not zend 2.
They were good, easy to understand for that purpose but didn't exactly work when I tried using them to get zend 2 working.
But they worked well when I had to fall back to the older version.

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Over time, the online landscape has altered considerably, but that’s nothing compared to the up-and-coming trends that will shape the web design industry in the coming year. Keep reading to find out which trends will shape B2B web design in 2018.
I recently worked on a Wordpress site that utilized the popular ContactForm7 (https://contactform7.com/) plug-in that only sends an email and does not save data. The client wanted the data saved to a custom CRM database. This is my solution.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn how to dynamically set the form action using jQuery.

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question