Windows 8 64 bit
Wampserver 2.5 64 bits)
Version Apache 2.4.9
Version PHP 5.5.12
Version MySQ L5.6.17
icône Wampserver verte
Avez-vous accès à localhost ? : OUI
Avez-vous accès à phpMyAdmin ? :OUI
Bonjour,
Je dois apporter des modifications sur un site internet (www.monsite.fr), j'ai donc copié les sources en local et créé un virtualhost sur wampserver en suivant le tuto sur le forum.
J’ai ajouté la ligne « 127.0.0.1 monsite» à mon fichier host
J’ai décommenté la ligne « Include conf/extra/httpd-vhosts.conf » dans le fichier de httpd.conf
J’ai ajouté dans le fichier httpd-vhosts.conf les lignes :
<VirtualHost *:80>
DocumentRoot "C:/wamp/www/monsite"
ServerName monsite
ServerAlias www.monsite
<Directory "C:/wamp/www/monsite/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
Mais j’ai le message d’erreur :
« 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.
Apache/2.4.9 (Win64) PHP/5.5.12 Server at www.monsite.fr Port 80 »
Le fichier de log m’indique : « C:/wamp/www/monsite/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration »
Et voici le fichier htaccess:
SetEnv PHP_VER 5
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ [www].%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
<IfModule mod_rewrite.c>
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
J’ai beau chercher sur le web et apporter des modifications, je ne trouve pas la solution.
Pouvez-vous m'aider svp.
Wampserver 2.5 64 bits)
Version Apache 2.4.9
Version PHP 5.5.12
Version MySQ L5.6.17
icône Wampserver verte
Avez-vous accès à localhost ? : OUI
Avez-vous accès à phpMyAdmin ? :OUI
Bonjour,
Je dois apporter des modifications sur un site internet (www.monsite.fr), j'ai donc copié les sources en local et créé un virtualhost sur wampserver en suivant le tuto sur le forum.
J’ai ajouté la ligne « 127.0.0.1 monsite» à mon fichier host
J’ai décommenté la ligne « Include conf/extra/httpd-vhosts.conf » dans le fichier de httpd.conf
J’ai ajouté dans le fichier httpd-vhosts.conf les lignes :
<VirtualHost *:80>
DocumentRoot "C:/wamp/www/monsite"
ServerName monsite
ServerAlias www.monsite
<Directory "C:/wamp/www/monsite/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
Mais j’ai le message d’erreur :
« 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.
Apache/2.4.9 (Win64) PHP/5.5.12 Server at www.monsite.fr Port 80 »
Le fichier de log m’indique : « C:/wamp/www/monsite/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration »
Et voici le fichier htaccess:
SetEnv PHP_VER 5
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ [www].%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
<IfModule mod_rewrite.c>
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
J’ai beau chercher sur le web et apporter des modifications, je ne trouve pas la solution.
Pouvez-vous m'aider svp.