Skip to main content

Error when trying to switch PHP version

Comments

3 comments

  • tmcstom
    I would double check the permissions are set correctly on the user data/site content, specifically the .htaccess file (/home/mydomainherefr/public_html/.htaccess).
    0
  • cPanelLauren
    .htaccess permissions does indeed seem to be the issue based on the error you're getting as well: Permission denied at /usr/local/cpanel/Cpanel/Transaction/File/Base.pm line 174. Cpanel::Transaction::File::Base::new("Cpanel::Transaction::File::Raw", "path", "/home/mydomainherefr/public_html/.htaccess", "permissions", 420, "restore_original_permissions", 1) called at /usr/local/cpanel/Cpanel/WebServer/Supported/apache/Htaccess.pm line 190
    0
  • pmoby
    The .htaccess file had indeed been delivered by SSH or GIT and was owned by root, it seems CPanel cannot change PHP version in that case. Updated and worked, thanks.
    0

Please sign in to leave a comment.