Setting Up Zend in Wamp server [duplicate]

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 08:24:05

问题


Possible Duplicate:
Zend - How to install on WAMP

I have a website created in Zend Framework. But when iam trying to load in wamp server it is not working correctly.

If there is any set up steps in wamp for zend?

How can setup zend frame work website in wamp server?

In this site there have a login page , when i login correctly it will displays a white page only nothing will be loaded.

What is the reason?the login page is displayed correctly but after login the site is not loaded


回答1:


  1. Make sure that the rewrite_module is enabled Go to Wamp Server -> Apache -> Apache Modules

  2. Deploy your project to a folder in your document root folder, default www for example projectname

  3. You need to change the .htaccess in the public folder of your Zend Application as follows

    RewriteEngine On

    # the base for rewriting the files, this is relative to the document root being used # for local environment use the name of the project folder

    RewriteBase /projectname/public/

    # Rewrite conditions for the Front controller

    RewriteCond %{REQUEST_FILENAME} -s [OR]

    RewriteCond %{REQUEST_FILENAME} -l [OR]

    RewriteCond %{REQUEST_FILENAME} -d

    RewriteRule ^.*$ - [NC,L]

    RewriteRule ^.*$ index.php [NC,L]

  4. Access your project as http://localhost/projectname/public



来源:https://stackoverflow.com/questions/9616903/setting-up-zend-in-wamp-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!