Software installation on CentOS 6.x
· The following is a command line approach to setting up CentOS 6.x with the necessary dependencies required for this software to run.
· 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.
· 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.
· If you need any further help, you may contact me directly for paid support (charged at my hourly rate).
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.
H.264 video encoder.
Requires FFmpeg to be configured with --enable-gpl --enable-libx264 --extra-libs=-ldl
AAC audio encoder.
Requires FFmpeg to be configured with --enable-libfdk_aac (and --enable-nonfree if you also included --enable-gpl)
MP3 audio encoder.
Requires FFmpeg to be configured with --enable-libmp3lame
Requires FFmpeg to be configured with --enable-libopus
Ogg bitstream library. Required by libtheora and libvorbis.
Requires FFmpeg to be configured with --enable-libvorbis
VP8/VP9 video encoder.
Requires FFmpeg to be configured with --enable-libvpx
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. Upload software to your server into document root (web root) folder.
11. 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/
12. Install ‘id3v2’ package for editing metadata of some downloaded/converted file types
· Create the repository config file “/etc/yum.repos.d/linuxtech.repo”:
· Install id3v2 rpm package:
# yum install id3v2
You're done !! CentOS is now ready for you to install and configure the YouTube-to-Mp3 Converter software, per the provided documentation.