Submitted by webinti on
Bonjour à toutes et tous,
J'ai un VPS OVH sur lequel je souhaite installer Drupal 7.38.
J'ai une configuration Apache classique, avec des utilisateurs dans le répertoire /home.
Lorsque j'installe Drupal, j'ai une erreur 500 à cause du htaccess, lorsque je le modifie mon site fonctionne correctement.
Ensuite dans le tableau de bord, tout est ok, pas d'erreurs.
Mon souci majeur survient lorsque je souhaite activé la réécriture d'url, j'ai toujours l'erreur "Le test d'URL simplifiée à échoué".
Ma version PHP : 5.4.41
Apache 2
Debian 7
Drupal 7.38
Mon htaccess :
#
Apache/PHP/Drupal settings:
#
Protect files and directories from prying eyes.
Order deny,allow
Deny from all
Set some options.
Options -Indexes
Options +FollowSymLinks
Customized error messages.
ErrorDocument 404 /index.php
Set the default handler.
DirectoryIndex index.php
Override PHP settings. More in sites/default/settings.php
but the following cannot be changed at runtime.
PHP 4, Apache 1
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
Reduce the time dynamically generated pages are cache-able.
ExpiresByType text/html A1
Various rewrite rules.
RewriteEngine on
# If your site can be accessed both with and without the prefix www.
# you can use one of the following settings to force user to use only one option:
#
# If you want the site to be accessed WITH the www. only, adapt and uncomment the following:
# RewriteCond %{HTTP_HOST} !^www.example.com$ [NC]
# RewriteRule .* http://www.example.com/ [L,R=301]
#
# If you want the site to be accessed only WITHOUT the www. , adapt and uncomment the following:
# RewriteCond %{HTTP_HOST} !^example.com$ [NC]
# RewriteRule .* http://example.com/ [L,R=301]
# Modify the RewriteBase if you are using Drupal in a subdirectory and
# the rewrite rules are not working properly.
#RewriteBase /drupal
# Rewrite old-style URLs of the form 'node.php?id=x'.
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{QUERY_STRING} ^id=([^&]+)$
#RewriteRule node.php index.php?q=node/view/%1 [L]
# Rewrite old-style URLs of the form 'module.php?mod=x'.
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{QUERY_STRING} ^mod=([^&]+)$
#RewriteRule module.php index.php?q=%1 [L]
# Rewrite current-style URLs of the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
$Id: .htaccess,v 1.73 2006/04/14 09:08:26 killes Exp $
Mon virtualhost :
ServerAdmin contact@webinti.com
ServerName drupal
ServerAlias drupal
DocumentRoot /home/drupal/www
# Des options : ici suivre les liens symboliques
Options FollowSymLinks
# Autoriser l'override, autrement dit les .htaccess
AllowOverride All
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
# Log pour les erreurs
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
# Log des connexion au site
CustomLog ${APACHE_LOG_DIR}/access.log combined
Si quelqu'un a une solution, merci d'avance.
Tim
Est-ce que le module apache
Permalien Soumis par vincent59 le 13 Août, 2015 - 17:20
Est-ce que le module apache mod_rewrite est bien activé ?
A vérifier avec
sudo apachectl -M | grep rewrite
Dans votre fichier Htaccess:
Permalien Soumis par tita_pita le 16 Août, 2015 - 00:07
Dans votre fichier Htaccess:
rejouter:
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^ index.php [L]
voir aussi :https://www.drupal.org/getting-started/clean-urls#enabling-7