Guys,I have referred following steps and enabled the iptables modules.1. Required modules to be installed for any firewall like csf or apf :======ipt_MASQUERADEipt_helpeript_SAMEipt_REDIRECTipt_stateipt_TCPMSSipt_LOGipt_TOStuniptable_natipt_lengthipt_tcpmssiptable_mangleipt_limitipt_tosiptable_filteript_helpeript_tosipt_ttlipt_REJECT======2. Check the loaded module like : lsmod |grep ip3. touch enableiptablemod.sh4. vi enableiptablemod.sh and add the following list in this file.=====#!/bin/bashmodprobe ipt_helpermodprobe ipt_SAMEmodprobe ipt_REDIRECTmodprobe...
Tuesday, 31 August 2010
iptables: Unknown error + Resolved
Posted on 06:48 by Unknown
Guys,You can get these error messages when some modules of iptables are missing on the server. I got these when I was restarting the CSF on the container(CT or VPS). I have enabled iptables modules on the hardware node and CT. Then I restarted the csf. Then it worked. Due to this firewall issue you may not login into the server via ssh etc. Here are the steps those I followed :1. On the node :===========vi /etc/sysconfig/vz and add following modules at IPTABLES= line like IPTABLES= ipt_REJECT ipt_tos ipt_TOS ipt_LOG ip_conntrack ipt_limit ipt_multiport...
How to migrate VPS container to another virtuozoo node?
Posted on 06:41 by Unknown
Guys,I referred the following steps :I executed following command from the old node : ====[root@old_node ~]# vzmigrate IP_of_new_node 213:100====213 : CTID which will be moved to new node100 : CTID which will be created on new nodeIt'll ask for the password of new node.Here is the results :======[root@old_node~]# vzmigrate new_node_ip 213:100root@new_node's password: Connection to destination node (new_node) is successfully establishedMoving/copying CT#213 -> CT#100, [], [] ...Checking external bind mountsCheck cluster IDChecking keep dir for...
Monday, 30 August 2010
umount: /tmp: device is busy + Resolved
Posted on 20:42 by Unknown
Guys,Just check who is accessing the device. Here are the commands to check who are using it.=======lsof |grep /tmp=======You'll get the process ID and kill the processes like kill -9 PID. Here is an example(Second column is PID) :=======root@server [~]# lsof |grep /tmpmysqld 2579 mysql 4u REG 7,0 0 6098 /tmp/ibZGlGm2 (deleted)mysqld 2579 mysql 5u REG 7,0 68 6100 /tmp/ibgWnlrp (deleted)mysqld 2579 mysql 6u REG 7,0 0 6101 /tmp/ib7XB0vM (deleted)mysqld...
Cannot find config.m4 + phpize +Resolved
Posted on 07:04 by Unknown
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]# phpizeCannot find config.m4. Make sure that you run '/usr/local/bin/phpize' in the top level source directory of the moduleroot@server [/home/cpeasyapache/src/php-5.2.9/ext]#=====My intention was to phpize of mssql. I entered inside the mssql directory and the error vanished. Here it is :=====root@server [/home/cpeasyapache/src/php-5.2.9/ext/mssql]# phpizeConfiguring for:PHP Api Version: 20041225Zend...
How to install mssql php extension on linux or cpanel server?
Posted on 05:52 by Unknown
Guys,Following modules are need to be installed before enabling the MSSQL extension for PHP on server.-------- a) unixODBCb) freeTDSc) PHP mssql.so---------Setup 1: Install unixODBC package :----------------# wget http://www.unixodbc.org/unixODBC-2.2.14-p2.tar.gz //You can download latest tar file# tar -xvzf unixODBC-2.2.12.tar.gz # cd unixODBC-2.2.12# ./configure -prefix=/usr/local -enable-gui=no # make # make install ----------------Step 2: Install freeTDS package :---------------#wget ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/stable/freetds-stable.tgz#...
configure: error: C preprocessor "/lib/cpp" fails sanity check + Resolved
Posted on 04:57 by Unknown
Guys,I got that error messages when I was going to configure any software on the linux server. I was unable to execute easyapache or ./configure since it was throwing following error messages.=====configure: error: in `/home/cpeasyapache/src/httpd-2.2.16/srclib/apr':configure: error: C preprocessor "/lib/cpp" fails sanity checkSee `config.log' for more details.configure failed for srclib/apr=====configure: error: C preprocessor "/lib/cpp" fails sanity check=====I have investigated the issue and got clue from config.log. It has stated that timer.h...
Saturday, 28 August 2010
How to add or load shared library on linux ?
Posted on 03:22 by Unknown
Guys,I have referred following steps :=====1. As root, edit file /etc/ld.so.conf. Add a line like /usr/local/pgsql/lib2. Then run command /sbin/ldconfig //to configure dynamic linker run-time bindings3.#In a bash shell, type export LD_LIBRARY_PATH=/usr/local/pgsql/lib //set path for the bash shell4#In a csh shell, type setenv LD_LIBRARY_PATH /usr/local/pgsql/lib=====That's it. Try...
How to install uploadprogress php extension on linux machine?
Posted on 03:10 by Unknown
Guys,1. Download source file from : http://pecl.php.net/package/uploadprogress/2. tar -xvzf uploadprogress-1.0.0.tgz3. cd uploadprogress-1.0.04. phpize5. ./configure6. make 7. make install8. uploadprogress.so will go to /usr/lib/php/extensions/no-debug-non-zts-20060613/9. echo "extension=uploadprogress.so" >> /usr/lib/php/php.ini10. Restart webserver.That's it. Try...
Wednesday, 25 August 2010
How to change php handler from backend on cpanel server?
Posted on 02:19 by Unknown
Guys,I have referred the following commands to switch the php handler on the cpanel serevrs:1. Command to display the current php handler installed and all the avaliable php handlers in the server:-------[root@me ~]# /usr/local/cpanel/bin/rebuild_phpconf --current------2. Command to display the available php handler installed and all the avaliable php handlers in the server:-------[root@me ~]# /usr/local/cpanel/bin/rebuild_phpconf --available------3. Command to change the default PHP handler to dso:-------[root@me ~]# /usr/local/cpanel/bin/rebuild_phpconf...
How to recursively copy files from one server to another server?
Posted on 01:54 by Unknown
Guys,I usually choose rsync linux command to copy the file and this is much more faster than any other method. It'll take few minutes though the size is in GB.Here are the exact commands :=====from_destination _server#]rsync -ravz -e ssh root@source_server_IP:/home/user/public_html/waiting4u /home/nomore/public_html =====/home/user/public_html/waiting4u : Directory on source server./home/nomore/public_html : Directory on destination server.r = recursive - means it copies directories and sub directoriesv = verbose - means that...
Sunday, 22 August 2010
How to install svn (Subversion) on linux machine?
Posted on 06:19 by Unknown
SVN or Subversion :Subversion, or SVN, is a mechanism by which developers can keep track of changes to their code and distribute these changes to the public in real time. This allows people to take advantage of software as it is being developed, between official releases. I referred following steps :====cd /usr/local/src/wget http://subversion.tigris.org/downloa...n-1.4.5.tar.gzwget http://subversion.tigris.org/downloa...s-1.4.5.tar.gzwget http://www.sqlite.org/sqlite-3.5.2.tar.gztar xzf subversion-1.4.5.tar.gztar xzf subversion-deps-1.4.5.tar.gztar...
How to create logical volume or LVM on linux machine?
Posted on 05:25 by Unknown
Guys,Logical volume management provides a higher-level view of the disk storage on a computer system than the traditional view of disks and partitions. This gives the system administrator much more flexibility in allocating storage to applications and users.Storage volumes created under the control of the logical volume manager can be resized and moved around almost at will, although this may need some upgrading of file system tools. I have referred the following steps.Before proceeding to create the LVM we need to first partition the drive. You...
Tuesday, 17 August 2010
Lite speed webserver + Connection was reset ?
Posted on 18:23 by Unknown
Guys,As per my knowledge either session is being expired or another processes or connections are initiating to setup the new connections. This violates to disconnect the established connection. For my case, above error messages usually came out when maximum execution time of the php variable was less than total time required for uploading file. I have increased the value of the variable. Our server lsws has compiled as a CGI sapi and I put the variable in the htaccess file. Here are those my tuned values.====root@server [/home/test123/public_html]#...
Sunday, 15 August 2010
How does Red5 work + How red5 works ?
Posted on 05:08 by Unknown
Guys,What is red5 server?Red5 is an Open Source Flash Server written in Java that supports:a)Streaming Audio/Video : flv, mp3, s4v,mp4,aac, m4ab) Recording Client Streams (FLV only)c) Shared Objectsd) Live Stream Publishing : Sorenson, VP6,h.264,Nelly Moser, MP3, Speex, AAC , NSV e) Remoting How does it work?Red5 server converts the video file to the flash file and we everyone knows that flash files play instantly once someone accesses it. Here when we request or select a particular video, the video script will send the video(stream the video)...
How to install apache ant on linux server?
Posted on 04:02 by Unknown
Guys,what is Apache ant ?Apache Ant is a software tool for automating software build processes. It is similar to Make but is implemented using the Java language, requires the Java platform, and is best suited to building Java projects.I followed following steps :Login into the server via SSH :====1. wget http://apache.mirrors.tds.net/ant/binaries/apache-ant-1.8.1-bin.tar.gz2. tar -xzvf apache-ant-1.8.1-bin.tar.gz3. cd apache-ant-1.8.14. cp -arp * /usr/local/ant5. echo 'export PATH=$PATH:/usr/local/ant/bin'>>/etc/profile6. echo 'export ANT_HOME=/usr/local/ant'>>/etc/profile7....
Wednesday, 11 August 2010
How to install php eaccelerator on 64 bit linux server?
Posted on 17:47 by Unknown
Guys, Here are the steps those I followed :====Source : http://bart.eaccelerator.net/source/0.9.5.3/Steps : $ tar -jxvf eaccelerator-0.9.5.2.tar.bz2 $ cd eaccelerator-0.9.5.2 $ phpize $ ./configure $ make $ make install after the last command, it shows this line:Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/Now we edit php.ini //php -i |grep php.ini or php --ini $ nano /usr/local/lib/php.iniand add these line: extension="eaccelerator.so" eaccelerator.shm_size=”16″ eaccelerator.cache_dir=”/tmp/eaccelerator”...
Saturday, 7 August 2010
Install ffmpeg mplayer flvtool2 yamdi x264 theora mp3lame vorbis ogg faac
Posted on 21:09 by Unknown
Guys,Here are the steps those I followed :=======This is a tutorial to enable video sharing support on Centos servers.This should install ffmpeg, mplayer, mencoder, flvtool2, yamdi, x264, theora, mp3lame, vorbis, ogg, faac, faad2, xvid . These tools will enable on your server:video conversionthumbnail generationFLV meta injection (flvtool2, yamdi)extra codecs (x264, theora, mp3lame, vorbis, ogg, faac, faad2, xvid)This is functional and we update it each time we configure a new server.Installation is done using the “root” account.Attention: If you...
Thursday, 5 August 2010
How to convert mp4 file to flv file on linux machine using the ffmpeg binary ?
Posted on 21:50 by Unknown
Guys,I executed the following command to do the same:====root@starslite [~]# ffmpeg -i vdosong.mp4 -f flv -vcodec flv -r 30 -b 512000 -s 400x300 -aspect 1.33333333333 -acodec libmp3lame -ab 128000 -ar 22050 -map_meta_data /home/user/public_html/files/videos/testme.flv:/home/user/vdosong.mp4 /home/user/public_html/files/videos/testme.flv====PS : /home/user/public_html/files/videos/testme.flv is the path of out put file and vdosong.mp4 is source file inside the current directory(ie /home/user/).You can also try to use padding. Here is the exact...
How to install pdo_mysql module with php on 64 bit linux machine?
Posted on 21:40 by Unknown
Guys,The PHP Data Objects (PDO) extension defines a lightweight, consistent interface for accessing databases in PHP. Each database driver that implements the PDO interface can expose database-specific features as regular extension functions. Note that you cannot perform any database functions using the PDO extension by itself; you must use a database-specific PDO driver to access a database server. PDO_MYSQL is a driver that implements the PHP Data Objects (PDO) interface to enable access from PHP to MySQL 3.x and 4.x databases. I referred the...
Why clipbucket or ffmpeg is unable convert video files using ffmpeg on linux machine?
Posted on 20:03 by Unknown
Guys,I have tired to upload the video files in the clipbucket script enabled site but every time it's not converting the video file to flv file. I logged in the admin area and saw the conversion log(Did't get any server log). The -vf option of ffmpeg was causing to convert the mp4 file to flv file for my case. I have checked the issue as per the basic concept. What I actually did I searched the exact file which was uploading the video file(upload.php). I had conception like some file or code in a file which was converting the video. So, I started...
How to limit CPU ususage for a process?
Posted on 00:43 by Unknown
Here are the steps those I followed :Install cpulimit binary:-Type the following commands to install latest stable release:# cd /tmp# wget 'http://downloads.sourceforge.net/cpulimit/cpulimit-1.1.tar.gz'# tar -zxvf cpulimit-1.1.tar.gz# cd cpulimit-1.1# make# cp cpulimit /usr/local/sbin/# rm -rf cpulimit*Note : You can search the latest tar file.===if gcc is not on the server, please run yum install gcc*. I got error here.===How do I use cpulimit?To limit CPU usage of the process called firefox to 30%, enter:# cpulimit -e firefox -l 30To limit CPU...
Wednesday, 4 August 2010
How to install Mp4Box on 64 bit linux machine ?
Posted on 03:35 by Unknown
What is Mp4Box ?MP4Box is a MP4 multiplexer. It can import MPEG-4 video, DivX, XviD, 3ivx, h264 etc, audio streams and subtitles into the .mp4 container. The end result is a compliant MP4 stream. It can also extract streams from a .mp4. MP4Box is a command line tool, but can be used with graphical user interfaces such as YAMB or my MP4box GUI.What is zlib ?zlib is a software library used for data compression. zlib was written by Jean-Loup Gailly and Mark Adler and is an abstraction of the DEFLATE compression algorithm used in their gzip file compression...
Tuesday, 3 August 2010
How to partition a linux drive or raw disk?
Posted on 03:13 by Unknown
Here are the steps those I followed :servername : abcNew device attached : /dev/sdc //You'll view it by executing fdisk -l command. Example : ====root@abc [~]# fdisk -lDisk /dev/sda: 251.0 GB, 251059544064 bytes255 heads, 63 sectors/track, 30522 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System/dev/sda1 * 1 13 104391 83 Linux/dev/sda2 14 274 2096482+ 82 Linux swap / Solaris/dev/sda3 275 30522 242967060...
Subscribe to:
Posts (Atom)