OVH config – unable to update PHP version

Hello,

I have two OVH config files, one at the root and the other in the www directory (it's a multi‑site installation). The PHP version in the first OVH config file is up to date at 8.4, but I can’t upgrade the PHP version in the second file (the site crashes if I set the PHP version to 8 or higher).

Here are my two OVH config files:

root OVH config:

app.engine=php
container.image=stable64
app.engine.version=8.4
environment=production
http.firewall=none

OVH config in the www directory:

app.engine=php
container.image=stable64
app.engine.version=7.4
environment=production
http.firewall=none

Does anyone have an idea that could help me solve this problem? PHP 7.4 is getting a bit old and will soon be obsolete!

Thanks in advance.

Hello @CBurguin
You simply need to delete the .ovhconfig that is in www and keep the one that is at the root, and the entire hosting will switch to 8.4, including the contents of www.

Thanks for the tip. But I’ve already done that and the site is no longer available. Just to clarify: it’s a multi‑site installation.

If your site is no longer available, it’s because it’s not compatible with 8.4 or perhaps some incompatible plugins—just one incompatible plugin can cause a mess.
Is it WordPress?
Can we have the site’s address?

Thank you for this answer. It's indeed WordPress. I'll send you the URL in a private message.

Thanks, I’ve received it; the WordPress version is indeed up to date, 7.0.
We should deactivate all plugins, check whether the site becomes accessible again on PHP 8.4, and then reactivate the plugins one by one to identify the culprit.

Thank you very much. I found the responsible plugin: Above The Fold Optimization

I think I don't need it.

Hello @CBurguin

Backups of your site at OVH are not permanent.

Excerpt from my guide: T - Restoring your site on OVH to an earlier date

At OVH, restoring your hosting can only go back up to two weeks at most.

If your site was hacked three weeks ago, you’re out of luck and forced to delete everything and completely rebuild your site.

At OVH, restoring your database can only go back up to two months at most.

Remember to back up Hosting and Database to your PC once a month.
See the paragraph in my guide: Ua - Full backup of your site to your PC

See the paragraph in my guide: Ub - Full restoration of your site from your PC