exemple de commandes
This commit is contained in:
parent
9d126041ac
commit
e4a4873eac
|
@ -145,7 +145,17 @@ tion: /home/XXX/www/YYY/ZZZ
|
|||
</Directory>
|
||||
~~~
|
||||
|
||||
* 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 :
|
||||
|
||||
~~~
|
||||
|
@ -177,6 +187,8 @@ 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.
|
||||
|
||||
# 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 ! *
|
||||
|
|
Loading…
Reference in a new issue