Kmaiti

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Monday, 12 July 2010

How to Install confluence wiki on linux server(64 bit) + mysql database configuration error

Posted on 19:43 by Unknown
Guys,

I have referred following URL to install the confluence wiki on linux(64 bit).

=====
http://confluence.atlassian.com/display/DOC/Installing+Confluence+Standalone+on+UNIX+or+Linux
=====

Regarding the DB setting you can refer the following URL :

====
http://confluence.atlassian.com/display/DOC/Database+Setup+For+MySQL

NB: You need to create one db user and db password. Just give grant privileges to the "confluence" db or customized DB that you had manually created.

====
http://confluence.atlassian.com/display/DOC/Configuring+a+MySQL+Datasource+in+Apache+Tomcat
====

Here are the error messages that I had received during configuring the DB at the browser.

====
* Configuring the database failed. Couldn't create the database schema.
* com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:
Could not create connection to database server. Attempted reconnect 3 times.
Giving up
====

Sol : 1. The error is basically happened for mismatching of DB engine.
2. checked the DB engine at the backend like mysql# show variable like "%engine%";
3. Now you'll see the URL to connect the DB via jdbc driver like :
jdbc:mysql://localhost/confluenceuser?autoReconnect=true&sessionVariables=storage_engine%3DInnoDB

4. For my case DB engine was MyIsAm at mysql.
5. I setup the following URL :
jdbc:mysql://localhost/confluenceuser?autoReconnect=true&sessionVariables=storage_engine%3DMyIsAm
6. Then I proceeded further and I had successfully installed the software.

Try :)
Read More
Posted in | No comments

Sunday, 4 July 2010

How to repair a corrupt MBR on linux machine?

Posted on 04:21 by Unknown
Here are the steps:

========
1. Incert CD and boot from cd(you have to change the option at BIOS).
2. boot: linux rescue //command while boot prompt comes
3. chroot /mnt/sysimage //command
4. grub-install /dev/hda //command
5. reboot the machine.
========

That's it. try :)
Read More
Posted in | No comments

How to take backup/restore of MBR with dd command?

Posted on 04:19 by Unknown
The MBR is located in the first 512 bytes of the disk (the first sector).

Size (bytes) Description
446 Executable code section
4 Optional Disk signature
2 Usually nulls
64 Partition table
2 MBR signature

1. backup : execute following command

dd if=/dev/hda of=/mbrbackup.bin bs=512 count=1

2. Restore :

dd if=/mbrbackup.bin of=/dev/hda bs=512 count=1

Try it now :)
Read More
Posted in | No comments

Saturday, 3 July 2010

How to check mysql slow queries or which queries are consuming cpu resources?

Posted on 04:01 by Unknown
1. vi /etc/my.cnf and add following entries after mysqld.
[mysqld]
set-variable=long_query_time=1
log-slow-queries=/var/log/mysql/log-slow-queries.log

2. Perform following steps:
mkdir /var/log/mysql
touch /var/log/mysql/log-slow-queries.log
chown mysql.mysql -R /var/log/mysql
3. Restart mysql. /etc/init.d/mysqld restart
4. Now you can use mysqlsla tool to check the slow queries. Here are the steps.
cd /usr/src
wget http://hackmysql.com/scripts/mysqlsla-2.03.tar.gz
tar -xvzf mysqlsla-2.03.tar.gz
cd mysqlsla-2.03/bin
5. Execute following command :
./mysqlsla -lt slow --sort t_sum --top 5 /var/log/mysql/mysqld.slow

Now you'll able to see the results :) Contact developer to optimize the code.
optimize command is used to optimize the table. Here it is:
mysql>optimize table table_name;

check whether slow log has enabled or not.

mysql> SHOW VARIABLES like "%slow%"; //if not
mysql> SET @log_slow_queries=1;

Again restart mysql and use above tool after few minutes to check log.

Try :)
Read More
Posted in | No comments

Wednesday, 23 June 2010

Cpanel / WHM /FTP/E-mail are showing incorrect or zero disk usage?

Posted on 04:37 by Unknown
Hi Guys,

If you get such type of problems, please refer the following steps to resolve the issue. The reason is that I have followed it and fixed it.

====
1. Execute following scripts on the server.
root@venice [/]# /scripts/initquotas; /scripts/resetquotas; /scripts/fixquotas

2. If the issue is still there then check whether "usrquota" option has enabled or not for home directory(/etc/fstab). Please enable it. Also check the rw option of the home directory where user's home directory is there. I did following things.

====
root@venice [/]# cat /etc/fstab | grep home
LABEL=/home /home ext3 defaults 1 2
root@venice [/]#
root@venice [/]# mount -o remount,rw, usrquota /home
root@venice [/]# cat /etc/fstab | grep home
LABEL=/home /home ext3 defaults,rw,usrquota 1 2
root@venice [/]#
====

3. Make sure those options has also enabled in /etc/mtab.

===
root@venice [/]# cat /etc/mtab | grep home|column -t
/dev/sda8 /home ext3 rw,usrquota 0 0
root@venice [/]
===

Then I refreshed the WHM. It was displaying the correct disk usages.

TC.. :)
Read More
Posted in | No comments

Friday, 11 June 2010

How to scan the ports on the machine?

Posted on 02:55 by Unknown
1. Verifying Which Ports are Listening :
nmap -sT -O localhost/remote host/subnet

2. Check the port http of your local network :
nmap -v -p 80 192.168.1.*

3. ping scan :-
nmap -v -sP 192.168.2.0/24 or nmap -sP 192.168.2.*

4. UDP scan :-
nmap -v -sU 192.168.2.0/24

5. O.S Detection scan :-
nmap -O --vv 192.168.2.0/24

6. To check which protocol is supported by the remote machine :-
nmap –sO hostname
Read More
Posted in | No comments

Sunday, 6 June 2010

Why is horde or webmail showing blank page ?

Posted on 18:16 by Unknown
Issue : Horde is showing blank page while someone is accessing the webmail interface.
Solution :

I got this issue when one customer had notified it. It usually happens if path of the horde libray is not defined in the /etc/httpd/conf.d/zz010_psa_httpd.conf file. So,
a)edit the /etc/httpd/conf.d/zz010_psa_httpd.conf file
b) Find the directive "Include".
Example :

Before :
---------------
php_admin_value
include_path "/usr/share/psa-horde:/usr/share/psa-horde/pear:."
---------------

After (Correct) :

----------
php_admin_value
include_path "/usr/share/psa-horde/lib:/usr/share/psa-horde:/usr/share/psa-horde/pear:."
----------

c)Then restart the httpd service. That's it.
Read More
Posted in | No comments
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Popular Posts

  • [a fatal error or timeout occurred while processing this directive] + cpanel
    Guys, Just check the cpanel log file and you'll get the clue from there. I got following messages : execute : tail -f /usr/local/cpanel/...
  • How to access the webalizer from the outside of the cpanel?
    Guys, I don't want to post this type of article since you'll get it from the Google. But still I did. I followed following steps : E...
  • How to enable php in apache on RHEL ?
    1. In order to enable php engine in apache, you should make sure php is installed in the system first. Then refer following steps : locate l...
  • WHM + http showing failed ?
    Guys, Please check the log of the apache server like : 1. tail -f /usr/local/apache/logs/error_log 2. check the http port in /usr/local/apac...
  • How to verify UDP packet communication between two linux system?
    Guys, Today, I had to check UDP packet communication between linux and a windows system. Main purpose of the windows system was to capturing...
  • Addition, multiplication etc in bash script?
    ======== #!/bin/bash x=5 # initialize x to 5 y=3 # initialize y to 3 add=$(($x + $y)) # add the values of x and y and assign it to va...
  • How do I determine if my x86-compatible Intel system is multi-processor, multi-core or supports hyperthreading?
    Guys, We need to know about multi-processor, multi-core or supports hyperthreading. Here are the details : Physical ID (Physical processor o...
  • make: *** [install-webconf] Error 1
    Guys, I got this error message during configuring the nagios : Here is the exact error message. ======= root@server [/usr/local/src/nagios-3...
  • How to configure tata photon + on linux machine + rdehat
    Guys, Please read the article before proceeding to configure the USB modem. ============== [root@kmaiti ~]# wvdial --> WvDial: Internet d...
  • How to store sftp log messages in custom file on RHEL 6?
    How to setup chrooted sftp account on RHEL 6? $groupadd sftponly $$useradd user123 $usermod -d /myhome -g sftponly -s /bin/false user123 $mk...

Categories

  • ACL
  • ESX
  • Linux
  • Storage
  • UCS

Blog Archive

  • ▼  2013 (5)
    • ▼  May (1)
      • NDMP communication failure error
    • ►  April (3)
    • ►  February (1)
  • ►  2012 (10)
    • ►  July (1)
    • ►  June (1)
    • ►  April (1)
    • ►  March (3)
    • ►  February (3)
    • ►  January (1)
  • ►  2011 (86)
    • ►  December (3)
    • ►  November (2)
    • ►  September (19)
    • ►  August (9)
    • ►  July (5)
    • ►  June (9)
    • ►  May (12)
    • ►  April (3)
    • ►  March (4)
    • ►  February (5)
    • ►  January (15)
  • ►  2010 (152)
    • ►  December (9)
    • ►  November (34)
    • ►  October (20)
    • ►  September (14)
    • ►  August (24)
    • ►  July (19)
    • ►  June (3)
    • ►  May (25)
    • ►  April (3)
    • ►  January (1)
Powered by Blogger.