500 internal server error when accessing Zend module with wampstack-5.5.25-0

I am learning to use Zend Framework 2 by working through the book Zend Framework 2.0 by Example:Beginner’s Guide. I just installed wampstack-5.5.25-0 on my Windows 7 PC. I followed the instructions in the Bitnami wiki for activating and configuring Zend Framework. I can see the sample application page just fine when I browse to http://localhost. The 500 Internal Server Error error occurs when I try to access the users module http://localhost/users that I created by following the book.

The last entry in the Apache2 error log:

 [Sun May 31 19:17:51.927785 2015] [core:error] [pid 8252:tid 988] [client ::1:58108] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

contents of frameworks/zendframwork/conf/httpd-app.conf:

<Directory "C:\Bitnami\frameworks\zendframework\public">
    Options +MultiViews
    AllowOverride All
    <IfVersion < 2.3 >
        Order allow,deny
        Allow from all
    </IfVersion>
    <IfVersion >= 2.3>
        Require all granted
    </IfVersion>
</Directory>

contents of frameworks/zendframwork/conf/httpd-app.conf:

#Alias /zendframework/ "C:\Bitnami/frameworks/zendframework/public/"
#Alias /zendframework "C:\Bitnami/frameworks/zendframework/public"
DocumentRoot "C:\Bitnami/frameworks/zendframework/public"
Include "C:\Bitnami/frameworks/zendframework/conf/httpd-app.conf"

contents of frameworks/zendframwork/public/.htaccess

RewriteEngine On
RewriteBase /zendframework
# The following rule tells Apache that if the requested filename
# exists, simply serve it.
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
# The following rewrites all other queries to index.php. The 
# condition ensures that if you are using Apache aliases to do
# mass virtual hosting, the base path will be prepended to 
# allow proper resolution of the index.php file; it will work
# in non-aliased environments as well, providing a safe, one-size 
# fits all solution.
RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::\2$
RewriteRule ^(.*) - [E=BASE:%1]
RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L]:

Can anyone suggest what I can do to solve this error?

Hi @roxanne

Could you try to comment the RewriteBase line in the .htaccess file and restart Apache?

RewriteEngine On
# RewriteBase /zendframework
# The following rule tells Apache that if the requested filename
# exists, simply serve it.
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
# The following rewrites all other queries to index.php. The 
# condition ensures that if you are using Apache aliases to do
# mass virtual hosting, the base path will be prepended to 
# allow proper resolution of the index.php file; it will work
# in non-aliased environments as well, providing a safe, one-size 
# fits all solution.
RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::\2$
RewriteRule ^(.*) - [E=BASE:%1]
RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L]:

Please let us know if you have any issue.

Thank you! That fixed the error.

We are glad it works for you.

Thanks for ley us know.