Bonjour,

Je viens de suivre ce tutoriel : http://www.grafikart.fr/tutoriels/php/developper-site-jour2-structure-php-184

Mais lorsque je test il me mette cette erreur :

" Internal Server Error

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

Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

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

Et même si je copie les fichiers source du tutoriel, sa me met encore cette erreur.

J'espère obtenir de l'aide de votre part.

Cordialement,
DexX

7 réponses


Est-ce que le mode rewrite est activé ?

DexX
Auteur

Oui oui

Que disent les logs apache ?

DexX
Auteur
[Tue Dec 27 18:20:53 2011] [alert] [client 127.0.0.1] D:/Program Files (x86)/WampServer/www/Test/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration, referer: http://localhost/
[Tue Dec 27 18:21:09 2011] [alert] [client 127.0.0.1] D:/Program Files (x86)/WampServer/www/Test/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Tue Dec 27 18:21:42 2011] [alert] [client 127.0.0.1] D:/Program Files (x86)/WampServer/www/Test/webroot/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Tue Dec 27 18:21:42 2011] [error] [client 127.0.0.1] client denied by server configuration: C:/Apache2, referer: http://localhost/Test/
[Tue Dec 27 18:21:42 2011] [error] [client 127.0.0.1] client denied by server configuration: C:/Apache2, referer: http://localhost/Test/
[Tue Dec 27 18:21:42 2011] [error] [client 127.0.0.1] client denied by server configuration: C:/Apache2, referer: http://localhost/Test/
[Tue Dec 27 18:21:42 2011] [error] [client 127.0.0.1] client denied by server configuration: C:/Apache2, referer: http://localhost/Test/
[Tue Dec 27 18:21:44 2011] [error] [client 127.0.0.1] client denied by server configuration: C:/Apache2, referer: http://localhost/Test/view/
[Tue Dec 27 18:21:44 2011] [error] [client 127.0.0.1] client denied by server configuration: C:/Apache2, referer: http://localhost/Test/view/
[Tue Dec 27 18:21:44 2011] [error] [client 127.0.0.1] client denied by server configuration: C:/Apache2, referer: http://localhost/Test/view/
[Tue Dec 27 18:21:50 2011] [error] [client 127.0.0.1] client denied by server configuration: C:/Apache2, referer: http://localhost/Test/controller/
[Tue Dec 27 18:21:50 2011] [error] [client 127.0.0.1] client denied by server configuration: C:/Apache2, referer: http://localhost/Test/controller/
[Tue Dec 27 18:21:50 2011] [error] [client 127.0.0.1] client denied by server configuration: C:/Apache2, referer: http://localhost/Test/controller/
[Tue Dec 27 18:21:51 2011] [error] [client 127.0.0.1] PHP Fatal error: Class 'Controller' not found in D:\\Program Files (x86)\\WampServer\\www\\Test\\controller\\PagesController.php on line 2, referer: http://localhost/Test/controller/
[Tue Dec 27 18:21:51 2011] [error] [client 127.0.0.1] PHP Stack trace:, referer: http://localhost/Test/controller/
[Tue Dec 27 18:21:51 2011] [error] [client 127.0.0.1] PHP 1. {main}() D:\\Program Files (x86)\\WampServer\\www\\Test\\controller\\PagesController.php:0, referer: http://localhost/Test/controller/
[Tue Dec 27 18:34:51 2011] [alert] [client 127.0.0.1] D:/Program Files (x86)/WampServer/www/Test/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration, referer: http://localhost/
[Tue Dec 27 18:36:49 2011] [alert] [client 127.0.0.1] D:/Program Files (x86)/WampServer/www/Test/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Tue Dec 27 18:38:02 2011] [alert] [client 127.0.0.1] D:/Program Files (x86)/WampServer/www/Test/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Tue Dec 27 18:38:05 2011] [alert] [client 127.0.0.1] D:/Program Files (x86)/WampServer/www/Test/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Tue Dec 27 18:42:15 2011] [alert] [client 127.0.0.1] D:/Program Files (x86)/WampServer/www/Test/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration, referer: http://localhost/

Tu as ton erreur :)
Supprime
RewriteEngine On dans ton htaccess pour voir

DexX
Auteur

J'ai enlevé le RewriteEngine On mais toujours pareil ...

Voici les logs Apache :

[Wed Dec 28 10:35:01 2011] [notice] Apache/2.2.21 (Win64) PHP/5.3.8 configured -- resuming normal operations
[Wed Dec 28 10:35:01 2011] [notice] Server built: Sep 24 2011 19:57:51
[Wed Dec 28 10:35:01 2011] [notice] Parent: Created child process 4920
[Wed Dec 28 10:35:01 2011] [notice] Child 4920: Child process is running
[Wed Dec 28 10:35:01 2011] [notice] Child 4920: Acquired the start mutex.
[Wed Dec 28 10:35:01 2011] [notice] Child 4920: Starting 64 worker threads.
[Wed Dec 28 10:35:01 2011] [notice] Child 4920: Starting thread to listen on port 80.
[Wed Dec 28 10:35:01 2011] [notice] Child 4920: Starting thread to listen on port 80.
[Wed Dec 28 10:35:23 2011] [alert] [client 127.0.0.1] D:/Program Files (x86)/WampServer/www/tetst/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration, referer: http://localhost/
[Wed Dec 28 10:35:36 2011] [alert] [client 127.0.0.1] D:/Program Files (x86)/WampServer/www/tetst/.htaccess: Invalid command 'RewriteRule', perhaps misspelled or defined by a module not included in the server configuration, referer: http://localhost/

Tu n'a pas activer l'url rewrite