Aji’s Journal

April 15, 2010

suPHP

Filed under: Network and Server — admin @ 11:02 am

How to override php.ini:
1. On /home/user/public_html/.htacces:

suPHP_ConfigPath /home/user

2. On /home/user/php.ini:

register.globals = On
……

April 1, 2009

Mysql Commands

Filed under: Network and Server — admin @ 2:20 pm

Reset root password
1. Stop mysql server
/etc/init.d/mysql stop
2. Start mysql server with safe mode and skip grant tables
#mysqld_safe –skip-grant-table
(more…)

March 4, 2009

Tips for Postfix

Filed under: Network and Server — admin @ 10:29 am

Viewing current queue:
postqueue -p

Delete all deferred messages:
postsuper -d ALL deferred

Delete all message from admin@yahoo.com:
postqueue -p | grep admin@yahoo.com | cut -c 0-12 | tr -d [:blank:] |postsuper -d -

February 26, 2009

Iptables (Scratch)

Filed under: Network and Server — admin @ 10:04 am

I just want to access my web server from my local address:

iptables -I INPUT -p tcp --dport 80 -s ! 127.0.0.1 -j DROP -m comment --comment "Only for local address"

February 19, 2009

Ubuntu Installation Problem on Dell Poweredge 1650

Filed under: Network and Server — admin @ 4:49 pm

Specifications:

  1. Ubuntu Server 8.10 Intrepid Ibex
  2. Dell Poweredge 1650
    SCSI with RAID Controller
    Three SCSI hard disks, 32GB each
    RAID 0, each hard disk has its own array controller
  3. dev/sda1 = /grub, /dev/sda2 = / , /dev/sda5 = swap

Problem:

  1. After Ubuntu Server installation has finished, server couldn’t boot normally. It stucked forever at BIOS screen, not even reached Grub.
  2. I reinstalled it with different RAID type, but the result was null.

Solution:

  1. Install Ubuntu Server
  2. Boot with Ubuntu Desktop (Live CD)
  3. Open Partition editor, select each partition’s flag to be marked the flag as “raid”, and “boot” + “raid” for boot partition.
  4. Open terminal, escalate to root, then reinstall Grub.
    #grub
    grub> root (hd0,0)
    grub> setup hd0
    grub> quit
  5. Edit menu.lst file, then add “root=/dev/sda5” to your kernel’s argument. I still can’t figure out, how could Grub data in /dev/sda1 to be read at /dev/sda5 partition after I boot it. But that’s the fact.
  6. Reboot the system, eject CD. If you are thrown into BusyBox, from that command prompt, try locate the Grub path. Then fix the kernel’s argument in menu.lst file.

Bad english huh? but … whatever….

November 13, 2006

.htaccess on Apache

Filed under: Information Technology, Network and Server — admin @ 4:02 pm

Overriding .htaccess

Ordinary users can configure their own web directories with .htaccess (first, enable it from httpd.conf). To enable .htaccess, open /etc/httpd/conf/httpd.conf and take a look at these part:

(more…)

July 30, 2006

Exim Cheatsheet

Filed under: Information Technology, Network and Server — admin @ 1:06 am

Here are some useful things to know for managing an Exim 4 server.
Show email queue:
exim -bpc

Show detailed exim process:
exiwhat

List email queue
exim -bp

(more…)

July 28, 2006

Replikasi Database MySQL

Filed under: Information Technology, Network and Server — admin @ 1:32 pm

Masalah : Replikasi Database pada MySQL
Keterangan : langkah – langkah ini masih banyak kekurangan, tetapi sudah layak untuk dilakukan.
(more…)

Letak – Letak File Log

Filed under: Information Technology, Network and Server — admin @ 1:31 pm

HORDE

//tmp/horde-dragon.log
Merupakan webmail yang mempunyai reabilitas yang tinggi.
(more…)

Catatan Untuk Nagios

Filed under: Information Technology, Network and Server — admin @ 1:30 pm

Suse nih, sering lupa kalo nggak dicatet.
Checklist:
1. apache: gd, sll
2. gcc
3. Nagios Core, nagios plugin, n\NRPE
(more…)

Powered by WordPress