Tuesday 11 June 2013

Exception printing is disabled by default for security reasons.


Exception printing is disabled by default for security reasons.

Error log record number: ******

Mostly for magento sites you face this error. 

In this case you need to check following steps.

Go to folder /errors/

Change local.xml.sample to local.xml

After this change you can see few more errors.

Then Open magento/lib/Zend/Cache/Backend/File.php  and search

protected $_options = array(
'cache_dir' => 'null',

and Change it to:

protected $_options = array(
'cache_dir' => 'tmp/',

Save the changes.

create tmp folder under root magento folder.

This should fix the issue.

How to install Chkrootkit

Firstly login to the shell and go to the desired location where the installation file has to be downloaded.

root@amaziah [~]# cd /usr/local/src

Now download Chkrootkit

# wget ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz

Unpack the file that you just have downloaded

# tar -xzvf  chkrootkit.tar.gz

Now do the following,

# cd chkrootkit-*

# make sense

We have finished the installation process. You scan the server by

# ./chkrootkit

Now we can set a daily cronjob  to scan the server and send the report to your mail id

# crontab -e

Add the following line

0 1 * * * (cd /usr/local/src/chkrootkit*; ./chkrootkit 2>&1 | mail -s “chkrootkit output” email@domain.com)