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...
Saturday, 30 October 2010
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...
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...
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...
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...
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...
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...
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...
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 "---------------------------"...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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....
Subscribe to:
Posts (Atom)