Preparations
- apply the patch of the D552 (if not already applied)
- connect to the server/vm via SSH
- go to the project root folder
- go to the tools folder
- run the sudo ./fix_perms.sh command
- go to the project root folder
- go to the system/cache folder
- run the sudo rm -Rf core modules themes command
Part 1 (No Command-Line Compilation)
- perform the clean install
- login to the Admin Console
- go to the Configuration → Website → Advanced section
- scroll to the System Settings subsection
- confirm, that:
- the Compiled Template Permission Mode system setting is present
- it has a hint
- it has 3 options in the dropdown
- the No Command-Line Compilation option is selected
- go to the Tools → System Tools section
- use the Clear Templates Cache functionality
- connect to the server/vm via SSH
- go to the project root folder
- confirm, that system/cache/core/admin_templates/incs folder:
- is present
- has drwxr-xr-x permissions
- confirm, that system/cache/core/admin_templates/incs/form_blocks.php file:
- is present
- has -rw-r--r-- permissions
Part 2 (Command-Line Compilation with Server Configuration)
- login to the Admin Console
- go to the Configuration → Website → Advanced section
- scroll to the System Settings subsection
- change the value of the Compiled Template Permission Mode system setting to the Command-Line Compilation with Server Configuration and save changes
- connect to the server/vm via SSH
- go to the project root folder
- confirm, that system/cache/core/admin_templates/incs folder:
- is present
- has drwxrwxr-x permissions
- confirm, that system/cache/core/admin_templates/incs/form_blocks.php file:
- is present
- has -rw-rw-r-- permissions
Part 3 (Command-Line Compilation without Server Configuration (Security Risk) )
- login to the Admin Console
- go to the Configuration → Website → Advanced section
- scroll to the System Settings subsection
- change the value of the Compiled Template Permission Mode system setting to the Command-Line Compilation without Server Configuration (Security Risk) and save changes
- connect to the server/vm via SSH
- go to the project root folder
- confirm, that system/cache/core/admin_templates/incs folder:
- is present
- has drwxr-xrwx permissions
- confirm, that system/cache/core/admin_templates/incs/form_blocks.php file:
- is present
- has -rw-r--rw- permissions
Part 4 (compiled template removal error propagation)
- login to the Admin Console
- go to the Configuration → Website → Advanced section
- scroll to the System Settings subsection
- connect to the server/vm via SSH
- go to the project root folder
- run the sudo chown root:root system/cache/core/admin_templates/incs command (type your password if asked for) to change the owner of the folder, where compiled templates are stored
- switch back to the Admin Console
- change the value of the Compiled Template Permission Mode system setting to anything other, than current and save changes
- confirm that you'll see an error message above the system settings list indicating which folders weren't deleted as part of the system setting change
Part 5 (fix_perms.sh script test)
- connect to the server/vm via SSH
- go to the project root folder
- go to the tools folder
- run the sudo ./fix_perms.sh command
- confirm, that:
- the system folder has drwxrwxrwx permissions
- the system/cache folder has drwxrwxrwx permissions
Part 6 - upgrade
- repeat Part 1, Part 2, Part 3 and Part 4, but doing an upgrade instead of clean install
- confirm that Compiled Template Permission Mode system setting is positioned the same as during clean install