Skip to main content

PHP version keeps changing automatically

Comments

38 comments

  • DeShark
    I think the user is deleting the .htaccess file. When you do that, it reverts to 5.6? Why does it do that? The .htaccess file doesn't control the php version does it?
    0
  • cPRex Jurassic Moderator
    The .htaccess access file is necessary if the account is set to anything other than "inherit" in WHM. That is how the PHP version is determined when a custom version is applied to a domain or subdomain. You'll just want to instruct that user to not remove that file if that is indeed what is happening.
    0
  • DeShark
    Yeah I asked him. He says he's deleting everything when he reloads his app. SMH
    0
  • cPRex Jurassic Moderator
    I guess that's a reasonable assumption from the customer though - "I need to replace all my files, let's wipe it and start over" In this case, they just need to be aware that file is used for other things besides site content and redirects and then they should not experience this issue.
    0
  • DeShark
    They have been advised. Should we set our default to 7.4? I don't want to break anyone's site however.
    0
  • cPRex Jurassic Moderator
    That's up to you and your clients. For security reasons I would stick with releases we haven't deprecated, but then the clients may not be happy if you force them to update ancient code. You can likely work with them to set up a time to try a new version and they can test the site then to see if there are problems.
    0
  • DeShark
    Thanks for your help. Much appreciated.
    0
  • cPRex Jurassic Moderator
    You're very welcome! I'm glad I could help get things pointed in the right direction.
    0

Please sign in to leave a comment.