Cannot start MVC application for Zend environment on WAMP

I am new to zend framework application. I got a book on the Internet with this sample source code, and I'm trying to work to learn about the zend framework mvc. I extracted the example folder to www in wamp. When I try to get to the localhost / exampleMVC / application, I get a page with all the folders in this directory except the public one, it should be accessible to the server, and when I try to access localhost / exampleMVC / public, I get an error message Error 500 page; Internal Server Error.

what will i miss ?!

thank

+3
source share
2 answers

just you skipped to enable mod_rewriteto solve the problem go to

WAMP -> APACHE -> apache modules -> then click on the mod rewrite 

, apache

zf + wamp 2 , http://www.zendcasts.com/getting-started-with-zend-and-wamp-server/2009/06/

+8

virtual-host apache zend mode_rewrite

wamp\bin\apache\Apache(version number)\conf\httpd.conf # Include conf/extra/httpd-vhosts.conf ( # Virtual hosts )

wamp\bin\apache\Apache(version number)\conf\extra\httpd-vhosts.conf - :

#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at 
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
#NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#

nameVirtualHost localhost
<VirtualHost 127.0.0.1>
    ServerAdmin webmaster@localhost
    DocumentRoot "c:/wamp/www"
    ServerName localhost
    ErrorLog "logs/localhost-error.log"
    CustomLog "logs/localhost-access.log" common
</VirtualHost>

, - :

<VirtualHost 127.0.0.1>
    ServerAdmin webmaster@localhost
    DocumentRoot "C:\wamp\www\zendProject\public\"
    ServerName zendProject.local
    ErrorLog "logs/zendProject.local-error.log"
    CustomLog "logs/zendProject.local-access.log" common
    <directory "C:\wamp\www\zendProject\public\">
        Options Indexes FollowSymLinks
        AllowOverride all
        Order Deny,Allow
        Deny from all
        Allow from 127.0.0.1
    </directory>
</VirtualHost>

zendProject zend. .local , , .

, , , , : C:\Windows\System32\drivers\etc\hosts

( ):

127.0.0.1       zendProject.local 

, .

Wamp-,

+1

All Articles