ftp connection to the server failed and it will throw an error like
[ajeesh@tech24 ~]$ ftp ftp.yourdomain.com
Connected to ftp.yourdomai.com (IP).
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 50 allowed.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode ()
ftp: connect: Connection timed out
Solution:-
pure-ftpd you could add the port range 30000:35000 to TCP_IN and add the following line to /etc/pure-ftpd.conf and then restart pure-ftpd:
PassivePortRange 30000 35000
after that we need to enter the port range 30000:35000 on /etc/csf/csf.conf on the line ' TCP_IN = ' [Allow incoming TCP ports]
This will fix my issue
Related issue also fixed
*WARNING* Since the Virtuozzo VPS iptables ip_conntrack_ftp kernel module is currently broken you have to open a PASV port hole in iptables for incoming FTP connections to work correctly. See the csf readme.txt under 'A note about FTP Connection Issues' on how to do this if you have not already done so.
csftest.pl
Testing ipt_recent...FAILED [Error: iptables: Unknown error 18446744073709551615] - Required for PORTFLOOD feature
=====================
To activate passive mode in Firewall Pf and FTP server PureFtp.
1. First we need to check the conf of pureftp PassivePortRange
Suppose it is 30001 32000
2. open your pf configuration file /etc/pf.conf and enter the following rule
pass in on $ext_if proto tcp from any to any port 30000 >< 32001 keep state
3. ipf -Fa -f /etc/ipf.rules;sleep 40;ipf -Fa :- for testing the firewall for 40 sec
4. if step 3 is ok then reload your pf firewall : ipf -Fa -f /etc/ipf.rules
=======================
Monday, September 6, 2010
FFmpeg FFmpeg-PHP Mplayer Mencoder flv2tool LAME MP3 Encoder INSTALLATION
Here We can discus how to install FFMPEG and it associated friends ( Supporting Software) on Linux Servers.
FFmpeg
FFmpeg-PHP
Mplayer Mencoder
flv2tool
LAME
MP3 Encoder
****************
For Installing FFMPEG and its friends we need to make sure the following packages already installed on your server
gcc,gmake,make, libcpplibgcc, libstdc++, gcc4, gcc4-c++, gcc4-gfortran, subversion, ruby ncurses-devel -y
If not please install these packages using yum
yum install gcc gmake make libcpp libgcc libstdc++ gcc4 gcc4-c++ gcc4-gfortran subversion ncurses-devel -y
Install Ruby, Ruby Gem, Fastthread, Mongrel and Rails on cpanel servers by using the command
/scripts/installruby
Please do the following Steps
cd /usr/local/src/
Next We need to Download the required MODULES .
wget www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2
wget rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz
wget easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
wget superb-west.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.1.tbz2
Or
wget http://space.dl.sourceforge.net/project/ffmpeg-php/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2
wget downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
wget downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz
and wget http://www.tortall.net/projects/yasm/releases/yasm-0.7.0.tar.gz
After that extract these downloaded MODULES using ' tar zxf filename '
mkdir /usr/local/lib/codecs/
By using Subversion we can down load packages for FFMPEG and Mplayer
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
cd /usr/local/src/mplayer
svn update
PS: Please note that now the SNV version has been not updated for a long time so it is good to use git installation instead of SNV: 19-08-2011(Firday)
cd /usr/local/src/
mv /usr/local/src/essential-20061022/* /usr/local/lib/codecs/
chmod -R 755 /usr/local/lib/codecs/
After that We can install one by one packages
LAME:-
cd /usr/local/src/lame-3.97
./configure
make && make install
LIBOGG:-
cd /usr/local/src/libogg-1.1.3
./configure --enable-shared && make && make install
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export PKG_CONFIG_PATH
LIBVORBIS:-
cd /usr/local/src/libvorbis-1.1.2
./configure && make && make install
FLVTOOL2:-
cd /usr/local/src/flvtool2_1.0.5_rc6/
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install
MPLAYER:-
cd /usr/local/src/mplayer
./configure && make && make install
FFMPEG:-
cd /usr/local/src/ffmpeg/
./configure --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared
make
make install
export LD_LIBRARY_PATH=/usr/local/lib/
ln -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50
ln -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51
ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49
ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0
ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51
ln -s /usr/local/lib/libavdevice.so.52 /usr/lib/libavdevice.so.52
ln -s /usr/local/lib/libavformat.so.52 /usr/lib/libavformat.so.52
FFMPEG-PHP Extension:-
cd /usr/local/src/
wget http://sourceforge.net/projects/ffmpeg-php/files/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2/download
[0.50 version throws me error once i have used this version fixed my error]
tar -xjf ffmpeg-php-0.6.0.tbz2
cd ffmpeg-php-0.6.0/
phpize
./configure
make
make install
make install will shows you the extension file directory for ffmpeg.so. This Exension should be include in your php.ini file
extension=/usr/lib/php/extensions/no-debug-non-zts-20090626/ffmpeg.so
Finally Restart Appache
service httpd restart
Veryfy: Create a info.php file (ie,) and verify this module is loaded or not.
*************************************
While compiling ffmpeg-php Error:ffmpeg_frame.c:421: error: ‘PIX_FMT_RGBA32’ undeclared (first use in this function)
/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function ‘zif_ffmpeg_frame_toGDImage’: /usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: ‘PIX_FMT_RGBA32′ undeclared (first use in this function) /usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: (Each undeclared identifier is reported only once /usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: for each function it appears in.) /usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function ‘zif_ffmpeg_frame_ffmpeg_frame’: /usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:421: error: ‘PIX_FMT_RGBA32′ undeclared (first use in this function)
***********************
update ffmpeg_frame.c and replace every instance of PIX_FMT_RGBA32 with PIX_FMT_RGB32
vi ffmpeg_frame.c
:%s/PIX_FMT_RGBA32/PIX_FMT_RGB32
:w :q!
Solve my issue
**********************
# ffmpeg -v
ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file: No such file or directory
Fix:
location of these libraries is /usr/local/lib/ such as /usr/local/lib/libavdevice.so.52 .
ln -s /usr/local/lib/libavdevice.so.52 /usr/lib/libavdevice.so.52
ln -s /usr/local/lib/libavformat.so.52 /usr/lib/libavformat.so.52
etc ... like we done for ibavformat.so.50
Or we can fix by
/etc/ld.so.conf.d/libc.conf open with your favourite editor and include this line /usr/local/lib
if /etc/ld.so.conf.d/libc.conf not there create one called /etc/ld.so.conf.d/ffmpeg.conf (or even libc.conf) and add the line /usr/local/lib in it, then run sudo ldconfig -v.
Iam Expecting some valuable suggestions on this posting
*******
Error : [STDERR] PHP Warning: Module 'ffmpeg' already loaded in Unknown on line 0
This seems you have multiple entries for ffmpeg.so extension on your php.ini file. So you need to check this file and remove the unwanted extension for ffmpeg.
*** THANK YOU ****
If you want to install ffmpeg and its components on your server please contact me on +91956799499 and i will help on this. Free of cost :)
FFmpeg
FFmpeg-PHP
Mplayer Mencoder
flv2tool
LAME
MP3 Encoder
****************
For Installing FFMPEG and its friends we need to make sure the following packages already installed on your server
gcc,gmake,make, libcpplibgcc, libstdc++, gcc4, gcc4-c++, gcc4-gfortran, subversion, ruby ncurses-devel -y
If not please install these packages using yum
yum install gcc gmake make libcpp libgcc libstdc++ gcc4 gcc4-c++ gcc4-gfortran subversion ncurses-devel -y
Install Ruby, Ruby Gem, Fastthread, Mongrel and Rails on cpanel servers by using the command
/scripts/installruby
Please do the following Steps
cd /usr/local/src/
Next We need to Download the required MODULES .
wget www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2
wget rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz
wget easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
wget superb-west.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.1.tbz2
Or
wget http://space.dl.sourceforge.net/project/ffmpeg-php/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2
wget downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
wget downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz
and wget http://www.tortall.net/projects/yasm/releases/yasm-0.7.0.tar.gz
After that extract these downloaded MODULES using ' tar zxf filename '
mkdir /usr/local/lib/codecs/
By using Subversion we can down load packages for FFMPEG and Mplayer
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
cd /usr/local/src/mplayer
svn update
PS: Please note that now the SNV version has been not updated for a long time so it is good to use git installation instead of SNV: 19-08-2011(Firday)
cd /usr/local/src/
mv /usr/local/src/essential-20061022/* /usr/local/lib/codecs/
chmod -R 755 /usr/local/lib/codecs/
After that We can install one by one packages
LAME:-
cd /usr/local/src/lame-3.97
./configure
make && make install
LIBOGG:-
cd /usr/local/src/libogg-1.1.3
./configure --enable-shared && make && make install
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export PKG_CONFIG_PATH
LIBVORBIS:-
cd /usr/local/src/libvorbis-1.1.2
./configure && make && make install
FLVTOOL2:-
cd /usr/local/src/flvtool2_1.0.5_rc6/
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install
MPLAYER:-
cd /usr/local/src/mplayer
./configure && make && make install
FFMPEG:-
cd /usr/local/src/ffmpeg/
./configure --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared
make
make install
export LD_LIBRARY_PATH=/usr/local/lib/
ln -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50
ln -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51
ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49
ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0
ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51
ln -s /usr/local/lib/libavdevice.so.52 /usr/lib/libavdevice.so.52
ln -s /usr/local/lib/libavformat.so.52 /usr/lib/libavformat.so.52
FFMPEG-PHP Extension:-
cd /usr/local/src/
wget http://sourceforge.net/projects/ffmpeg-php/files/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2/download
[0.50 version throws me error once i have used this version fixed my error]
tar -xjf ffmpeg-php-0.6.0.tbz2
cd ffmpeg-php-0.6.0/
phpize
./configure
make
make install
make install will shows you the extension file directory for ffmpeg.so. This Exension should be include in your php.ini file
extension=/usr/lib/php/extensions/no-debug-non-zts-20090626/ffmpeg.so
Finally Restart Appache
service httpd restart
Veryfy: Create a info.php file (ie,) and verify this module is loaded or not.
*************************************
While compiling ffmpeg-php Error:ffmpeg_frame.c:421: error: ‘PIX_FMT_RGBA32’ undeclared (first use in this function)
/usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function ‘zif_ffmpeg_frame_toGDImage’: /usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: ‘PIX_FMT_RGBA32′ undeclared (first use in this function) /usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: (Each undeclared identifier is reported only once /usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: for each function it appears in.) /usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function ‘zif_ffmpeg_frame_ffmpeg_frame’: /usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:421: error: ‘PIX_FMT_RGBA32′ undeclared (first use in this function)
***********************
update ffmpeg_frame.c and replace every instance of PIX_FMT_RGBA32 with PIX_FMT_RGB32
vi ffmpeg_frame.c
:%s/PIX_FMT_RGBA32/PIX_FMT_RGB32
:w :q!
Solve my issue
**********************
# ffmpeg -v
ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file: No such file or directory
Fix:
location of these libraries is /usr/local/lib/ such as /usr/local/lib/libavdevice.so.52 .
ln -s /usr/local/lib/libavdevice.so.52 /usr/lib/libavdevice.so.52
ln -s /usr/local/lib/libavformat.so.52 /usr/lib/libavformat.so.52
etc ... like we done for ibavformat.so.50
Or we can fix by
/etc/ld.so.conf.d/libc.conf open with your favourite editor and include this line /usr/local/lib
if /etc/ld.so.conf.d/libc.conf not there create one called /etc/ld.so.conf.d/ffmpeg.conf (or even libc.conf) and add the line /usr/local/lib in it, then run sudo ldconfig -v.
Iam Expecting some valuable suggestions on this posting
*******
Error : [STDERR] PHP Warning: Module 'ffmpeg' already loaded in Unknown on line 0
This seems you have multiple entries for ffmpeg.so extension on your php.ini file. So you need to check this file and remove the unwanted extension for ffmpeg.
*** THANK YOU ****
If you want to install ffmpeg and its components on your server please contact me on +91956799499 and i will help on this. Free of cost :)
Saturday, September 4, 2010
YUM ERROR
YUM INSTALLATION ERROR
ERROR:-Loaded plugins: presto, refresh-packagekit
Existing lock /var/run/yum.pid: another copy is running as pid 2448.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 51 M RSS ( 79 MB VSZ)
Started: Sat Sep 4 20:17:17 2010 - 10:34 ago
State : Traced/Stopped, pid: 2448
==========================================================
To solve this issue . Please do the following
From this message you can easily find out what process ID is for yum. It is 2448 or you can find out the yum process ID by using the following command
[root@localhost ajeesh]# ps aux | grep yum
root 2448 0.5 2.5 80520 52392 pts/1 T 20:17 0:04 /usr/bin/python /usr/bin/yum install lynx*
nest step please kill that process and re-execute your yum install again
This solve my yum install issue
ERROR:-Loaded plugins: presto, refresh-packagekit
Existing lock /var/run/yum.pid: another copy is running as pid 2448.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 51 M RSS ( 79 MB VSZ)
Started: Sat Sep 4 20:17:17 2010 - 10:34 ago
State : Traced/Stopped, pid: 2448
==========================================================
To solve this issue . Please do the following
From this message you can easily find out what process ID is for yum. It is 2448 or you can find out the yum process ID by using the following command
[root@localhost ajeesh]# ps aux | grep yum
root 2448 0.5 2.5 80520 52392 pts/1 T 20:17 0:04 /usr/bin/python /usr/bin/yum install lynx*
nest step please kill that process and re-execute your yum install again
This solve my yum install issue
Thursday, August 5, 2010
RvSiteBuilder
Fatal error:
The encoded file /var/cpanel/rvglobalsoft/rvsitebuilder/www/ionctestlicense.php requires a license file.
The license file /var/cpanel/rvglobalsoft/rvsitebuilder/rvsitebuilder.lic has expired. in Unknown on line 0
For fixing the issue do run the following commands
root@server1 [~]# rm -f /var/cpanel/rvglobalsoft/rvsitebuilder/var/INSTALL_COMPLETE.php
root@server1 [~]# rm -f /var/cpanel/rvglobalsoft/rvsitebuilder/rvsitebuilderversion.txt
root@server1 [~]# perl /usr/local/cpanel/whostmgr/docroot/cgi/rvsitebuilderinstaller/autoinstaller.cgi
# /scripts/makecpphp [It just rebuilds the copy of PHP that cPanel and WHM use (not your public version of PHP) and then makes sure that cPanel and WHM are set to use that version.]
Last
#Go to root WHM/RVSiteBuilder, it will automatically rebuild the database for you.
The encoded file /var/cpanel/rvglobalsoft/rvsitebuilder/www/ionctestlicense.php requires a license file.
The license file /var/cpanel/rvglobalsoft/rvsitebuilder/rvsitebuilder.lic has expired. in Unknown on line 0
For fixing the issue do run the following commands
root@server1 [~]# rm -f /var/cpanel/rvglobalsoft/rvsitebuilder/var/INSTALL_COMPLETE.php
root@server1 [~]# rm -f /var/cpanel/rvglobalsoft/rvsitebuilder/rvsitebuilderversion.txt
root@server1 [~]# perl /usr/local/cpanel/whostmgr/docroot/cgi/rvsitebuilderinstaller/autoinstaller.cgi
# /scripts/makecpphp [It just rebuilds the copy of PHP that cPanel and WHM use (not your public version of PHP) and then makes sure that cPanel and WHM are set to use that version.]
Last
#Go to root WHM/RVSiteBuilder, it will automatically rebuild the database for you.
Wednesday, July 14, 2010
PHPMYADMIN
1. PHPMYADMIN is not showing the database which are creating
But while checking the databases through WHM/MYSQL you can see these data bases are available for that particular user.
Ans:- Please check the user privileges and grant the privilege for that user
Check the database username and cpanel user name are same or not. Most probably it is due to this issue (may be user cpanel user name is a invalid one like "."symbol something) so we need to change username in WHM.
But while checking the databases through WHM/MYSQL you can see these data bases are available for that particular user.
Ans:- Please check the user privileges and grant the privilege for that user
Check the database username and cpanel user name are same or not. Most probably it is due to this issue (may be user cpanel user name is a invalid one like "."symbol something) so we need to change username in WHM.
Sunday, July 11, 2010
COMMON TOOLS
1. Pidgin
in default linux (fedora) pidgin is there.
#yum install pidgin*
#yum update pidgin*
pidgin-guifications-2.16-4.fc12.i686 --> It is a Pidgin plugin that displays popups display if user writing a message , user log out/login etc ..
#yum install pidgin-guifications-2.16-4.fc12.i686
in default linux (fedora) pidgin is there.
#yum install pidgin*
#yum update pidgin*
pidgin-guifications-2.16-4.fc12.i686 --> It is a Pidgin plugin that displays popups display if user writing a message , user log out/login etc ..
#yum install pidgin-guifications-2.16-4.fc12.i686
Saturday, July 10, 2010
VIDEO PLAYERS - vlc
VIDEO PLAYERS
1. VLC
Installing vlc player on your linux fedora10/11/ recently i have tested on my fedora16
Please do the following steps to get the vlc player in your linux machines.
[root@tech24 ajeesh]# wget http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm Retrieving http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm warning: /var/tmp/rpm-tmp.Z6FQqR
ajeesh]# rpm -ivh rpmfusion-free-release-stable.noarch.rpm
Total download size: 22 M
Installed size: 58 M
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
updates/prestodelta | 11 kB 00:00
Processing delta metadata
Package(s) data still to download: 22 M
(1/34): a52dec-0.7.4-15.fc11.i586.rpm
ERRORs
------
VLC does not support the audio or video format "XVID". Unfortunately
there is no way for you to fix this.
--------
]# yum install vlc*
Loaded plugins: presto, refresh-packagekit
Setting up Install Process
Package vlc-devel-1.0.6-1.fc13.i686 already installed and latest version
Package vlc-1.0.6-1.fc13.i686 already installed and latest version
Package vlc-nox-1.0.6-1.fc13.i686 already installed and latest version
Package vlc-plugin-jack-1.0.6-1.fc13.i686 already installed and latest version
Package vlc-core-1.0.6-1.fc13.i686 already installed and latest version
--------------------
to check the commands
$ rpm -qa 'vlc*' 'libxine*' 'libffmpeg*' 'libav[^a]*' '*gstreamer*' | sort
1. VLC
Installing vlc player on your linux fedora10/11/ recently i have tested on my fedora16
Please do the following steps to get the vlc player in your linux machines.
[root@tech24 ajeesh]# wget http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm Retrieving http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm warning: /var/tmp/rpm-tmp.Z6FQqR
ajeesh]# rpm -ivh rpmfusion-free-release-stable.noarch.rpm
Total download size: 22 M
Installed size: 58 M
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
updates/prestodelta | 11 kB 00:00
Processing delta metadata
Package(s) data still to download: 22 M
(1/34): a52dec-0.7.4-15.fc11.i586.rpm
ERRORs
------
VLC does not support the audio or video format "XVID". Unfortunately
there is no way for you to fix this.
--------
]# yum install vlc*
Loaded plugins: presto, refresh-packagekit
Setting up Install Process
Package vlc-devel-1.0.6-1.fc13.i686 already installed and latest version
Package vlc-1.0.6-1.fc13.i686 already installed and latest version
Package vlc-nox-1.0.6-1.fc13.i686 already installed and latest version
Package vlc-plugin-jack-1.0.6-1.fc13.i686 already installed and latest version
Package vlc-core-1.0.6-1.fc13.i686 already installed and latest version
--------------------
to check the commands
$ rpm -qa 'vlc*' 'libxine*' 'libffmpeg*' 'libav[^a]*' '*gstreamer*' | sort
Subscribe to:
Posts (Atom)
