Page Ranking Tool

Manually Enable, Disable the Compiler In Magento

Some times we can not access our magento admin and want to disabled the Magento Compiler manually or from the SSH. For getting the more information on the Magento Compiler. It is very easy to Enable or Disabled the Maganto Compiler manually or by using the SSH shell, follow the Methods given below:

Method 1. Enabling The Magento Compiler Manually

Step 1. Navigate to the includes/config.php and uncomment following lines by replacing the # at the beginning of the line

#define('COMPILER_INCLUDE_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'src');
#define('COMPILER_COLLECT_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'stat');

then it will look like as

define('COMPILER_INCLUDE_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'src');
define('COMPILER_COLLECT_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'stat');

Step 2. Navigate to the var/session and delete all the session files of this folder
Step 3. Navigate to the includes/src and delete all the contents of this folder
Step 4. Navigate to the var/cache and delete all the files and content of this folder

Method 2. Disabling The Magento Compiler Manually if it is already Enabled

Step 1. Navigate to the includes/config.php and comment following lines by adding the # at the beginning of the line

define('COMPILER_INCLUDE_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'src');
define('COMPILER_COLLECT_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'stat');

then it will look like as

#define('COMPILER_INCLUDE_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'src');
#define('COMPILER_COLLECT_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'stat');

Step 2. Navigate to the var/session and delete all the session files of this folder
Step 3. Navigate to the includes/src and delete all the contents of this folder
Step 4. Navigate to the var/cache and delete all the files and content of this folder

Method 3. Enabling/Disabling The Magento Compiler By Using The SSH

For working on the SSH it is very Important to Open a command prompt to the root of your store and use the command below:

Step 1. $ cd shell
$ php -f compiler.php help (If PHP is available on the command line.) then it will give all the commands of the compiler like as:

state         Show Compilation State
compile       Run Compilation Process
clear         Disable Compiler include path and Remove compiled files
enable        Enable Compiler include path
disable       Disable Compiler include path
help          This help

Step 2. For Enabling the Compiler you can use the
$ php compiler.php enable
$ php compiler.php compile
Command then it will result Compilation successfully finished.

Step 3. For disabling the Compiler if it is already running use the command below
$ php compiler.php disable

Step 4. After Disabling the Compiler use the below command to delete all the compiled files from the folder
php -f compiler.php — clear

You have done with it enjoy the Magento Compiler Functionality.

Comments
  1. Meghan Sherman

    Аsking questionѕ аre in fact pleasant thing if you are not understanding
    ѕomething entiгelу, but this piece of wrіting
    offеrs nice understanԁing yet.

  2. Trinidadhahn

    Every weekend i used to go to see this web site, for the reason that i wish to gain some knowledge, for the reason this site conations really nice data too.

  3. Sima

    Very good content and nice looking website, keepup the good work dear.

  4. Cassie

    I know this web site provides quality dependent articles or reviews and
    additional information, is there any other web page which offers
    these things in quality?

  5. Cynthiashultz

    Hi, i feel that i saw you visited my weblog thus i got here to return the choose?
    .I’m attempting to in finding things to improve my website!I suppose its adequate to make use of some of your ideas!!

  6. Rose

    I am not sure where you’re getting your info, but great topic. I needs to spend some time learning much more or understanding more. Thanks for excellent information I was looking for this info for my mission.

  7. jessiemilam

    Hello it’s me, I am also visiting this website regularly, this website is in fact pleasant and the visitors are in fact sharing nice thoughts.

  8. Anonymous

    Hi, yes this post is in fact fastidious and I have learned lot of things from it concerning blogging.
    thanks.

  9. Vivi

    Thanks for a marvelous postnig! I certainly enjoyed reading it, you are a great author.I will make sure to bookmark your blog and definitely will come back in the future. I want to encourage you to ultimately continue your great writing, have a nice morning!

  10. James

    Thank you very much for explaining the compilation issue in magento.
    I have been looking for this all evening and here you go. Much Appreciated !
    sorted issue within minutes.

  11. Darnell

    I am sure this paragraph has touched all the internet viewers, its really really pleasant piece
    of writing on building up new blog.

  12. Signupforms

    Remarkable! Its in fact remarkable article, I have got much clear idea regarding from
    this piece of writing.

  13. calebcory

    I think this is one of the most significant information for me.
    And i’m glad reading your article. But should remark on few general things,
    The web site style is perfect, the articles is
    really nice : D. Good job, cheers

ADD YOUR COMMENT

*