WillyJimmyDev / simple-quiz

A simple quiz administration written in PHP with a MySQL backend. Uses Bootstrap 3 and Slim PHP micro framework
http://elanman.com/simple-quiz/
Apache License 2.0
164 stars 73 forks source link

Internal Server Error #9

Closed zeon77 closed 9 years ago

zeon77 commented 9 years ago

I'm getting the following error:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at admin@example.com to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

System: Wamp on Windows, Apache/2.4.9 (Win32) PHP/5.5.12 URL: localhost/simplequiz

Apache conf:

Alias /simplequiz "d:/wamp/www/simplequiz/public/" 

<Directory "d:/wamp/www/simplequiz/public/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
    Order Deny,Allow
    Allow from all
</Directory>

Its something about the .htaccess file, Without .htaccess, the main page works correctly, but the links are not working. With .htaccess i'm getting "Internal Server Error".

zeon77 commented 9 years ago

I'm not an apache expert, but I'm added

RewriteBase /simplequiz/

to .htaccess file, and now it works correctly...

Apache error log explained about 'LimitInternalRecursion' directive...

WillyJimmyDev commented 9 years ago

Hi zeon77,

Thanks for reporting your problem. I've tested the htaccess file on both apache 2.2 and apache 2.4 and have never come across this problem before, however I haven't tried it on Wamp.

I wonder if the problem was caused by your 'alias' directive? That's the only thing I can think of... Somebody has a similar problem in this thread. I'm glad you managed to fix the issue with a simple RewriteBase.

I'll include your fix in the next README update to help others having a similar problem.

Thanks again,

Ben