Archive for the 'Tips' Category

Check the version of sendmail

Tuesday, November 14th, 2006

You can check the version of sendmail on the system by use of the following command line:

# sendmail -bt -d0,1 | head -1
Version 8.10.2

(then enter Control-d)

or

To determine the version of sendmail, use the following command:
% sendmail -d0 -bt < /dev/null | grep -i Version

 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 (No Ratings Yet)
Loading ... Loading …

To find out your Postfix version

Tuesday, November 14th, 2006

To find out your Postfix version, use the command

"postconf mail_version".

Versions prior to 1.1 show a date instead of a version number (e.g., Postfix-20010228-pl08). Versions 1.1 and later may show a date in addition to the version number (e.g., 2.0.14-20030717)

 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 Votes | Average: 0 out of 5 (No Ratings Yet)
Loading ... Loading …

Jumlah ruang swap untuk RedHat linux

Saturday, November 11th, 2006

Jika anda ada masalah untuk menentukan jumlah ruang fail swap, sila ikuti tips - tips ini :

* Jika anda ada 8 MB RAM dan 12 MB fail swap, ini bermakna anda telah mempunyai sejumlah 20 MB memori maya ( virtual
memory ).

* Semasa menentukan jumlah saiz fail swap, anda sepatutnya ada sekurang - kurangnya 16 MB memori maya. Oleh sebab
itu :

4 MB RAM memerlukan sekurang - kurangnya 12 MB fail swap.
8 MB RAM memerlukan sekurang - kurangnya 8 MB fail swap.

* Dalam Linux, sebuah ‘partition’ swap tidak boleh melebihi daripada 128 MB. Ini bermakna, sesebuah ‘partition’ swap boleh melebihi 128 MB, tapi hanya akan membazir sahaja, kerana ruang yang selebihnya itu tidak akan digunakan :) .

* Perlu diingat semasa anda menentukan ruang swap, ruangan untuk swap yang terlalu banyak mungkin tidak akan berguna langsung. Setiap proses telah mempunyai ‘working set’ masing - masing.

Oleh sebab itu, jika komputer dengan 16 MB RAM, ruang swap adalah tidak diperlukan untuk konfigurasi minimal. Dan komputer dengan RAM melebihi 48 MB, kemungkinan ruangan swap adalah tidak diperlukan langsung. Jumlah sebenar memori yang diperlukan bergantung kepada aplikasi - aplikasi di dalam komputer yang anda gunakan :) .

MySQL root password

Wednesday, November 1st, 2006

Changing MySQL root password

Sometimes you forget the root password, or something went wrong modifying it. Here’s how to reset the root password for MySQL on a Redhat Linux box:

(more…)

Junk {head} {styles} codes as output

Wednesday, November 1st, 2006

Symptom:

When visiting your Drupal site for the first time you see what looks like code output, instead of the expected theme:
{head} {styles} {_BLOCK_.header.logo} {_BLOCK_.header.site_name} {secondary_links}
{primary_links}
{_BLOCK_.header.blocks}

This chunk of code is followed by the standard welcome message.

Cause:

Changes made after 4.6.x was released in PHP 5.0.5+/5.1.1+ and the template engine XTemplate are incompatible.

(more…)