View Single Post
Old 10-23-2012, 05:46 AM   PM User | #515
Luckyplaya
New Coder

 
Join Date: Sep 2012
Location: Germany
Posts: 32
Thanks: 8
Thanked 1 Time in 1 Post
Luckyplaya is an unknown quantity at this point
HowTo install the YouTube to MP3 Components on Debian

HowTo install the YouTube to MP3 Components on Debian

[Install Webserver, PHP & curl]

Code:
apt-get install apache2 php5 libapache2-mod-php5 php5-cli curl libcurl3 php5-curl
[Restart Webserver]

Code:
/etc/init.d/apache2 restart
[Install Text editor VIM]

Code:
apt-get install VIM
(VIM Commands: Press i for insert Text
Press ESC for leave insert Mode
:w to save file
:q to quit VIM)


[Create 'public_html' directory]

Code:
mkdir /home/user/public_html

chmod 0777 /home/user/public_html

[~Move web root from '/var/www' to '/home/user/public_html'~]

[Open '/etc/apache2/sites-enabled/000-default' in text editor]

[Via command line, you do it like this:]


Code:
vim /etc/apache2/sites-enabled/000-default
Code:
[Change 'DocumentRoot /var/www' to 'DocumentRoot /home/user/public_html']

[Change '<Directory /var/www/>' to '<Directory /home/user/public_html/>']


[Save and close file in text editor]

[Restart Webserver]


Code:
/etc/init.d/apache2 restart

[Create a phpinfo.php file and put it into /home/user/public_html]

Code:
vim /home/user/public_html/phpinfo.php
Code:
<?
phpinfo ();
?>


[Save and close file in text editor]


[Open phpinfo.php in browser (http://localhost/phpinfo.php) to verify Apache/PHP are working]

[Edit Sources]

Code:
vim /etc/apt/sources.list.d/deb-multimedia.org.list
Code:
# Debian Multimedia Repository 
deb http://www.deb-multimedia.org squeeze main non-free
deb ftp://ftp.deb-multimedia.org squeeze main non-free


[Save and close file in text editor]


Code:
apt-get update
apt-get install deb-multimedia-keyring

apt-get update

[Install Codecs]

Code:
Attention!

For 32bit Systems
apt-get install w32codecs

For 64bit Systems
apt-get install w64codecs
[Install FFmpeg]

Code:
apt-get install ffmpeg
[Install ffmpeg-php PHP extension]

Code:
apt-get install php5-ffmpeg
[Restart Webserver]
Code:
/etc/init.d/apache2 restart
[Download all ffmpeg.presets]
Copy all files to: /usr/share/ffmpeg

[You're done !! Debian is now ready for you to install and configure the YouTube-to-Mp3 Converter software.]

Last edited by chump2877; 10-23-2012 at 05:24 PM.. Reason: removed reference to README.txt, which doesn't exist in free version of app
Luckyplaya is offline   Reply With Quote
Users who have thanked Luckyplaya for this post:
chump2877 (10-23-2012)