在Wamp服务器中设置Zend [英] Setting Up Zend in Wamp server
问题描述
可能重复:
Zend-如何在WAMP上安装
I在Zend Framework中创建了一个网站。
但是当iam尝试加载到wamp服务器中时,它无法正常工作。
I have a website created in Zend Framework. But when iam trying to load in wamp server it is not working correctly.
是否在zend的wamp中有任何设置步骤?
If there is any set up steps in wamp for zend?
如何在wamp服务器中设置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
推荐答案
-
确保已启用rewrite_module转到Wamp Server-> Apache-> Apache Modules
Make sure that the rewrite_module is enabled Go to Wamp Server -> Apache -> Apache Modules
将项目部署到文档根文件夹中的文件夹,默认www为项目名称,例如
Deploy your project to a folder in your document root folder, default www for example projectname
您需要按如下所示更改Zend应用程序公用文件夹中的.htaccess
You need to change the .htaccess in the public folder of your Zend Application as follows
RewriteEngine On
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 /
RewriteBase /projectname/public/
#前端控制器
RewriteCond%{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond%{REQUEST_FILENAME} -l [或]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond%{REQUEST_FILENAME} -d
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^。* $-[NC,L]
RewriteRule ^.*$ - [NC,L]
RewriteRule ^。* $ index.php [NC,L]
RewriteRule ^.*$ index.php [NC,L]
以 http:// localhost / projectname / public
这篇关于在Wamp服务器中设置Zend的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!