Moved your Magento install, admin section broken

December 23, 2010Leave a reply

If you’ve moved your Magento install to another folder and assume you’ve covered all your bases, but for some reason the admin section just won’t work, then I have a fix for you. Specifically if you can log into the admin section, but once you click on any link it gives you an error. (more…)

Make More Room in Google Calendar for Automatically Updating iCal Feeds

November 27, 2010Leave a reply

Go to your calendar settings and set your 4 day custom calendar to either 2 or 3 weeks depending on how much space you need per day. That calendar will morph into the style of the monthly calendar, just with more space for events. (more…)

Nagios SSL/Connection Issue Solved

May 26, 2010Leave a reply

On /etc/nagios/nrpe.cfg, (remote server) comment out the following line:

  • #allowed_hosts=

They say it ignores this config line if you use xinet.d, but they are totally wrong. I used to get the “Host <blah> is not allowed to talk to us!” error because of this.

The command I used to test the connection (on the host server) is:

  • /usr/lib/nagios/plugins/check_nrpe -H <remote_server_ip>

Linux Commands and Paths for a Plesk Server

March 4, 2010Leave a reply

This is my on-going cheat sheet of Linux commands for my Plesk server running on CentOS 5. I will keep updating this as I go on. Read more to see the list: (more…)

SMARTd Commands for SATA Drives

February 26, 2010Leave a reply

Show all SMART information

smartctl -d ata -a /dev/sda1
  • -a = Show all SMART information for device.
  • -d = Specify the device type to one of: ata, scsi, marvell, 3ware (ata is selected above).
  • /dev/sda1 = The drive.

Run a self-test

smartctl -d ata -t offline /dev/sda1
smartctl -d ata -t long /dev/sda1

Output self-test and other log results

  • smartctl -d ata -l selftest /dev/sda1
  • smartctl -d ata -l error /dev/sda1
  • smartctl -d ata -l selective /dev/sda1
  • smartctl -d ata -l directory /dev/sda1

Output all options

smartctl -h

Misc

  • Enable smart by editing /etc/smartd.conf file.
  • Smart Configuration file: /etc/smartd.conf
  • Start/Stop smart: /etc/init.d/smartd start | stop