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: example.com/example.ca/example.org/example.net.
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.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.