May
31
Posted on 31-05-2008
Filed Under (Linux VPS Hosting) by bodhost

How to install FFmpeg on Linux VPS Hosting?

FFmpeg is an important application software which is used to run a video website with streaming with conversion of video files into various video formats. By following the below steps you can install FFmpeg software easily on Linux VPS Hosting without compiling the files.

yum install ffmpeg

If you will get command not found, then you will have to add few lines in the yum repository for dag installation.

Create a file named dag.repo in /etc/yum.repos.d with the following contents on it

[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1

then

yum update

yum install ffmpeg

If everything works fine, then the installation should proceed smoothly and if not then you will get something like warning GPG public key missing .

To fix rpmforge GPG key warning:

rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

Most commonly you have GLIB 2.3 installed instead of GLIB 2.4 version. To check the current GLIB version installed on your server. just use

yum list glib*

and it will list all the packages whether installed or not. Try to see whether Glibc 2.4 installed, if not you will need to upgrade your Centos to latest version of 5.

How to check the ffmpeg working?
Finally, check the ffmpeg whether it is working or not.

> ffmpeg
> ffmpeg -formats
> ffmpeg –help
// This lists path of mpeg, its modules and other path information
> ffmpeg -i Input.file Output.file

To check what audi/video formats are supported
ffmpeg -formats > ffmpeg-format.txt

Open the ffmpeg-formats.txt to see the ooutput

D means decode
E means encode
V means video
A means audio
T = Truncated

How to install FFMPEG-PHP Extension?

FFmpeg-php is a very good extension and wrapper for PHP which can pull useful information about video through API interface on a Linux VPS Hosting. Inorder to install it you will have to download the source file and then compile and install extension on your server. You can download the source tarball from : http://ffmpeg-php.sourceforge.net/

wget /path/to/this/file/ffmpeg-php-0.5.2.1.tbz2

tar -xjf ffmpeg-0.5.2.1.tbz2

phpize

./configure
make
make install

Common types of Errors are as follows:-

1)If you get command not found error for phpize, then you will need to do yum install php-devel

2)If you get an error like shared libraries not found problem and the program stops in the middle, then you must specify the ffmpeg installed path explicitly to the ./configure.

3)“configure: error: ffmpeg shared libraries not found. Make sure ffmpeg is compiled as shared libraries using the –enable-shared option”

How to fix these errors:

1) First find out the ffmpeg path with ffmpeg –help command. The prefix default path should be like /usr/local/cpffmpeg
2) Configure the FFmpeg-php with –with-ffmpeg option

./configure –with-ffmpeg=/usr/local/cpffmpeg

Post to Twitter Tweet This Post

Comments Off    Read More   

VPS Hosting are just an next step to shared hosting packages and which are not really expensive such as a dedicated server. The features that are provided by VPS Servers are more or less like a dedicated server. no shared hosting packages provide full root access on Linux VPS’s or administrator access for Windows VPS Hosting packages. Customization are much more feasible when it comes to a VPS and it also allows third-party applications.

Much better performance when compared to any shared or reseller hosting packages. You will be able to host in a custom environment. However, in most cases good amount of knowledge is required in order to host a VPS. If you have a fully managed VPS, that would do much help and also assist you with major operations.

Also, be assured that you need more information on the VPS in order to host it. Best way is to gain as much knowledge from the host as possible. At the time of signup, please make sure you select the right options in order to meet your requirements. Wise selection of hosting package are always good for your pocket. Once you are aware of the vps you need to signup, please make sure the hosting provider can install it for you. You should not host any application or software that can likely over-load the VPS at the end of the day.

Complete isolated environment and indivualism is maintained on a vps at any point of time. Bodhost provides fully managed VPS Hosting package which are monitored 24×7 round the clock. For more information, please have a look at this link VPS Hosting

Post to Twitter Tweet This Post

Comments Off    Read More   
May
12
Posted on 12-05-2008
Filed Under (Linux VPS Hosting) by bodhost

Please follow the steps given below to restart Sendmail after editing your configuration Files:-

#!/bin/bash

cd /etc/mail

make

newaliases

/etc/init.d/sendmail restart

It will first runs the make command, which creates a new sendmail.cf file from the sendmail.mc file and then compiles supporting configuration files in the /etc/mail directory according to the instructions in the file /etc/mail/Makefile. After thar it generates new e-mail aliases with the newaliases command, and then restarts sendmail.

To make the script executable use this command.

chmod 700 filename

You will need to run the script every time you change any of the sendmail configuration files described in the sections to follow.

The line in the script that restarts sendmail is only needed if you have made changes to the /etc/mail/sendmail.mc file, but It included it so that you don’t forget.

Note: When sendmail starts, it reads the file sendmail.cf for its configuration. sendmail.mc is a more user friendly configuration file and really is much easier to fool around with without getting burned. These sendmail.cf file is located in different directories depending on the version of RedHat you use. The /etc/sendmail.cf file is used for versions up to 7.3, and /etc/mail/sendmail.cf is used for versions 8.0 and higher and Fedora Core.

We support Sendmail on our Linux VPS Hosting packages

Post to Twitter Tweet This Post

Comments Off    Read More