Install PhpMyadmin on CentOS

by Perk1z on August 15, 2008

1. $ su -
2. # cd /var/html/www/
3. Download Phpmyadmin
# wget -c http://prdownloads.sourceforge.net/phpmyadmin/phpMyAdmin-2.11.3-english.tar.gz?download
4. Extract
# tar xvfz phpMyAdmin-2.11.3-english.tar.gz
5. # mv phpMyAdmin-2.11.3-english phpmyadmin
6. # cd phpmyadmin
7. # cp config.sample.inc.php config.inc.php
8. edit config
# vi config.inc.php
at :line 29
/* Authentication type */
change default Authentication type cookies to http

$cfg['Servers'][$i]['auth_type'] = ‘http’;

$cfg[’Servers’][$i][’auth_type’] = ‘http‘; # default is cookies
:
9. Restart http service
# service httpd restart

You can test by open phpmyadmin by this link :
http://yourdomain.com/phpmyadmin/
You should be find pop up for insert your user name and password.

Popularity: 4% [?]

{ 0 comments }

Install SNMP Centos (Yum)

by Perk1z on July 8, 2008


[root@titik ~]# yum install net-snmp net-snmp-libs net-snmp-utils
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Resolving Dependencies
–> Populating transaction set with selected packages. Please wait.
—> Downloading header for net-snmp to pack into transaction set.
net-snmp-5.1.2-11.el4_6.1 100% |=========================| 36 kB 00:01
—> Package net-snmp.i386 0:5.1.2-11.el4_6.11.2 set to be updated
—> Downloading header for net-snmp-utils to pack into transaction set.
net-snmp-utils-5.1.2-11.e 100% |=========================| 26 kB 00:00
—> Package net-snmp-utils.i386 0:5.1.2-11.el4_6.11.2 set to be updated
–> Running transaction check
–> Processing Dependency: libsensors.so.3 for package: net-snmp
–> Restarting Dependency Resolution with new changes.
–> Populating transaction set with selected packages. Please wait.
—> Downloading header for lm_sensors to pack into transaction set.
lm_sensors-2.8.7-2.40.5.i 100% |=========================| 23 kB 00:01
—> Package lm_sensors.i386 0:2.8.7-2.40.5 set to be updated
–> Running transaction check [click to continue...]

Popularity: 4% [?]

{ 0 comments }

Error Starting up NRPE daemon

by Perk1z on May 23, 2008

root@titik [/usr/local/nagios/etc]# /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
root@titik [/usr/local/nagios/etc]# tail -f /var/log/messages
May 23 22:19:57 titik nrpe[3306]: Starting up daemon
May 23 22:19:57 titik nrpe[3306]: Network server bind failure (99: Cannot assign requested address)

Solusi :

edit /usr/local/nagios/etc/nrpe.conf
correct server_address

and try again

root@titik [/usr/local/nagios/etc]# /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
root@titik [/usr/local/nagios/etc]# tail -f /var/log/messages
May 23 22:40:53 titik nrpe[22116]: Starting up daemon
May 23 22:40:53 titik nrpe[22116]: Listening for connections on port 5666
May 23 22:40:53 titik nrpe[22116]: Allowing connections from: 64.233.187.99

Popularity: 4% [?]

{ 0 comments }

Plesk Backup Process Error

by Perk1z on May 12, 2008

Operating System : MS WIndows Server 2003 Standart Edition
Plesk Version : 7.5.6

The operation you were performing failed. You can retry the operation with or without changing its parameters. You may also want to report this problem to our support so that we could help you as soon as possible.

Backup process has failed for domain ‘titik.org’
Item has already been added. Key in dictionary: “username@domainametitik.org” Key being added: “username@domainnametitik.org”

———————- Debug Info ——————————-
0: C:\Program Files\SWsoft\Plesk\admin\htdocs\domains\backup\download.php:145 psaerror(string “Backup process has failed for domain ‘titik.org’
Item has already been added. Key in dictionary: “username@domainametitik.org” Key being added: “username@domainametitik.org”
“)

Solution :
Most probably this issue is related to Plesk database inconsistency. Try to login to MySQL and correct database recoreds in the following way:

Login to Mysql :
C:\Program Files\SWsoft\Plesk\Databases\MySQL\bin>mysql.exe -uadmin -p"pleskadminpasswd" -P8306 psa

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 816 to server version: 4.1.12-nt

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.

mysql>

This query should return a several records with the same value ‘mailname’. You should remove duplicate records manually:

mysql> SELECT * from psa.sa_conf where mailname like 'username@domainametitik.org';

+——+————————–+————-+—————-+————–
-+————-+
| id | mailname | flt_enabled | rw_subject_tag | hits_required
| spam_action |
+——+————————–+————-+—————-+————–
-+————-+
| 1471 | username@domainametitik.org | | *****SPAM***** | 7
| save |
| 1472 | username@domainametitik.org | | *****SPAM***** | 7
| save |
+——+————————–+————-+—————-+————–
-+————-+
2 rows in set (0.08 sec)

mysql> delete from psa.sa_conf where id = ‘1471′;
Query OK, 1 row affected (0.44 sec)

Do not forget to left the original record in this table as this is the only one that should not be erased

Popularity: 8% [?]

{ 0 comments }

Windows XP Service Pack 3

by Perk1z on May 7, 2008

Windows XP Service Pack 3

Windows XP SP3 combines all previously released performance, security, and stability updates. It also provides a limited number of new and enhanced functionalities, although it does not significantly change the Windows XP experience or bring functionality from newer versions of Windows to Windows XP. The goals of Windows XP SP3 are to:

  • Provide a new baseline for customers still deploying Windows XP, to help them avoid the inconvenience of applying individual updates.
  • Fill gaps in the updates users might have missed by declining individual updates when using Automatic Updates, and to deliver updates not made available through Windows Update.

Download Windows XP Service Pack 3 - ISO-9660 CD Image File here and Windows XP Service Pack 3 Whitepaper for detail

Windows XP Service Pack 3

Popularity: 15% [?]

{ 0 comments }

Nagios NRPE Command for checking exim queue count

by Perk1z on April 20, 2008

Nagios NRPE Command for checking exim queue count
Written by Sayid Munawar <ayik@freebsd.or.id>
script skeleteon based on check_log written by Ethan Galstad (nagios@nagios.org)
Last Modified: August 5, 2006

Usage: ./check_eximq [-w count_warn] -c [count_crit]

Description:
This plugin will get output from exim -bpc. That is the count for current exim queue
if output is below count_warn then will return OK,
if output is between count_warn and count_crit it will return WARN
if output is larger than count_crit it will return CRIT.

Success tested on :

  • CENTOS Enterprise 5 (nagios-plugins 1.4.10)
  • Freebsd 6.2 (nagios-plugins 1.4.10, NRPE Plugin Version: 2.11)
  • REDHAT Enterprise 3 (nagios-plugins 1.4.10)

Nagios NRPE Command for checking exim queue count

Popularity: 24% [?]

{ 0 comments }

Proteksi folder chmod 777 dengan htaccess

by Perk1z on April 1, 2008

Folder dengan chmod 777 = bisa di tulis, baca dan di eksekusi oleh “siapa saja”

Biasanya kelemahan ini dianggap sepele (terabaikan begitu saja), padahal ini bisa berakibat fatal dari sisi sekuriti web, terutama pada folder upload/images. Sebaiknya jika menngunakan fasilitas upload untuk umum seperti upload file, image avatar, image profile, dll. Folder tujuan sebaiknya difilter, diantaranya menggunakan file htaccess. Berikut sedikit tips yang mungkin bisa membatasi akses ke folder tersebut :

Create file .htaccess di folder yang bersangkutan dan isi dengan :

php_flag engine off
<Files ~ "\.(php*|s?p?html|cgi|pl)$">
deny from all
</Files>

Penjelasan :
.htaccess diatas akan menolak (Deny) akses ke folder tersebut terhadap extensi file php,shtml,phtml,cgi,pl

Catatan :
Anda bisa menambah,modif FIle yang diinginkan/ditolak sesuai dengan kebutuhan

Popularity: 31% [?]

{ 0 comments }

Exim Error log : Gid 99 is not permitted to relay mail

by Perk1z on February 14, 2008

Exim Error Log :

2008-02-12 14:37:04 1JOphQ-0007td-6w <= nobody@titik.org U=nobody P=local S=629 T=”Testing Kirim Email”
2008-02-12 14:37:04 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1JOphQ-0007td-6w
2008-02-12 14:37:04 1JOphQ-0007td-6w ** me@titik.org R=checkspam2: Gid 99 is not permitted to relay mail, or has directly called /usr/sbin/exim instead of /usr/sbin/sendmail.
2008-02-12 14:37:04 1JOphQ-0007td-6w ** me@titik.org R=checkspam2: Gid 99 is not permitted to relay mail, or has directly called /usr/sbin/exim instead of /usr/sbin/sendmail.
2008-02-12 14:37:04 cwd=/var/spool/exim 7 args: /usr/sbin/exim -t -oem -oi -f <> -E1JOphQ-0007td-6w

Try :

1. Check in WHM under Tweak Settings(under Email) if the box for “Prevent the user “nobody” from sending out mail to remote addresses ” is checked, if it is uncheck that box and click save at the bottom of the page.

GID 99 is for apache(username=nobody) .

2. check and make sure that you have the domain name listed in the file “/etc/localdomains ” to allow relaying of mails.

Popularity: 53% [?]

{ 0 comments }

Problem starting Apache 2.2.0 Freebsd

by Perk1z on February 6, 2008

[root@pisangraja ~]# /usr/local/etc/rc.d/apache22 restart
Performing sanity check on apache22 configuration:
httpd: apr_sockaddr_info_get() failed for pisangraja.jc
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
Syntax OK
Stopping apache22.
Waiting for PIDS: 11416.
Performing sanity check on apache22 configuration:
httpd: apr_sockaddr_info_get() failed for pisangraja.jc
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
Syntax OK
Starting apache22.
httpd: apr_sockaddr_info_get() failed for pisangraja.jc
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName

Just fix your hosts file and httpd conf

1. Edit hosts file :
[root@pisangraja ~]# hostname
pisangraja.jc
[root@pisangraja ~]# vi /etc/hosts

::1                     localhost
127.0.0.1               localhost
192.168.12.200          pisangraja
192.168.12.200          pisangraja.jc

2. Edit httpd conf
[root@pisangraja ~]# vi /usr/local/etc/apache22/httpd.conf
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn’t have a registered DNS name, enter its IP address here.
#
ServerName www.pisangraja.jc:80

[root@pisangraja ~]# /usr/local/etc/rc.d/apache22 restart
Performing sanity check on apache22 configuration:
Syntax OK
apache22 not running? (check /var/run/httpd.pid).
Performing sanity check on apache22 configuration:
Syntax OK
Starting apache22.

DOne

Popularity: 56% [?]

{ 0 comments }

Domain Murah .CN hanya Rp.2700 - IDwebhost

by Perk1z on February 6, 2008

Domain nya adalah domain dengan ekstensi .CN (cina)

Para blogger sekarang hanya bermodalkan Rp.3000 ( masih sisa  Rp.300) sudah bisa pny domain dengan brand sendiri. Mendapatkannya tanpa syarat macam-macam, jadi tidak harus dengan hosting baru bisa dapat domainnnya.

jadi … tinggu apa lagi … dapatkan domain murah tersebut hanya di IDWEBHOST

Popularity: 48% [?]

{ 0 comments }

Web Hosting Pal - www.webhostingpal.com