Tikejhya: Ashish Nepal

Knowledgebase

Month: September 2011 (Page 1 of 3)

check linux machine bit

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

uname -m

Full info

uname -a

Replication Sync Issue on Slave

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

Replication Sync Issue on Slave

#Check status
show slave statusG

# Lets say error found
Last_Error: Error ‘Can’t create database ‘dbname’; database exists’ on query.
Default database: ‘dbname’. Query: ‘create database dbname’

stop slave;

SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1;
start slave;

ERROR! Libpcre header not found.

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

ERROR! Libpcre header not found.
Get it from http://www.pcre.org

Solution:

yum install pcre-devel

ERROR! zlib header not found, go get it from
http://www.zlib.net

Solution:
yum install zlib-deve

configure: error: Your operating system’s lex is insufficient to compile

Error

configure: error: Your operating system’s lex is insufficient to compile
libpcap. flex is a lex replacement that has many advantages, including
being able to compile libpcap. For more information, see

Solution

yum install flex
yum install bison

configure: error: C++ preprocessor “/lib/cpp” fails sanity check

Error:

configure: error: C++ preprocessor “/lib/cpp” fails sanity check

Solution:

yum install gcc-c++

Apache Auto Index

To enable index.php (auto)

LoadModule autoindex_module modules/mod_autoindex.so
DirectoryIndex index.php

SNORT (ERROR: unable to find mysqlclient library (libmysqlclient.*)

**********************************************
ERROR: unable to find mysqlclient library (libmysqlclient.*)
checked in the following places
/usr
/usr/lib
/usr/mysql
/usr/mysql/lib
/usr/lib/mysql
/usr/local
/usr/local/lib
/usr/local/mysql
/usr/local/mysql/lib
/usr/local/lib/mysql
**********************************************
Solution

[root@my barnyard2-1.9]# ./configure –with-mysql-libraries=/usr/lib64/mysql/

NOTE: my libraries are @ given location.

If,. error says

**********************************************
ERROR: unable to find mysql headers (mysql.h)
checked in the following places

Check for mysql.h if nothing appears may be you dont have mysql-devel isntalled.

make: *** [install-recursive] Error 1

make[2]: *** [install-pkglibLTLIBRARIES] Error 1
make[2]: Leaving directory `/usr/local/src/daq-0.6.1/os-daq-modules’
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/usr/local/src/daq-0.6.1/os-daq-modules’
make: *** [install-recursive] Error 1

Could be you are already as root user but never trust :p come back as root use and do it should be fine.

Invalid configuration `x86_64-pc-linux-gnu’: machine `x86_64-pc’ not recognized

Problem:

## ./configure
checking host system type… Invalid configuration `x86_64-pc-linux-gnuoldld’: machine `x86_64-pc’ not recognized
configure: warning: apparently your OS is not officially supported yet
configure: warning: this may not work
you’ll have to edit the makefile by hand

Solution:
edit file config.sub, add “x86_64-*” here:

# Decode aliases for certain CPU-COMPANY combinations.
case $basic_machine in

# Recognize the basic CPU types with company name.
vax-* | tahoe-* | i[3456]86-* | x86_64-* | i860-* | m68k-* | m68000-* | m88k-*

.htaccess

Creating .htpasswd For first time

htpasswd -c .htpasswd admin

Creating .htpasswd users (access-user)

htpasswd .htpasswd ashish

Different Options with .htaccess File

vi .htaccess
AuthUserFile /path/to/folder/.htpasswd
AuthName "Please Log In"
AuthType Basic
require user admin
#or instead admin use
require valid-user

Page 1 of 3

Powered by WordPress & Theme by Anders Norén