Deploy on OVH shared hosting with different PHP versions
Recently we’ve been working on a Symfony project that needed to be deployed on a shared hosting by OVH.
This server was running PHP 5.4 and we could not upgrade it because they had some legacy projects that needed to remain..
So after banging our head quite a few times, we found out that you could create a configuration file so that OVH server reads and reconfigures the settings of the server for that project/folder only.
The file must be called .ovhconfig and it must be on the target folder the DNS points to, so in our case being a Symfony project it should be in the /web folder
Originally published at Joey’s blog.