Software installation on CentOS 6.x
· These instructions are provided as a convenience and courtesy to you. They are not a substitute for a professional server configuration. Generally, it is not my responsibility to teach you how to install and configure packages on a Linux system.
These instructions were tested on a CentOS system without cPanel installed. If you have
cPanel installed, or you want to install cPanel, some modification of these
instructions may be required.
1. Install Apache.
#yum install httpd
2. wget should be installed on host machine and also install gcc library
#yum install wget gcc
3. Then install epel repo.
#rpm -Uvh epel-release-6-8.noarch.rpm
4. Let's install PHP and the PHP cURL extension. (At the time of this writing, this installs PHP 5.3.)
#yum install php php-devel php-gd php-common
5. Now let’s make additional changes in /etc/httpd/conf/httpd.conf
· By default, Apache is using /var/www/html for the document root (or web root), but you can change this value if you will use another directory.
· You need to uncomment this line #ServerName www.example.com:80, and put there your website domain name or just the IP address of your server.
6. Now start Apache.
7. Lets check if php is installed
You will receive output like the following (will vary depending on PHP version installed):
PHP 5.3.3 (cli) (built: Sep 30 2014 05:55:00)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
8. Compile FFmpeg from source.
Get the dependencies:
#yum install autoconf automake gcc-c++ libtool make nasm pkgconfig zlib-devel git
Make a directory in “/root/” to put all of the source code into:
Build/Install FFmpeg and codecs as follows:
Yasm is an assembler used by x264 and FFmpeg.
MP3 audio encoder.
Requires FFmpeg to be configured with --enable-libmp3lame
After all of this, FFmpeg will be compiled into “/root/bin/ffmpeg”.
9. Move the FFmpeg binary file from “/root/bin/ffmpeg” to “/usr/bin/ffmpeg”. Then set permissions of “/usr/bin/ffmpeg” to chmod 0777 and set ownership to the Apache user.
10. Don't forget to change ownership on your document root (web root) folder to user from which Apache is working:
· #ps -aef | grep httpd will show you which user is using Apache (in my case, it's “apache”)
· chown -R apache:apache /var/www/html/
You're done !! CentOS is now ready for you to install and configure the MP3 Converter software, per the provided documentation.