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.)
Read the rest of this entry »
Posted in
Freelance, Web and System Administrator |
No Comments »
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:
Read the rest of this entry »
Posted in
Web and System Administrator |
No Comments »
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.
Read the rest of this entry »
Posted in
Web and System Administrator |
No Comments »
June 23rd, 2009
Forget what I said below, if your webhosting has disabled user “nobody” to sent email, then they should enable suphp. This way, all PHP script executes as user account and not nobody. And will deliver email correctly.
==========
So your webhosting provider activated “Prevent “nobody” from sending mail” which cause your PHP script can’t sent email? You can use PHP classes called XpertMailer or PHPMailer but somehow it’s not working well on my host. Weird… The previous version XPertMailer works like charm but somehow the new one never sent my emails.
So I googling around and found Webmaster World’s Forum, and luckily the ini_set function is not disabled. So I test the script and it works flawlessly. Below is the script
Read the rest of this entry »
Posted in
Freelance, Web and System Administrator |
No Comments »
June 22nd, 2009
I was working on Knowledge Base using WSNKB Free script and I need to modify the template so it looks good when user see it. And I got stuck, on how to centering a Div, luckily I found AndyBudd’s blog which saves me. So I modified WSNKB like this.
Read the rest of this entry »
Posted in
Web and System Administrator |
No Comments »