Why Do My Domains Have Different PHP Versions After I Downgraded?

Hey there. I am trying to run a script on my website, and to do that I had to downgrade my php from 7.0 to 5.6. I used the tutorial found here. This worked perfectly, except for one issue. I had made a reverse proxy for my four domains (the domains being:

When I check the php information for my websites, .org and .net both have 5.6, but the php information for my .com/.ca/Ip adress websites say they are using 7.0. I know it has something do with me setting up Nginx as a reverse proxy (Tutorial Found Here, for reference).

When I check the -v php in my server, it shows 5.6. Shouldn’t it show 5.6 for all of my domains, seeing as they’re all linked to my server? I am a complete noob to this stuff, so pardon me for the stupid question. Would it even matter what the PHP version shows for my websites? As my server itself has PHP 5.6.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @manoticksmith,

After checking the tutorials you’ve posted, it seems like you just installed a second version rather than downgrading the previous one.

If you’ve followed the article, the version of your whole server should be 5.6 as you’ve mentioned. I would guess, there is something in the Nginx configuration files in the mentioned domains which is actually making them load PHP 7 rather than 5.6.

Having said that, I do have one suggestion/advice. Don’t use scripts requiring PHP 5.6 or something older. It would mean the said scripts are very old. Additionally, PHP’s 5.6 and even PHP’s 7 active support and security fixes have ended.

Here is a link where you can check the current up to date PHP versions - HERE

Regards, KDSys