diff --git a/HowtoDebian/MigrationWheezyJessie.md b/HowtoDebian/MigrationWheezyJessie.md index a0b8a3e2..c9353d80 100644 --- a/HowtoDebian/MigrationWheezyJessie.md +++ b/HowtoDebian/MigrationWheezyJessie.md @@ -145,7 +145,17 @@ tion: /home/XXX/www/YYY/ZZZ ~~~ -* Il faut s'assurer que les fichiers dans /etc/apache2/sites-* se terminent en .conf sinon les renommer (ou modifier la directive dans apache2.conf) +* Il faut s'assurer que les fichiers dans /etc/apache2/sites-* se terminent en .conf en les renommant. (Ou modifier la directive dans apache2.conf. **Non conseillé car cela casse a2{en,dis}site.**) + +~~~ +# cd /etc/apache2/sites-available/ +# for file in *; do if ! [[ "$file" =~ ".conf" ]]; then mv "$file" "${file}.conf"; fi; done +# cd /etc/apache2/sites-enabled/ +# for file in *; do if ! [[ "$file" =~ ".conf" ]]; then mv "$file" "${file}.conf"; fi; done +# for file in *; do rm "$file"; ln -s "../sites-available/$file" "$file"; done +~~~ + + * Il faut supprimer la directive : ~~~ @@ -176,7 +186,9 @@ SSLSessionCache shmcb:/var/log/apache2/ssl_gcache_data(512000) ~~~ AH00526: Syntax error on line 27 of /etc/apache2/sites-enabled/app: -Either all Options must start with + or -, or no Option may. +Either all Options must start with + or -, or no Option may. + +# sed -i 's/Options ExecCGI -MultiViews/Options +ExecCGI -MultiViews/g' /etc/apache2/sites-available/* ~~~ * RewriteLog et RewriteLogLevel n'existent plus, à supprimer @@ -184,6 +196,10 @@ Either all Options must start with + or -, or no Option may. ~~~ AH00526: Syntax error on line 61 of /etc/apache2/sites-enabled/app: Invalid command 'RewriteLog', perhaps misspelled or defined by a module not included in the server configuration + +# cd /etc/apache2/sites-available/ +# sed -i '/RewriteLog/d' * +# sed -i '/RewriteLogLevel/d' * ~~~ *Il ne faut plus utiliser les directives MaxClients mais MaxRequestWorkers ! *