Link to home
Start Free TrialLog in
Avatar of haloexpertsexchange
haloexpertsexchangeFlag for United States of America

asked on

Trying to get Zend framwork to work on IIS localhost

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.
<rewrite>
             <rules>
                 <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}"
                             matchType="IsDirectory"
                             pattern="" ignoreCase="false" />
                     </conditions>
                     <action type="None" />
                 </rule>
                 <rule name="Imported Rule 2" stopProcessing="true">
                     <match url="^.*$" />
                     <action type="Rewrite" url="index.php" />
                 </rule>
             </rules>
         </rewrite>

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?
Thanks
SOLUTION
Avatar of hankknight
hankknight
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of haloexpertsexchange

ASKER

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?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.