Développer un site : Jour 2, La structure PHP

Par bobigreen, il y a 13 ans


bonjour tous d’abord merci aux créateur de ce site et ce qui créer les tuto .
je suis arriver au jour 2 et en arrivant a la partie de création des fichiers htaccess j ai un gros souci de serveur .
j ai suivi plusieurs tuto pour bien configurer mon serveur mais pas moyen j ai toujours cette erreur qui s'affiche Internal Server Error
merci de me venir en aide s'il vous plais

10 réponses

luffysan, il y a 13 ans

C'est pas forcément un configuration serveur mais aussi ton PHP.
Tu devrais voir ton fichier de log.

bobigreen, il y a 13 ans

j ai tous regarder et comme je suis débutant j aimerais bien que quelqu’un qui connais comment régler ce souci me vienne en aide car la je bloque .
dans mon fichier erreur log apache j ai sa comme erreur :

[Thu Sep 06 01:29:26 2012] [notice] Apache/2.2.22 (Win64) PHP/5.3.13 configured -- resuming normal operations
[Thu Sep 06 01:29:26 2012] [notice] Server built: May 13 2012 19:41:17
[Thu Sep 06 01:29:26 2012] [notice] Parent: Created child process 4368
[Thu Sep 06 01:29:26 2012] [notice] Child 4368: Child process is running
[Thu Sep 06 01:29:26 2012] [notice] Child 4368: Acquired the start mutex.
[Thu Sep 06 01:29:26 2012] [notice] Child 4368: Starting 64 worker threads.
[Thu Sep 06 01:29:26 2012] [notice] Child 4368: Starting thread to listen on port 80.
[Thu Sep 06 01:29:26 2012] [notice] Child 4368: Starting thread to listen on port 80.
[Thu Sep 06 01:33:07 2012] [alert] [client 127.0.0.1] C:/wamp/www/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Thu Sep 06 01:33:07 2012] [alert] [client 127.0.0.1] C:/wamp/www/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Thu Sep 06 03:17:15 2012] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Thu Sep 06 03:17:15 2012] [notice] Child 4368: Exit event signaled. Child process is ending.
[Thu Sep 06 03:17:16 2012] [notice] Child 4368: Released the start mutex
[Thu Sep 06 03:17:17 2012] [notice] Child 4368: All worker threads have exited.
[Thu Sep 06 03:17:17 2012] [notice] Child 4368: Child process is exiting
[Thu Sep 06 03:17:17 2012] [notice] Parent: Child process exited successfully.
[Fri Sep 07 12:43:32 2012] [notice] Apache/2.2.22 (Win64) PHP/5.3.13 configured -- resuming normal operations
[Fri Sep 07 12:43:32 2012] [notice] Server built: May 13 2012 19:41:17
[Fri Sep 07 12:43:32 2012] [notice] Parent: Created child process 4640
[Fri Sep 07 12:43:32 2012] [notice] Child 4640: Child process is running
[Fri Sep 07 12:43:32 2012] [notice] Child 4640: Acquired the start mutex.
[Fri Sep 07 12:43:32 2012] [notice] Child 4640: Starting 64 worker threads.
[Fri Sep 07 12:43:32 2012] [notice] Child 4640: Starting thread to listen on port 80.
[Fri Sep 07 12:43:32 2012] [notice] Child 4640: Starting thread to listen on port 80.

merci de me venir en aide s'il vous plais

luffysan, il y a 13 ans

C:/wamp/www/.htaccess: Invalid command 'RewriteEngine'

Cette ligne te dit que tu as mal écrit ton .htaccess. Regarde ta ligne de réécriture d'url. il doit y avoir une faute quelque part.

bobigreen, il y a 13 ans

ok je vais regarder sa .
et désolé si je poste des message et que je répond plus tard mais ces que je n'avais pas trop de temps en tous qu'a merci liffysan

bobigreen, il y a 13 ans

mon fichier est bien fais je pence .
j'ais bien fais pareil que le tuto
je mes mon fichier peut tu me dire ou est l'erreur car moi je ne vois pas du tous

RewriteEngine on
RewriteRule (.*) webroot/$1 [l]
luffysan, il y a 13 ans

Il connait pas alors la commande RewriteRule, regarde si son mod rewrite est activé.

bobigreen, il y a 13 ans

je peut regarder sa ou ?

bobigreen, il y a 13 ans

ces bon luffysan en faite effectivement il faut activer la commande RewriteRule
super cool de ta part je vais pouvoir poursuivre le tuto

Remi Palisse, il y a 10 ans

J'ai le meme problemme m'est comment on l'active le RewriteRule

Genki, il y a 10 ans

Si tu utilises WAMP, regarde dans les modules Apache :) (Cliques sur logo Wamp, Apache -> module_rewrite) il me semble