How to disable compilation in Magento

In general, Create Hosting customers shouldn’t need compilation enabled, since our Magento Hosting Plans come pre-configured and optimised with APC cache. However, if you accidentally enabled compilation, or if you are actively using compilation instead of APC Cache and need to disable compilation to perform an upgrade, install or remove an extension etc, then you will need to disable it again.

There are two ways in which this can be done:

1. Via Magento admin

Navigate to System > Tools > Compilation page and click on Disable button
Navigate to System > Cache Management screen and use Flush Cache button.

2. Via SFTP, by editing the includes/config.php file

To disable compilation in Magento, edit includes/config.php. At around line 28, uncomment the first line and comment out the second:


3. Via SSH

Was this article helpful?

Related Articles