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
[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
[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.]