Jump to content

Configuration PHP chez OVH depuis 2014


Recommended Posts

Bonjour,

 

Etant surpris que sur des boutiques clients la config  SetEnv PHP_VER 5_X à mettre dans votre .htaccess n'était d'aucun effet (exemple SetEnv PHP_VER 5_3 et dans les infos du bo Presta: version 5.2.17...) je suis tombé sur ce lien: http://www.ovh.com/fr/g1207.configurer-php-web

les directives SetEnv PHP_VER 5_X ne fonctionnent plus pour les sites plus anciens(malgré ce qui est dit)
Donc placer ce fichier .ovhconfig à la racine de votre hébergement
pour info...
; ovhconfig
;
; this file must be placed in $HOME/.ovhconfig or in $DOCUMENT_ROOT/.ovhconfig

; __app.engine__
;
; values: php (php engine + opcache accelerator)
; notice: if php, a phpcgi engine will be activated as fallback (if previous engine crash)
;
;   php:
;       IMPORTANT: register_globals and magic_quotes_gpc are off for security
;       php options .htaccess (like php version) are ignored
;   phpcgi:
;       IMPORTANT this is a fallback or previous system
;       in this case __app.engine.version__ will be considerated as AUTO and php version will be old system
;       (meaning depending .htaccess or .phpX extension)
;
app.engine=php

; __app.engine.version__ specify version of your engine
;
; for php:
;   default: 5.4
; for phpcgi:
;   this options is ignored (= fallback in AUTO)
;
app.engine.version=5.4

; __http.firewall__ used to add application firewall  (filter http requests)
;
; values: none | security
; default: none
;
http.firewall=security

; __environment__
;
; values: production | development
;
;   production:
;       apache will maximise local cache
;       mod_expires will grow up TTL of js, css, pdf, images, video, audio
;       you can override it changing expiration explicitly or in your .htaccess
;       feel free to look on our guide.
;   development:
;       no expiration is added, files are not locally in cache,
;       will speed up tests but decrease performances
;
; choosen environment will also be available in your variable ENVIRONMENT unix env
;
; default: production
;
environment=production

PS: A vous de voir si vous voulez activer le mod_security d'Apache

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...