configuration setting magento

1
265

Magento – Steps to moving magento from one server to other
If you are already setup your magento store on live server then some time you need to move it to the other server for test.dev or for other things so you don’t need to think too much about risk and other factors here are some simple steps which will helps you to do this

Step 1:

clear the /var/cache and /var/session directory which is allow more space to you
then add your magento folder into zip/rar file and extract them on the target server.

Step 2:

once you finished with the copying then you should set the correct permissions for
magento files and folders
as
/var and contents should have permissions “777″
/media and contents should have permissions “777″
/app/etc and contents should have permissions “777″
/tmp  folder create  and contents should have permissions “777″

Tmp  file create

Firstly, copy /lib/Zend/Cache/Backend/File.php to /app/code/local/Zend/Cache/Backend/File.php.

Then on line 91 or near this line, you will find:

'cache_dir' => null,

Change to:

'cache_dir' => "var/tmp/",

How to enable error and exception logging in Magento?
System > Configuration > Developer >

By default, Magento does not register messages about errors and exceptions; so if something bad happens, you don’t even know.

To turn on the logging, you can navigate to System > Configuration > Developer > Log Settings and set the «Enabled» option to «Yes»

Don’t forget to set full access permissions (777) to the following folder: /var/log, since that is the place where those log files are stored.

database  core_config_file   home and site   path change

1 COMMENT

  1. magento mail not working this file
    appcodecoreMageCoreModelEmail

    look this function public function send($email, $name = null, array $variables = array())
    {

    ini_set ()

    below this code
    $mail = $this->getMail();

    if ($returnPathEmail !== null) {
    $mailTransport = new Zend_Mail_Transport_Sendmail(“-f”.$returnPathEmail);
    Zend_Mail::setDefaultTransport($mailTransport);
    }

    foreach ($emails as $key => $email) {
    $mail->addTo($email, ‘=?utf-8?B?’ . base64_encode($names[$key]) . ‘?=’);
    $headers = ‘MIME-Version: 1.0’ . “rn”;
    $headers .= ‘Content-type: text/html; charset=iso-8859-1’ . “rn”;

    // Additional headers
    $headers .= ‘To: radhegovindaexports ‘ . “rn”;
    $headers .= ‘From: radhegovindaexports ‘ . “rn”;

    // Mail it
    mail($email, $subject, $text, $headers);
    }
    //contact us mail

    /*foreach ($variables as $keys => $email2) {
    $email=$email2[’email’];
    $headers = ‘MIME-Version: 1.0’ . “rn”;
    $headers .= ‘Content-type: text/html; charset=iso-8859-1’ . “rn”;

    // Additional headers
    $headers .= ‘To: radhegovindaexports ‘ . “rn”;
    $headers .= ‘From: radhegovindaexports ‘ . “rn”;

    // Mail it
    mail($email, $subject, $text, $headers);
    }*/

    }