Skip to content

Instantly share code, notes, and snippets.

@codesprint
Last active August 29, 2015 14:24
Show Gist options
  • Save codesprint/bcdea70bdb9078cee321 to your computer and use it in GitHub Desktop.
Save codesprint/bcdea70bdb9078cee321 to your computer and use it in GitHub Desktop.
Magento: deactivate Compiler via Shell
php -f compiler.php clear
php -f compiler.php disable
php -f compiler.php compile
php -f compiler.php enable
<?php
#define(’COMPILER_INCLUDE_PATH’, dirname(__FILE__).DIRECTORY_SEPARATOR.’src’);
#define(’COMPILER_COLLECT_PATH’, dirname(__FILE__).DIRECTORY_SEPARATOR.’stat’);
?>
<?php
echo exec('./shell/php -f compiler.php clear');
echo exec('./shell/php -f compiler.php disable');
#echo exec('./shell/php -f compiler.php compile');
#echo exec('./shell/php -f compiler.php enable');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment