shell command find disk usage

 df -h 

Related Articles

shell command find disk usage

shell command delete all .svn folders


find . -type d -name .svn
rm -rf `find . -type d -name .svn`
shell command delete all .svn folders

linkpoint Payment authorization error. 0 – SGS-020005: Error (Merchant config file is missing, empty or cannot be read).

  • Check the path to the .pem file. Give the full path
  • Change the Test Mode field value to “No”
linkpoint Payment authorization error. 0 – SGS-020005: Error (Merchant config file is missing, empty or cannot be read).

Magento: cannot login to the admin panel

Cannot login to the admin panel.
Add to Cart button not working

  • Go to the database table “core_config_data”
  • Check the value correspond to the path “web/cookie/cookie_path”
  • If this is different from whats your domain edit this and leave it as blank.
Magento: cannot login to the admin panel

Magento: write to log file

Go to Admin > System > Configuration > Developer > Log Settings
Change the value to YES for Enabled field.

Use the below code to write to log:

Mage::log("Success");

Log can be viewed at var/log/system.log or var/log/exception.log

To write to a custom log file. Use the below code:

Mage::log("This is a log", null, custom.log);

The file custom.log will be added to the folder var/log/

Magento: write to log file

Install imagemagick with PHP imagick extension

Run the commands below:

yum install ImageMagick
yum install ImageMagick-devel
pecl install imagick
echo "extension=imagick.so" > /etc/php.d/imagick.ini
service httpd restart [/etc/init.d/httpd restart]
php -m | grep imagick
Install imagemagick with PHP imagick extension

make: command not found

Run the command below:

yum install make
make: command not found

configure: error: no acceptable C compiler found in $PATH

Run the command below

yum install gcc
configure: error: no acceptable C compiler found in $PATH

WARNING channel “pecl.php.net” has updated its protocols, use “channel-update pecl.php.net” to update

Run the command below:

pecl channel-update pecl.php.net
WARNING channel “pecl.php.net” has updated its protocols, use “channel-update pecl.php.net” to update

phpize failed

Run the command below:

yum install php-devel
phpize failed