Archive for the 'Web and System Administrator' Category

MySQL partition is full

Saturday, September 5th, 2009

MySQL databases are located on /var/lib/mysql, if you create a partition for /var and and big enough to hold your databases MySQL will stop working because not enough space to put the data. Below is the easy way to fix it:
(more…)

SocialTwist Tell-a-Friend

Fantastico Problem

Wednesday, August 19th, 2009

First, Joomla is not listed on Fantastico, tried to update Fantastico
WHM >> Plugins >> Fantastico De Luxe WHM Admin >> Update/Get files
Failed!! Below Error showed up when opening Fantastico from cPanel

The server was not able to find the document (./frontend/x3/fantastico/index.php) you requested. Please check the url and try again. You might also want to report this error to your web hosting provider.

Access WHM >> Plugins >> Fantastico De Luxe WHM Admin again, this time it asked to re-install. Done that. But I still get the same error.
(more…)

SocialTwist Tell-a-Friend

PHP with SuPHP on cPanel

Saturday, June 27th, 2009

When you activated SuPHP on cPanel servers, this is the normal output should be.

The MIME types associated with PHP may have changed.
If you experience problems with PHP related settings in .htaccess files, ensure
those files use the MIME types specified above (the first value listed after AddType.)

(more…)

SocialTwist Tell-a-Friend

Replacing A Failed Hard Drive In A Software RAID1 Array

Tuesday, June 23rd, 2009

I was checking Development MySQL server (what did you know, I am not that lazy) and I found errors at /var/log/messages, I assume the secondary HDD (/dev/hdb) failed. Fiuh, I am lucky configured this server using Software-Raid1 otherwise all data has gone.

Jun 19 15:51:56 dbdemo smartd[2117]: Device: /dev/hdb, 37997 Currently unreadable (pending) sectors
Jun 19 15:51:56 dbdemo smartd[2117]: Device: /dev/hdb, 37997 Offline uncorrectable sectors
Jun 19 16:21:57 dbdemo smartd[2117]: Device: /dev/hdb, 38010 Currently unreadable (pending) sectors
Jun 19 16:21:57 dbdemo smartd[2117]: Device: /dev/hdb, 38010 Offline uncorrectable sectors
Jun 19 16:23:47 dbdemo kernel: hdb: task_in_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }

Luckily, uncle Google very nice to me and show me article on Howtoforge.com, following the article I am confident to replace failed harddisk. Below is my Raid configuration:

Array: /dev/md0; Member: /dev/hda1 /dev/hdb1; Raid: 1; Filesystem: ext3fs; mountpoint: /boot
Array: /dev/md1; Member: /dev/hda2 /dev/hdb2; Raid: 0; Filesystem: swap; mountpoint: swap
Array: /dev/md2; Member: /dev/hda3 /dev/hdb3; Raid: 1; Filesystem: ext3fs; mountpoint: /

Summary of Howtoforge’s article is below:

(more…)

SocialTwist Tell-a-Friend

Add Swap on Linux

Tuesday, June 23rd, 2009

From: FelipeCruz

To add swap partition use command

# mkswap /dev/hdb2
# swapon /dev/hdb2
# vi /etc/fstab
# /dev/hdb2   swap   swap   defaults   0 0

With assuming you already create /dev/hdb2 partition before using fdisk and chose swap filesystem.

(more…)

SocialTwist Tell-a-Friend