If the server you’re running SuiteCRM on is running PHP version 7.2 and you install SuiteCRM the .htaccess file used within SuiteCRM will reflect that version.
If you then upgrade the PHP version on your server, the .htaccess used within SuiteCRM doesn’t change/upgrade to the latest version - EVEN if you click the ‘Repair htacess’ tool within Admin > Repair in SuiteCRM, this does not copy the values from the root .htaccess
- If you can access the file structure of where your SuiteCRM is installed, the fix is to edit the .htaccess inside the SuiteCRM folder in the top level directory where it’s installed.
There are various headings inside the .htaccess file such as:
… and more
Scroll down to ‘#Other’
In that section you’ll see
AddHandler x-httpd-phpXX .php
(XX is the PHP version that SuiteCRM is using at the time of install)
Change the XX to the latest Major.Minor version that you’re happy to use or the latest PHP version that’s installed on your server.
The more recent versions of SuiteCRM use PHP version 7.4 and upwards.
So, change the code above to EITHER
AddHandler x-httpd-php74 .php
AddHandler x-httpd-php81 .php
Save the .htaccess file
Go to SuiteCRM - Browse /upgrades at SourceForge.net and download the upgrade you want.
NOTE: If you’re doing upgrades within the same Major.Minor group (e.g 7.11.I-23, DO NOT upgrade outside of that upgrade group i.e 7.11.7 to 7.12.x (see below)
Go back into SuiteCRM and head to the Upgrade Wizard section in the Admin Panel and follow the upgrade instructions.
Upgrading from Version 7.11 to 7.12:
- Go to Upgrade SuiteCRM - SuiteCRM and download the “7.12.6 Upgrade from 7.11.x” patch.
- Go back into the Upgrade Wizard in the Admin panel
- Follow the upgrade instructions as per the wizard but make sure to upload the file you’ve just downloaded above.
Once complete, you’ll be on the 7.12.6 version of SuiteCRM.
At the time of writing, I am not comfortable upgrading straight to Version 8 yet as it’s quite new out and I’d like to use a stable release before any major upgrades.
I hope this helps someone