Kmaiti

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

Saturday, 30 October 2010

Fatal error: Out of memory (allocated +) (tried to allocate + bytes) ?

Posted on 13:35 by Unknown
Guys,Please increase the memory size in php.ini file. If it does not work just put following directives in the httpd.conf file and restart apache :====RLimitMEM 447392422RLimitCPU 240====You may have increased the RLimitMEM size since above has in bytes.OR : You can set -1 at ini_set('memory_limit', '-1'); This has in the configuration file of the script.Try...
Read More
Posted in | No comments

Thursday, 28 October 2010

DATABASE ERROR: CONNECTION FAILED! + roundcube

Posted on 18:21 by Unknown
Guys,If you get this error just rectify the login details in the /usr/local/cpanel/base/roundcube/config/db.inc.php file since it's clear the DB connection error. Example :------root@2red [/usr/local/cpanel/base/roundcube]# cat config/db.inc.php | grep roundcube$rcmail_config['db_dsnw'] = 'mysql://roundcube:DB_PASSWORDlocalhost/roundcube';// postgres example: 'pgsql://roundcube:pass@localhost/roundcubemail';root@2red [/usr/local/cpanel/base/roundcube]#------PS: Name of the roundcube database : roundcube DB username : roundcube DB password...
Read More
Posted in | No comments

How to install roundcube in the cpanel server?

Posted on 17:46 by Unknown
Guys,I referred the following steps :-----------cd /usr/local/cpanel/baserm -rf roundcube*mysql -p -e 'drop database roundcube';chattr -i /usr/local/cpanel/base/frontend/x/webmaillogin.htmlchattr -i /usr/local/cpanel/base/webmaillogin.cgi/scripts/upcpcd /usr/local/cpanel/basewget http://sourceforge.net/projects/roundcubemail/files/roundcubemail/0.4.2/roundcubemail-0.4.2.tar.gz/downloadtar -zxvf roundcube.tar.gzrm -rf roundcube.tar.gzmv -f roundcubemail-0.1-rc1 roundcubecd roundcubechmod -R 777 tempchmod -R 777 logs-----------mysql -e "CREATE DATABASE...
Read More
Posted in | No comments

Sunday, 24 October 2010

How to migrate Plesk data manually with Plesk Migration Manager?

Posted on 22:34 by Unknown
Manually migration?[How to] How to migrate Plesk data manually with Plesk Migration Manager? Article ID: 1152 Last Review: Nov,24 2009 Author: Bezborodova Anastasiya Last updated by: Bezborodova Anastasiya APPLIES TO: Plesk 8.x for Linux/Unix Plesk 9.x for Linux/Unix ResolutionTo do this follow the steps below:1. Upload migration agent and modules to the source server. For example for Parallels Plesk Panel, there are two folders: /usr/local/psa/PMM/agents/shared and /usr/local/psa/PMM/agents/PleskX. Use the command below to copy the Migration...
Read More
Posted in | No comments

How to reduce server's load?

Posted on 22:31 by Unknown
You can refer following steps to deal with to reduce server's load :=======1 )netstat -plan | grep :80 | awk '{print $5}' | cut -d: -f 1 | sort | uniq -c | sort -n2) netstat -plan | grep :25 | awk '{print $5}' | cut -d: -f 1 | sort | uniq -c | sort -n3) pstree -paul4) cd /tmp5) rm -f dos-* sess_* .spamassassin*6) find . -user nobody -exec rm -f '{}' \;7) ps -C exim -fH ewww8) ps -C exim -fH eww |grep home9) netstat -ntu | grep ':' | awk '{print $5}' | awk '{sub("::ffff:","");print}' | cut -f1 -d ':' | sort | uniq -c | sort -n10) mysqladmin proc...
Read More
Posted in | No comments

How to check server's resource usage?

Posted on 22:29 by Unknown
You can use following script :======root@magneto [/var/log]# cat resusage.sh#!/bin/bashtop -b -c -n 1 >topresultwhile read linedoawk '{if( $9 >= 20 ) print $2 ":" $9 ":" $12 }' $linedone <"topresult"root@magneto [/var/log]cron : * * * * * /bin/bash /var/log/resusage.sh 1>>/var/log/server_resusagewq.log========================flush log : root@magneto [/var/log]# cat flush_server_resusage.sh#!/bin/bashrm -f /var/log/server_resusage.logtouch /var/log/server_resusage.logecho "===================`date`===================" >>/var/log/server_resusage.logroot@magneto...
Read More
Posted in | No comments

How to login into the server using bash script?

Posted on 22:22 by Unknown
Here is the script :===#!/bin/bashHOST="remote-hostname"USER="remote-user"PASS="remore-user-password"CMD=$@VAR=$(expect -c "spawn ssh -o StrictHostKeyChecking=no $USER@$HOST $CMDmatch_max 100000expect \"*?assword:*\"send -- \"$PASS\r\"send -- \"\r\"expect eof")echo "==============="echo "$VAR"===Try...
Read More
Posted in | No comments

How to recursively change the permission of the files?

Posted on 22:20 by Unknown
Use the following commands : ----------find . -type d -exec chmod 755 {} \;find . -type f -exec chmod 644 {} \;----------Try...
Read More
Posted in | No comments

How to get system information using bash script?

Posted on 22:17 by Unknown
Here is the script that you can use :--------#!/bin/bash# grabsysinfo.sh - A simple menu driven shell script to to get information about your # Linux server / desktop.# Author: Vivek Gite# Date: 12/Sep/2007 # Define variablesLSB=/usr/bin/lsb_release # Purpose: Display pause prompt# $1-> Message (optional)function pause(){ local message="$@" [ -z $message ] && message="Press [Enter] key to continue..." read -p "$message" readEnterKey} # Purpose - Display a menu on screenfunction show_menu(){ date echo "---------------------------"...
Read More
Posted in | No comments

Meaning of special characters in bash scripting?

Posted on 22:09 by Unknown
Guys, You can refer the following information for the bash scripting :===========1. Basic : Special charecter : # --> to comment; --> command separator.;; --> terminator, used after "case". like : case "$variable" in abc) echo "\$variable = abc" ;; xyz) echo "\$variable = xyz" ;;esac----------. --> used to create hidden file and denotes current directory." -->partial quoting.' --> full quoting.\ -->escape [backslash]/ -->Filename path separator [forward slash]` -->command substitution. The `command` construct...
Read More
Posted in | No comments

How to create fork bomb?

Posted on 22:04 by Unknown
Here is the script to create fork bomb on linux machine.Please note that once you execute this script, the load of the server will be automatically increased and it'll be hanged.-----------#/bin/sh$0 &$0-----------Prevention : http://www.cyberciti.biz/tips/linux-limiting-user-process.html Try...
Read More
Posted in | No comments

Who is using more cpu resources on the linux server?

Posted on 22:01 by Unknown
Guys, Here is the script that you can use :----This script is used to identify overloading script (http & non-http scripts)...----#!/bin/bashechoecho "Date/Time CPU% ProcessID ScriptPath"echo =======================================================================ps auxw | grep -v root | grep -v /mysql/ | awk '{printf "%d %d\n",$2,$3}' | \( while read psid cpu; do if [ $cpu -gt 2 ]; then lsof -p $psid | grep /home | grep -v sess_ | awk '{print $9}' | \ ( while read script_path; do date...
Read More
Posted in | No comments

How to send mail using bash script?

Posted on 21:47 by Unknown
You can use following script to send mail(Pls change the e-mail address and its content)--------#!/bin/bash# script to send simple email# email subjectSUBJECT="SET-EMAIL-SUBJECT"# Email To ?EMAIL="admin@somewhere.com"# Email text/messageEMAILMESSAGE="/tmp/emailmessage.txt"echo "This is an email message test"> $EMAILMESSAGEecho "This is email text" >>$EMAILMESSAGE# send an email using /bin/mail/bin/mail -s "$SUBJECT" "$EMAIL" < $EMAILMESSAGE-------try...
Read More
Posted in | No comments

Addition, multiplication etc in bash script?

Posted on 21:38 by Unknown
======== #!/bin/bashx=5 # initialize x to 5y=3 # initialize y to 3add=$(($x + $y)) # add the values of x and y and assign it to variable addsub=$(($x - $y)) # subtract the values of x and y and assign it to variable submul=$(($x * $y)) # multiply the values of x and y and assign it to variable muldiv=$(($x / $y)) # divide the values of x and y and assign it to variable divmod=$(($x % $y)) # get the remainder of x / y and assign it to variable mod========try...
Read More
Posted in | No comments

How to fetch line by line from the file using bash script?

Posted on 21:36 by Unknown
Guys,I used following scripts :----#!/bin/bashwhile read linedoecho-e "$ line \ n"done file.txt ----where file name is "file.txt".Try...
Read More
Posted in | No comments

Convert mp4 file to flv ?

Posted on 21:34 by Unknown
use following linux command :--------/usr/local/bin/mencoder "video.mp4" -o "video.flv" -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=800:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -srate 22050 -ofps 24 -vf harddup--------Input file name :video.mp4Output file name : video.flvtry...
Read More
Posted in | No comments

How to convert mpg file to flv file using ffmpeg or mencoder?

Posted on 21:31 by Unknown
Here are the steps those I once used :=====I converted the video using ffmpeg command line as below.----------ffmpeg -i lions.mpg lions-ffmpeg.flv----------PS: input file name : lions.mpgThe video was converted fine.Then I converted the video using mencoder using the command mentioned below.-------------mencoder lions.mpg -o lions-mencoder.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=800:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -vf scale=450:400 -srate 22050--------------Then I generated a thumbnail using ffmpeg...
Read More
Posted in | No comments

How to Install PAE kernel?

Posted on 21:27 by Unknown
To install PAE kernel, use yum command:1.--------yum install kernel-PAE---------Just reboot the server and make sure you boot with PAE kernel i.e. 2.6.18-8.1.15.el5PAE:2.---------reboot---------First, update to the latest current kernel, then install the correct -devel package --3.---------yum update kernelyum install kernel-devel---------Finally, reboot and ensure that you are now running kernel-2.6.18-164.11.1.el5 by "uname -a" command.===========kernel-PAE-debuginfo rpm build for : RedHat EL 5. For other distributions click here.Name : kernel-PAE-debuginfo...
Read More
Posted in | No comments

Friday, 1 October 2010

Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable

Posted on 00:49 by Unknown
Guys, The steps didn't work on our server but it worked for some other guys.=======From one xterm run "su oracle-user" then run "export DISPLAY=localhost:0.0"From another xterm run: "xhost +" and then from the first xterm run the installer.$ xhost + # this allows any host to connect to the local X11 session=======Try...
Read More
Posted in | No comments

How to install oracle database 10g on linux server?

Posted on 00:20 by Unknown
Guys, I referred following steps to do the same :Oracle 10G Installations on linux 64 or 32 arch) :-==========1. Minimum Requirement 40 GB Hard disk and 512 RAM.2. Check following latest packages has been installed on 32 bit linux machine :-Note : Please note that try search in google like "download name + rpm". As an example : download Imlib _ + rpm. Then download latest rpm and use "rpm -Uvh package name " to install them. Always try download from pbone.com .....................Binutils-2.15.92.0.2-10.EL4Compat-db-4.1.25-9Control-center-2.8.0-12Gcc-3.4.3-9.EL4Gcc-c++-3.4.3-9.EL4Glibc-2.3.4-2Glibc-common-2.3.4-2Gnome-libs-1.4.1.2.90-44.1Libstdc++-3.4.3-9.EL4Libstdc++-devel-3.4.3-9.EL4Make-3.80-5Pdksh-5.2.14-30Sysstat-5.0.5-1Xscreensaver-4.18-5.rhel4.2libaio-0.3.9.......................3....
Read More
Posted in | No comments
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Popular Posts

  • NDMP communication failure error
    Guys, Issue : Netbackup server sends alert NDMP communication failure once everyday. But there is no issue to run scheduled backup jobs. Env...
  • unable connect to socket: No route to host (113)
    Guys, This error message usually comes when you try to access remote linux desktop using vncviewer. Please check the firewall in the linux s...
  • 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...
  • How to make bridge over VLAN?
    How to make bridge over VLAN? Bridging over VLAN's : By constructing a bridge between a "normal" and a "VLAN" ethern...
  • 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...
  • what does it mean by "cman expected_votes="1" two_node="1" in cluster.conf ?
    For two node clusters ordinarily, the loss of quorum after one out of two nodes fails will prevent the remaining node from continuing (if bo...
  • How to install pdo_mysql module with php on 64 bit linux machine?
    Guys, The PHP Data Objects (PDO) extension defines a lightweight, consistent interface for accessing databases in PHP. Each database driver ...
  • configure: error: could not find library containing RSA_new
    Guys, It seems you have enabled the SSL option during configuring the package. Please either resolve that dependency or disable the SSL opti...
  • Cannot find config.m4 + phpize +Resolved
    Guys, I got the same error messages and sorted out it. Here is the error that I got. ===== root@server [/home/cpeasyapache/src/php-5.2.9/ext...
  • How to migrate VPS container to another virtuozoo node?
    Guys, I referred the following steps : I executed following command from the old node : ==== [root@old_node ~]# vzmigrate IP_of_new_node 213...

Categories

  • ACL
  • ESX
  • Linux
  • Storage
  • UCS

Blog Archive

  • ►  2013 (5)
    • ►  May (1)
    • ►  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)
      • Fatal error: Out of memory (allocated +) (tried t...
      • DATABASE ERROR: CONNECTION FAILED! + roundcube
      • How to install roundcube in the cpanel server?
      • How to migrate Plesk data manually with Plesk Migr...
      • How to reduce server's load?
      • How to check server's resource usage?
      • How to login into the server using bash script?
      • How to recursively change the permission of the fi...
      • How to get system information using bash script?
      • Meaning of special characters in bash scripting?
      • How to create fork bomb?
      • Who is using more cpu resources on the linux server?
      • How to send mail using bash script?
      • Addition, multiplication etc in bash script?
      • How to fetch line by line from the file using bash...
      • Convert mp4 file to flv ?
      • How to convert mpg file to flv file using ffmpeg o...
      • How to Install PAE kernel?
      • Can't connect to X11 window server using ':0.0' as...
      • How to install oracle database 10g on linux server?
    • ►  September (14)
    • ►  August (24)
    • ►  July (19)
    • ►  June (3)
    • ►  May (25)
    • ►  April (3)
    • ►  January (1)
Powered by Blogger.