Ceci est une ancienne révision du document !


OVH

Déposer un fichier .ovhconfig à la racine du dossier :

.ovhconfig
app.engine=php
app.engine.version=5.6
http.firewall=none
environment=production
.ovhconfig
app.engine=php
app.engine.version=7.0
http.firewall=none
environment=production

Pour le créer en ligne de commande :

echo "app.engine=php
app.engine.version=7.0
http.firewall=none
environment=production
" > .ovhconfig

Source : https://www.ovh.com/fr/g1207.configurer-php-web

echo "SetEnv REGISTER_GLOBALS 0" >> .htaccess
/usr/local/bin/php.ORIG.5
echo "<?php phpinfo(); ?>" > phpinfo.php
.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
  • memo/ovh.1596812139.txt.gz
  • Dernière modification : il y a 6 ans
  • de Arnaud Jacquemin