<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>HOWTO :: VoIP: Whosesale :: Calling Card :: OpenSer :: Radius :: Asterisk :: FreeSwitch :: A2Billing :: IVR :: Colo :: Colocations :: GADGETS &#187; centos</title>
	<atom:link href="http://callsolutions.org/tag/centos/feed/" rel="self" type="application/rss+xml" />
	<link>http://callsolutions.org</link>
	<description>You can also find CCNA :: CCNAP :: Exam, Brandump, CheatSheet, Sample Exams</description>
	<lastBuildDate>Thu, 29 Apr 2010 14:23:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing Asterisk2Billing A2b 1.7.0 in CentOS 5.4</title>
		<link>http://callsolutions.org/installing-asterisk2billing-a2b-1-7-0-in-centos-5-4/</link>
		<comments>http://callsolutions.org/installing-asterisk2billing-a2b-1-7-0-in-centos-5-4/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 14:02:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[A2Billing]]></category>
		<category><![CDATA[1.7.0]]></category>
		<category><![CDATA[a2b]]></category>
		<category><![CDATA[a2b 1.7.0]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[asterisk2billing]]></category>
		<category><![CDATA[centos]]></category>

		<guid isPermaLink="false">http://callsolutions.org/?p=74</guid>
		<description><![CDATA[Below is a step by step procedure how to install Asterisk2Billing or A2b 1.7.0 in CentOS 5.
Installation Prerequisites
It is assumed that you have already installed Asterisk on a suitable machine. This tutorial does not cover that part of the installation. If you are unfamiliar with the
install of Asterisk, it may be better to start with [...]]]></description>
			<content:encoded><![CDATA[<p>Below is a step by step procedure how to install Asterisk2Billing or A2b 1.7.0 in CentOS 5.</p>
<p>Installation Prerequisites</p>
<p>It is assumed that you have already installed Asterisk on a suitable machine. This tutorial does not cover that part of the installation. If you are unfamiliar with the<br />
install of Asterisk, it may be better to start with a pre-built distribution, e.g.</p>
<p>PBX in a Flash &#8211; www.pbxinaflash.com, or FonicaPABX &#8211; www.fonicaprojects.com may provide a secure base on which to build A2Billing.</p>
<p>Asterisk Now, Elastix and Trixbox are other possibilities to provide a base as part of the family of Asterisk / FreePBX / CentOS distributions. However, the author has<br />
no knowledge of the security measures in place with these distributions, and indeed, Trixbox do recommend that their system is secured behind a firewall, so may not be<br />
suitable for connection directly to the Internet without some remedial work.</p>
<p>Alternatively, Support and Managed Installation and Training services are available through http://www.star2billing.com</p>
<p>The distributions mentioned are based on Centos, so these instructions are Centos biased.</p>
<p>These distributions can be installed on a VMWare image for testing if no hardware is available.</p>
<p>If you have hand-rolled your own distribution, and are familiar with 1.3.4, then the we assume that you have the necessary dependencies already installed.</p>
<p>Install Dependencies</p>
<p>yum -y install perl-DBD-Pg subversion</p>
<p>get A2Billing</p>
<p>mkdir /usr/local/src/a2billing<br />
cd /usr/local/src/a2billing<br />
svn co &#8211;username guest &#8211;password guest http://svn.a2billing.net/svn/asterisk2billing/trunk/ /usr/local/src/a2billing</p>
<p>copy a2billing.conf in /usr/local/src/a2billing/a2billing.conf to /etc/a2billing.conf</p>
<p>Edit a2billing.conf to suit your installation. e.g. change dbtype to mysql.</p>
<p>Install Database</p>
<p>Note that for Piaf and FonicaPABX, the database password is passw0rd and the location is localhost<br />
cd /usr/local/src/a2billing/DataBase/mysql-5.x<br />
./install-db.sh</p>
<p>Answer the questions appropriately with reference to /etc/a2billing.conf</p>
<p>You should now have a database called mya2billing with over 70 tables in it.</p>
<p>Install the AGI and Sound Files</p>
<p>So that we can easily update the system when changes are made during this period of change, we are going to use links back to the location where we installed the SVN<br />
download, so that an update from the SVN will immediately reflect in your A2Billing install.</p>
<p>Note that Database changes will not be included using this methodology, so these will have to be done by hand.</p>
<p>This is not the usual way of doing it, but for testing, it works well. You can also simply move or copy the files into the appropriate location.<br />
ln -s /usr/local/src/a2billing/AGI/a2billing.php /var/lib/asterisk/agi-bin/a2billing.php</p>
<p>set ownership and permissions on AGI</p>
<p>chown asterisk:asterisk /var/lib/asterisk/agi-bin/a2billing.php<br />
chmod +x /var/lib/asterisk/agi-bin/a2billing.php</p>
<p>Set up sounds</p>
<p>cd /usr/local/src/a2billing/addons/sounds<br />
./install_a2b_sounds.sh</p>
<p>set ownership on sounds</p>
<p>chown -R asterisk:asterisk /var/lib/asterisk/</p>
<p>Asterisk Manager</p>
<p>Now edit /etc/asterisk/manager_custom.conf (or manager.conf for those not using a pre-rolled distribution including FreePBX). Add the following lines<br />
[myasterisk]<br />
secret = mycode<br />
deny=0.0.0.0/0.0.0.0<br />
permit=127.0.0.1/255.255.255.0<br />
read = system,call,log,verbose,command,agent,user<br />
write = system,call,log,verbose,command,agent,user</p>
<p>Install Web Pages</p>
<p>Assumption is that apache2 root folder is /var/www/html</p>
<p>Common</p>
<p>ln -s /usr/local/src/a2billing/common /var/www/html/a2billing/common</p>
<p>Admin pages</p>
<p>ln -s /usr/local/src/a2billing/admin /var/www/html/a2billing/admin</p>
<p>Agent</p>
<p>ln -s /usr/local/src/a2billing/agent /var/www/html/a2billing/agent</p>
<p>Customer</p>
<p>ln -s /usr/local/src/a2billing/customer /var/www/html/a2billing/customer</p>
<p>Now we need to set permissions for Apache.</p>
<p>If you are using a pre-rolled Distro, then web group and ownership are asterisk and asterisk, if you are not using a distro, then you probably know what to set anyway.<br />
chown -R asterisk:asterisk /var/www/html/a2billing/<br />
chown -R asterisk:asterisk /usr/local/src/a2billing/common<br />
chown -R asterisk:asterisk /usr/local/src/a2billing/admin<br />
chown -R asterisk:asterisk /usr/local/src/a2billing/customer<br />
chown -R asterisk:asterisk /usr/local/src/a2billing/agent</p>
<p>Cronjobs</p>
<p>echo &#8221;<br />
# Automatically added for A2Billing<br />
0 * * * * php /usr/local/src/a2billing/Cronjobs/a2billing_alarm.php<br />
0 12 * * * php /usr/local/src/a2billing/Cronjobs/a2billing_archive_data_cront.php<br />
0 10 21 * * php /usr/local/src/a2billing/Cronjobs/a2billing_autorefill.php<br />
#Batch process at 00:20 each day<br />
20 0 * * * php /usr/local/src/a2billing/Cronjobs/a2billing_batch_process.php<br />
#Bill DID usage at 00:00 each day<br />
0 0 * * * php /usr/local/src/a2billing/Cronjobs/a2billing_bill_diduse.php<br />
#Generate Invoices at 6am everyday<br />
0 6 * * * php /usr/local/src/a2billing/Cronjobs/a2billing_batch_billing.php<br />
#Check if balance below preset value, and email user if so.<br />
1 * * * * php /usr/local/src/a2billing/Cronjobs/a2billing_notify_account.php<br />
#Charge subscriptions at 06:05 on the 1st of each month<br />
0 6 1 * * php /usr/local/src/a2billing/Cronjobs/a2billing_subscription_fee.php<br />
#Update currencies at 01:00 each day<br />
0 1 * * * php /usr/local/src/a2billing/Cronjobs/currencies_update_yahoo.php<br />
&#8221; &gt;&gt; /var/spool/cron/asterisk</p>
<p>Add directory for monitoring Script</p>
<p>mkdir -p /var/lib/a2billing/script<br />
mkdir -p /var/run/a2billing</p>
<p>Create Log Files</p>
<p>Log files and Permissions</p>
<p>touch /var/log/asterisk/a2billing-daemon-callback.log<br />
touch /var/log/a2billing-daemon-callback.log<br />
touch /var/log/cront_a2b_alarm.log<br />
touch /var/log/cront_a2b_autorefill.log<br />
touch /var/log/cront_a2b_batch_process.log<br />
touch /var/log/cront_a2b_bill_diduse.log<br />
touch /var/log/cront_a2b_subscription_fee.log<br />
touch /var/log/cront_a2b_currency_update.log<br />
touch /var/log/cront_a2b_invoice.log<br />
touch /var/log/a2billing_paypal.log<br />
touch /var/log/a2billing_epayment.log<br />
touch /var/log/api_ecommerce_request.log<br />
touch /var/log/api_callback_request.log<br />
touch /var/log/a2billing_agi.log</p>
<p>Callback</p>
<p>Here is a little script to install the call-back Daemon. Change the LOAD_LOC variable to reflect where you have downloaded A2Billing.</p>
<p>Callback Daemon installation Script</p>
<p>LOAD_LOC=/usr/local/src/a2billing</p>
<p>yum -y install python-setuptools.noarch<br />
yum -y install MySQL-python<br />
easy_install sqlalchemy</p>
<p>cd $LOAD_LOC/Callback/callback-daemon-py<br />
cp $LOAD_LOC/CallBack/callback-daemon-py/build/lib/callback_daemon/a2b-callback-daemon.rc /etc/init.d/a2b-callback-daemon<br />
chmod +x /etc/init.d/a2b-callback-daemon</p>
<p>cd $LOAD_LOC/CallBack/callback-daemon-py/<br />
python setup.py build<br />
python setup.py bdist_egg<br />
easy_install dist/callback_daemon-1.0.prod_r1528-py2.4.egg<br />
chkconfig &#8211;add a2b-callback-daemon<br />
service a2b-callback-daemon start<br />
chkconfig a2b-callback-daemon on</p>
<p>Dialplan</p>
<p>The dialplan you put into Asterisk is the same as it was for A2Billing 1.3.4. I&#8217;ve not got round to writing the dialplan as yet.</p>
<p>Reboot</p>
<p>Login</p>
<p>http://Your-Switch/a2billing</p>
<p>Log into the admin pages with root and changepassword</p>
<p>General Setup</p>
<p>The general setup is similar to 1.3.4, and the order of events is approximately similar</p>
<p>* Set up trunk * Set up callplan * Setup rate plan * add rate table to callplan * add rates * add customer * test.</p>
<p>Guidelines</p>
<p>Keep an eye on the development of A2Billing here.</p>
<p>http://www.asterisk2billing.org/cgi-bin/trac.cgi/browser/trunk</p>
<p>Make sure that you are running the latest version before reporting a bug by periodically running.</p>
<p>Bugs can be dicussed in the bugs section here &#8211; http://forum.asterisk2billing.org/viewforum.php?f=22 before reporting them on the bug tracker.</p>
<p>Bugs tracking and reporting can be done here:- http://www.asterisk2billing.org/cgi-bin/trac.cgi/report</p>
]]></content:encoded>
			<wfw:commentRss>http://callsolutions.org/installing-asterisk2billing-a2b-1-7-0-in-centos-5-4/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>CentOS 5.4 or 5.5 + Asterisk 1.4 + G729 + G723</title>
		<link>http://callsolutions.org/centos-5-4-or-5-5-asterisk-1-4-g729-g723/</link>
		<comments>http://callsolutions.org/centos-5-4-or-5-5-asterisk-1-4-g729-g723/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 05:12:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Asterisk PBX]]></category>
		<category><![CDATA[asterisk install]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[centos 5.4]]></category>

		<guid isPermaLink="false">http://callsolutions.org/?p=66</guid>
		<description><![CDATA[This tutorial will teach you how to install Asterisk 1.4 on a fresh install of CentOS 5.4 / 5.5 with g729 and g723 supported codec.
yum update
yum upgrade
yum groupinstall &#8216;Development Tools&#8217;
yum groupinstall &#8216;Development Libraries&#8217;
yum install -y kernel kernel-devel
cd /usr/src
wget http://downloads.digium.com/pub/asterisk/asterisk-1.4-current.tar.gz
wget http://downloads.digium.com/pub/zaptel/zaptel-1.4-current.tar.gz
wget http://downloads.digium.com/pub/libpri/libpri-1.4-current.tar.gz
wget http://downloads.digium.com/pub/asterisk/asterisk-addons-1.4-current.tar.gz
tar xvzf asterisk-1.4-current.tar.gz &#38;&#38; tar xvzf zaptel-1.4-current.tar.gz &#38;&#38; tar xvzf libpri-1.4-current.tar.gz &#38;&#38; tar xvzf [...]]]></description>
			<content:encoded><![CDATA[<p>This tutorial will teach you how to install Asterisk 1.4 on a fresh install of CentOS 5.4 / 5.5 with g729 and g723 supported codec.</p>
<p>yum update</p>
<p>yum upgrade</p>
<p>yum groupinstall &#8216;Development Tools&#8217;</p>
<p>yum groupinstall &#8216;Development Libraries&#8217;</p>
<p>yum install -y kernel kernel-devel</p>
<p>cd /usr/src</p>
<p>wget http://downloads.digium.com/pub/asterisk/asterisk-1.4-current.tar.gz<br />
wget http://downloads.digium.com/pub/zaptel/zaptel-1.4-current.tar.gz<br />
wget http://downloads.digium.com/pub/libpri/libpri-1.4-current.tar.gz<br />
wget http://downloads.digium.com/pub/asterisk/asterisk-addons-1.4-current.tar.gz</p>
<p>tar xvzf asterisk-1.4-current.tar.gz &amp;&amp; tar xvzf zaptel-1.4-current.tar.gz &amp;&amp; tar xvzf libpri-1.4-current.tar.gz &amp;&amp; tar xvzf asterisk-addons-1.4-current.tar.gz</p>
<p>a) Installing Zaptel</p>
<p>cd /usr/src/zaptel-1.4*<br />
./install_prereq test<br />
./install_prereq install<br />
./configure<br />
make<br />
make install<br />
make config<br />
modprobe ztdummy</p>
<p>b) Installing Libpri</p>
<p>cd /usr/src/libpri-1.4*<br />
make &amp;&amp; make install</p>
<p>c) Installing Asterisk</p>
<p>c) Installing Asterisk</p>
<p>cd /usr/src/asterisk-1.4*</p>
<p>./configure</p>
<p>Comment: The next step is not mandatory. To install core and extra sounds in different languages:</p>
<p>make menuselect</p>
<p>Comment: Select the core-sounds you would like to play and extra sounds. Exit with ï¿½xï¿½ to save.</p>
<p>make<br />
make install<br />
make samples<br />
make config<br />
asterisk -vvvc<br />
stop now<br />
echo ï¿½ztdummyï¿½ &gt;&gt; /etc/modules</p>
<p>d) Installing Asterisk Addons</p>
<p>cd /usr/src/asterisk-addons*<br />
./configure &amp;&amp; make &amp;&amp; make install<br />
make samples</p>
]]></content:encoded>
			<wfw:commentRss>http://callsolutions.org/centos-5-4-or-5-5-asterisk-1-4-g729-g723/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing Nagios 3.2.1 in CentOS 5</title>
		<link>http://callsolutions.org/installing-nagios-3-2-1-in-centos-5/</link>
		<comments>http://callsolutions.org/installing-nagios-3-2-1-in-centos-5/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 16:26:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Nagios]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[centos 5]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[install]]></category>

		<guid isPermaLink="false">http://callsolutions.org/?p=54</guid>
		<description><![CDATA[Here&#8217;s a quick step-by-step procedure on how to install Nagios Monitoring in CentOS 5. The installation is straightforward. You just have to copy and paste it to your SSH Terminal. 
yum update
yum install httpd php
yum install gcc glibc glibc-common
yum install gd gd-devel
/usr/sbin/useradd -m nagios
passwd nagios
set nagios as password (I used nagios)
/usr/sbin/groupadd nagcmd
/usr/sbin/usermod -a -G nagcmd [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a quick step-by-step procedure on how to install Nagios Monitoring in CentOS 5. The installation is straightforward. You just have to copy and paste it to your SSH Terminal. </p>
<p>yum update<br />
yum install httpd php<br />
yum install gcc glibc glibc-common<br />
yum install gd gd-devel<br />
/usr/sbin/useradd -m nagios<br />
passwd nagios<br />
set nagios as password (I used nagios)<br />
/usr/sbin/groupadd nagcmd<br />
/usr/sbin/usermod -a -G nagcmd nagios<br />
/usr/sbin/usermod -a -G nagcmd apache<br />
mkdir ~/downloads<br />
cd ~/downloads<br />
wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.2.1.tar.gz<br />
wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.11.tar.gz<br />
tar xvzf nagios-3.2.1.tar.gz<br />
cd nagios-3.2.1<br />
./configure &#8211;with-command-group=nagcmd<br />
make all<br />
make install<br />
make install-init<br />
make install-config<br />
make install-commandmode<br />
make install-webconf<br />
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin<br />
set password for nagiosadmin = this is the webui<br />
service httpd restart<br />
cd ~/downloads<br />
tar xvzf nagios-plugins-1.4.11.tar.gz<br />
cd nagios-plugins-1.4.11<br />
./configure &#8211;with-nagios-user=nagios &#8211;with-nagios-group=nagios<br />
make<br />
make install<br />
chkconfig &#8211;add nagios<br />
chkconfig nagios on<br />
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg<br />
chmod 777 /usr/local/nagios/var/rw/nagios.cmd<br />
service nagios start</p>
]]></content:encoded>
			<wfw:commentRss>http://callsolutions.org/installing-nagios-3-2-1-in-centos-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing FFmpeg &amp; Dependencies For FLV Conversion</title>
		<link>http://callsolutions.org/installing-ffmpeg-dependencies-for-flv-conversion/</link>
		<comments>http://callsolutions.org/installing-ffmpeg-dependencies-for-flv-conversion/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 17:55:59 +0000</pubDate>
		<dc:creator>nelson</dc:creator>
				<category><![CDATA[YouTube-Like Website]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[flv]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[Installing FFmpeg & Dependencies For FLV Conversion]]></category>

		<guid isPermaLink="false">http://callsolutions.org/?p=47</guid>
		<description><![CDATA[
This guide should teach you how to install all the needed dependencies for ClipShare or other flash video conversion scripts. It’s primarily focused on RHEL or CentOS installs for the dependencies of these packages. The links in this guide are fresh as of 08/04/2008. Here is what this guide will help you install:

 FFmpeg (http://ffmpeg.mplayerhq.hu)
 [...]]]></description>
			<content:encoded><![CDATA[<div class="entry">
<div id="post-8" class="post"><abbr title="2008-06-29T23:57:09-0500" /><!-- by admin -->This guide should teach you how to install all the needed dependencies for ClipShare or other flash video conversion scripts. It’s primarily focused on RHEL or CentOS installs for the dependencies of these packages. The links in this guide are fresh as of 08/04/2008. Here is what this guide will help you install:</p>
<ul>
<li> FFmpeg (<a class="external free" title="http://ffmpeg.mplayerhq.hu" rel="nofollow" href="http://ffmpeg.mplayerhq.hu/">http://ffmpeg.mplayerhq.hu</a>)</li>
<li> FFmpeg-PHP (<a class="external free" title="http://ffmpeg-php.sourceforge.net" rel="nofollow" href="http://ffmpeg-php.sourceforge.net/">http://ffmpeg-php.sourceforge.net</a>)</li>
<li> MPlayer + Mencoder (<a class="external free" title="http://www.mplayerhq.hu/design7/dload.html" rel="nofollow" href="http://www.mplayerhq.hu/design7/dload.html">http://www.mplayerhq.hu/design7/dload.html</a>)</li>
<li> FLV2Tool (<a class="external free" title="http://inlet-media.de/flvtool2" rel="nofollow" href="http://inlet-media.de/flvtool2">http://inlet-media.de/flvtool2</a>)</li>
<li> Libogg (<a class="external free" title="http://www.xiph.org/downloads" rel="nofollow" href="http://www.xiph.org/downloads">http://www.xiph.org/downloads</a>)</li>
<li> Libvorbis (<a class="external free" title="http://www.xiph.org/downloads" rel="nofollow" href="http://www.xiph.org/downloads">http://www.xiph.org/downloads</a>)</li>
<li> LAME MP3 Encoder (<a class="external free" title="http://lame.sourceforge.net" rel="nofollow" href="http://lame.sourceforge.net/">http://lame.sourceforge.net</a>)</li>
</ul>
<p>It assumes you already have Apache and PHP5 installed as those are required dependencies as well. There will also be a guide up for installing PHP5.2.6 from source on CentOS/RHEL soon.</p>
<p>First install subversion and ruby via yum or up2date:</p>
<blockquote><p>yum -y install subversion ruby</p></blockquote>
<p>Now we need to install MPlayer &amp; FFmpeg sources from SVN:</p>
<blockquote><p>cd ~<br />
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg<br />
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer</p></blockquote>
<p>Now we need some codecs:</p>
<blockquote><p>wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2<br />
tar xvjpf essential-20071007.tar.bz2<br />
cd essential-20071007<br />
mkdir /usr/local/lib/codecs<br />
mv * /usr/local/lib/codecs/<br />
chmod -R 755 /usr/local/lib/codecs/<br />
cd ~</p></blockquote>
<p>Next we will install LAME MP3 encoder:</p>
<blockquote><p>wget http://internap.dl.sourceforge.net/sourceforge/lame/lame-398.tar.gz<br />
tar xvzpf lame-398.tar.gz<br />
cd lame-398<br />
./configure &#8211;prefix=/usr<br />
make<br />
make install<br />
cd ~</p></blockquote>
<p>Now we install Libogg:</p>
<blockquote><p>wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz<br />
tar xvzpf libogg-1.1.3.tar.gz<br />
cd libogg-1.1.3<br />
./configure &#8211;prefix=/usr<br />
make<br />
make install<br />
cd ~</p></blockquote>
<p>We need to make sure the correct lib directories are setup in ldconfig. Edit the <strong>/etc/ld.so.conf</strong> file and add the following lines:</p>
<blockquote><p>/usr/lib<br />
/usr/local/lib</p></blockquote>
<p>Now save and run the following command:</p>
<blockquote><p>ldconfig</p></blockquote>
<p>To install libvorbis we will run:</p>
<blockquote><p>wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.2.0.tar.gz<br />
tar xvzpf libvorbis-1.2.0.tar.gz<br />
cd libvorbis-1.2.0<br />
./configure &#8211;prefix=/usr<br />
make<br />
make install<br />
cd ~</p></blockquote>
<p>Now we will install FLVTool2:</p>
<blockquote><p>wget http://rubyforge.org/frs/download.php/17497/flvtool2-1.0.6.tgz<br />
tar xvzpf flvtool2-1.0.6.tgz<br />
cd flvtool2-1.0.6<br />
ruby setup.rb config<br />
ruby setup.rb setup<br />
ruby setup.rb install<br />
cd ~</p></blockquote>
<p>Next we should build MPlayer &amp; MEncoder and it will take a while unless you have a nice dual or quad core machine. Note that I’ve seen the SVN version of these packages break before, so you can always download the source code from their site (a stable copy) if it fails on make:</p>
<blockquote><p>cd mplayer<br />
./configure &#8211;prefix=/usr<br />
make<br />
make install<br />
cd ~</p></blockquote>
<p>We will now build FFmpeg:</p>
<blockquote><p>mkdir /usr/local/src/tmp<br />
chmod 777 /usr/local/src/tmp<br />
export TMPDIR=/usr/local/src/tmp<br />
cd ffmpeg<br />
./configure &#8211;prefix=/usr &#8211;enable-libmp3lame &#8211;enable-libvorbis &#8211;disable-mmx &#8211;enable-shared<br />
make<br />
make install<br />
cd ~</p></blockquote>
<p>Symlink some libraries if needed (ignore file exists errors):</p>
<blockquote><p>ln -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50<br />
ln -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51<br />
ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49<br />
ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0<br />
ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51</p></blockquote>
<p>Now build FFmpeg-PHP:</p>
<blockquote><p>wget http://voxel.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.3.1.tbz2<br />
tar xvjpf ffmpeg-php-0.5.3.1.tbz2<br />
cd ffmpeg-php-0.5.3.1<br />
phpize<br />
./configure &#8211;prefix=/usr<br />
make<br />
make install<br />
cd ~</p></blockquote>
<p>Now you need to copy the ffmpeg.so file that was created from it’s location (from the build) to /usr/local/lib/php/extensions/, it should look something like:</p>
<blockquote><p>cp /usr/local/lib/php/extensions/no-debug-non-zts-????????????/ffmpeg.so /usr/local/lib/php/extensions/</p></blockquote>
<p>Modify your php.ini. Try <strong>/etc/php.ini</strong> or <strong>/usr/lib/php.ini</strong> or <strong>/usr/local/Zend/etc/php.ini</strong> as they are common locations, you can do <strong>php -i | grep -i</strong> ini to find the proper location. Change the extension_dir value as seen below and add the extension as seen below:</p>
<blockquote><p>extension_dir = “/usr/local/lib/php/extensions/”<br />
extension=ffmpeg.so</p></blockquote>
<p>Now save and restart apache and test php for ffmpeg on both apache via phpinfo() and from shell:</p>
<blockquote><p>service httpd stop<br />
killall -9 httpd<br />
service httpd start<br />
php -i | grep -i ffmpeg</p></blockquote>
<p>Let me know via comments if you find some bugs or better ways to do things!</p></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://callsolutions.org/installing-ffmpeg-dependencies-for-flv-conversion/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
