PHP 7.1 Problems

4 posts by 2 authors in: Forums > CMS Builder
Last Post: September 6, 2019   (RSS)

By daniel - August 23, 2019

Hi rez,

I can't think of anything in CMSB that would be rewriting the .htaccess file like that - especially forcing it back to PHP 5.6. My initial thought is that there could be some configuration on the server that is checking for the directive on a regular basis, and adding it if it doesn't exist (the directive itself is for suPHP, which is server-specific). I realize you've talked to your host about this already, but it looks like they're going to be your best bet for getting this issue sorted, or at least diagnosing what is happening. A few specific things you can ask them about are:

  • Is there any higher-level server configuration for PHP versions that could be overriding the cPanel config?
  • Can they do a text search through your web directory to see if there is any custom code adding the directive?

I hope this helps point in the right direction, let me know if there's anything else I can help with!

Thanks,

Daniel
Technical Lead
interactivetools.com

By rez - August 24, 2019 - edited: August 24, 2019

Ah, ok. Well I don't think that it was actually changing the cpanel / PHP version selector. Something has been writing into the file and forcing 5.6. Same thing, I guess. When I went into the cpanel 7.1 was actually still selected. I think the htaccess must take priority? I think when i would go into cpanel and switch from 7.1 to 5.6, then back to 7.1 that was actually a way of me rewriting the htaccess to force 7.1. I didn't understand how what i was doing was working to bring the site back up at the time. When my host told me something was writing that entry into the file to force 5.6, I figured this all out... I think... ;)

I assumed it was CMSB and they agreed. I hear you though. I'll take all of this info back to the host and maybe they can tell me what keeps writing 5.6 into the htaccess file. 

Thank you.

By rez - September 6, 2019 - edited: September 6, 2019

Hostgator issue with their easy/Apache4 with easy/Apache3 PHP handlers and cPanel updates. They aren't all on the same page or fully aware of the issue yet. It took 7 issues/ techs, a month,  and unfortunately,  I lost my temper to get out of the vortex and got Tier 3 support to resolve this (assuming it won't happen again). 

If anyone has Hostgator and this issue of mysterious htaccess being overwritten when upgrading to 7.1, let me know and you can refer them to my ticket.