Monday 22 October 2012

Setup domain nagix etc usefull urls

http://www.unixsurgeon.com/kb/setup-nginx-as-reverse-proxy-with-apache.html

 http://kbeezie.com/view/apache-with-nginx/

http://www.ctkn.net/2011/10/install-mod_rpaf-on-centos-5-centos-6/

http://www.unixsurgeon.com/kb/setup-nginx-as-reverse-proxy-with-apache.html

http://www.beer.org.uk/bsacdns/

http://www.webtop.com.au/blog/how-to-setup-dns-using-webmin-2009052848

http://forums.devshed.com/dns-36/setting-up-dns-using-webmin-406190.html


Read More

Change linux root password

Change linux root password

user# su
password :
root# passwd
Enter New Password:
Re type password:
 
Read More

After Copying Mysql table data files manually mysql service not running

If you got the problem After Copying Mysql table data files manually MySQL service not running then check owner of copied files, to work MySQL the owner must be MySQL

mysql data folder in linux /var/lib/mysql

root/backup# cp databasefolder /var/lib/mysql
root# chown mysql.mysql  databasefolder
root# cd  databasefolder
root/databasefolder# chown mysql.mysql *

Read More

Sunday 21 October 2012

Solution to : XML::SAX::Base.3pm.gz conflicts between Problem

Some time if you got Problem like below while yum update

file /usr/share/man/man3/XML::SAX::Base.3pm.gz conflicts between
attempted installs of perl-XML-SAX-Base-1.04-3.el6.noarch and
perl-XML-SAX-0.96-7.el6.noarch
file /usr/share/man/man3/XML::SAX::Exception.3pm.gz conflicts between
attempted installs of perl-XML-SAX-Base-1.04-3.el6.noarch and
perl-XML-SAX-0.96-7.el6.noarch 



to Avoid these type of problem update yum by excluding those packages
Example

yum update -y --exclude=perl-XML-SAX-Base --skip-broken
 

Read More

Solution to : Error: rpmdb open failed

Error: rpmdb open failed will occur while trying to use you update to solve this problem use following commands

yum clean all
rm -f /var/lib/rpm/__db*
rpm --rebuilddb
yum update
Read More

Thursday 18 October 2012

Shell script execute command and store in variable

This Post shows how to execute command in .sh files ie shell script files

Example:

cmd=$(ps -ef | grep tcpdump | awk '{print $3}')
echo $cmd

in .sh files need to use like this variable=$(command)
Read More

Wednesday 17 October 2012

Set PHP execution time in Code Itself

It is possible to Set PHP execution time in code No need to changing php.ini file

Add Below line to your PHP code
ini_set('max_execution_time', 1919);
where 1919 means PHP script will execute 1919 seconds

Example:
<?php
ini_set('max_execution_time', 1919);
.................
................
..............

?>
Read More

Tuesday 9 October 2012

Get SVN files and Folders with WGET

By Using WGET it is possible to get all files and folders of a url 

Command
wget -r -i http://svn.planet-lab.org/svn/build/trunk/
Read More

Wednesday 3 October 2012

Add Route Between Two Systems

Type ifconfig in terminal (command Prompt) to know IP
Type route -n in terminal (command Prompt) to know GateWay

First System IP : 203.41.55.23
Second System IP : 23.41.67.89

First System Gateway : 203.41.55.1
Second System Gateway : 23.41.67.1

You can add route in any One System is Enough for example

Add route in First System
route add -host 23.41.67.89 gw 203.41.55.1

Or
Add route in Second System
route add -host 203.41.55.23 gw 23.41.67.1





Read More
Here We Write The Problems we face at different situations and Solutions to those problems.