1. Install LAMP
Ii. Install transcoding tools
(1) install ffmpeg.
Install yasm
[Css] view plaincopyprint?
- Wgethttp: // www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
- Tarxzvfyasm-1.2.0.tar.gz
- Cdyasm-1.2.0
- ./Configure
- Make
- Makeinstall
- Makedistclean
- .~ /. Profile
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gztar xzvf yasm-1.2.0.tar.gzcd yasm-1.2.0./configuremakemake installmake distclean. ~/.profile
Install x264
[Css] view plaincopyprint?
- Gitclone -- depth1git: // git.videolan.org/x264.git
- Cdx264
- ./Configure -- enable-static
- Make
- Makeinstall
- Makedistclean
git clone --depth 1 git://git.videolan.org/x264.gitcd x264./configure --enable-staticmakemake installmake distclean
Install fdk-aac
[Css] view plaincopyprint?
- Gitclone -- depth1git: // github.com/mstorsjo/fdk-aac.git
- Cdfdk-aac
- Autoreconf-fiv
- ./Configure -- disable-shared
- Make
- Makeinstall
- Makedistclean
git clone --depth 1 git://github.com/mstorsjo/fdk-aac.gitcd fdk-aacautoreconf -fiv./configure --disable-sharedmakemake installmake distclean
Install libmp 3lame
[Css] view plaincopyprint?
- Sudoapt-getinstallnasm
- Wgethttp: // downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz
- Tarxzvflame-3.99.5.tar.gz
- Cdlame-3.99.5
- ./Configure -- enable-nasm -- disable-shared
- Make
- Makeinstall
- Makedistclean
sudo apt-get install nasmwget http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gztar xzvf lame-3.99.5.tar.gzcd lame-3.99.5./configure --enable-nasm --disable-sharedmakemake installmake distclean
Install libopus
[Css] view plaincopyprint?
- Wgethttp: // downloads.xiph.org/releases/opus/opus-1.0.3.tar.gz
- Tarxzvfopus-1.0.3.tar.gz
- Cdopus-1.0.3
- ./Configure -- disable-shared
- Make
- Makeinstall
- Makedistclean
wget http://downloads.xiph.org/releases/opus/opus-1.0.3.tar.gztar xzvf opus-1.0.3.tar.gzcd opus-1.0.3./configure --disable-sharedmakemake installmake distclean
Install libvpx
[Css] view plaincopyprint?
- Gitclone -- depth1http: // git.chromium.org/webm/libvpx.git
- Cdlibvpx
- ./Configure -- prefix = "/opt/ffmpeg_sources/ffmpeg_build" -- disable-examples
- Make
- Makeinstall
- Makeclean
git clone --depth 1 http://git.chromium.org/webm/libvpx.gitcd libvpx./configure --prefix="/opt/ffmpeg_sources/ffmpeg_build" --disable-examplesmakemake installmake clean
Install other
[Css] view plaincopyprint?
- Yuminstalllibx11-devlibxext-devlibXfixes-devlibvorbis-devlibtheora-devlibass-dev
yum install libx11-dev libxext-dev libXfixes-dev libvorbis-dev libtheora-dev libass-dev
Install ffmpeg
[Css] view plaincopyprint?
- Gitclone -- depth1git: // source.ffmpeg.org/ffmpeg
- Cdffmpeg
- . /Configure -- extra-libs = "-ldl" -- enable-gpl -- enable-libass-enable-libfdk-aac -- enable-libmp3lame -- enable-libopus -- enable-libtheora -- enable-libvorbis -- enable-libvpx -- enable-libx264 -- enable-nonfree -- enable-x11grab
- Make
- Makeinstall
- Makedistclean
git clone --depth 1 git://source.ffmpeg.org/ffmpegcd ffmpeg./configure --extra-libs="-ldl" --enable-gpl --enable-libass –enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grabmakemake installmake distclean
(2) install mencoder and flvtool2
[Css] view plaincopyprint?
- Yumcleanall
- Rpm-Uhvhttp: // pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
- Yuminstallmencoderflvtool2
yum clean allrpm -Uhv http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpmyum install mencoder flvtool2
(3) create an eduVMS Database
[Css] view plaincopyprint?
- Mysql-uroot-p;
- CreatedatabaseeduVMS;
mysql -uroot -p;create database eduVMS;
(4) copy the phpmotion source file to the apache directory.
(5) modify the directory permissions of the phpmotion file and Its subfiles.
[Css] view plaincopyprint?
- Chownapache: apache-Rphpmotion;
chown apache:apache -R phpmotion;
(6) install and configure PHPshield
1. Check the php version.
[Css] view plaincopyprint?
- Php-v
Php -v
2. view the system architecture
[Plain] view plaincopyprint?
- Uname-I
uname -i
3. view the extension directory of php IN THE SYSTEM
[Plain] view plaincopyprint?
- Php-I | grepextension_dir
php -i|grep extension_dir
The output is similar to: extension_dir =>/usr/lib64/php/modules =>/usr/lib64/php/modules
4. CD to the output directory
[Plain] view plaincopyprint?
- Cd/usr/lib64/php/modules
cd /usr/lib64/php/modules
5. Copy the system architecture directory and corresponding version files in phpmotion/phpshield to the current directory. Remove the suffix. lin. For example:
[Plain] view plaincopyprint?
- Cp/var/www/html/phpmotion/phpshield/Linux_x86-64/ixed.5.3.lin./ixed.5.3
cp /var/www/html/phpmotion/phpshield/Linux_x86-64/ixed.5.3.lin ./ixed.5.3
6. Run the php-I | grep php. ini command to find the php. ini file, edit the php. ini file, and add extension = ixed.5.3.
7. Restart apache
[Plain] view plaincopyprint?
- /Etc/init. d/httpdrestart
/etc/init.d/httpd restart
(7) Configure Virtual Hosts
Edit the/etc/httpd/conf/httpd. conf file.
[Plain] view plaincopyprint?
- Vim/etc/httpd/conf/httpd. conf
vim /etc/httpd/conf/httpd.conf
Modify as follows:
1. Add the IP address and port number of the apache listener: Add Listen 90 under Listen 80
2. Add file directory settings
[Plain] view plaincopyprint?
- <Directory "/var/www/html/phpmotion">
- OptionsIncludesExecCGIFollowSymLinks
- AllowOverrideAll
- Orderallow, deny
- Allowfromall
- </Directory>
<Directory "/var/www/html/phpmotion"> Options Includes ExecCGI FollowSymLinks AllowOverride All Order allow,deny Allow from all</Directory>
3. Add a VM
[Plain] view plaincopyprint?
- <VirtualHost10.10.90.210: 90>
- DocumentRoot "/var/www/html/phpmotion"
- ServerNamewww.eduvideo.com
- </VirtualHost>
<VirtualHost 10.10.90.210:90>DocumentRoot "/var/www/html/phpmotion"ServerName www.eduvideo.com</VirtualHost>
4. Configure cgi. Remove the AddHandler cgi-script. cgi annotation.
5. Disable SELinux.
[Plain] view plaincopyprint?
- Setenforce0
setenforce 0
6. Restart apache
[Plain] view plaincopyprint?
- /Etc/init. d/httpdrestart
/etc/init.d/httpd restart
(8) Copy all files in/phpmotion/cgi-bin to/var/www/cgi-bin and change the permission to 755
[Plain] view plaincopyprint?
- Cp-r */var/www/html/phpmotion/cgi-bin/*/var/www/cgi-bin
- Chmod755-R/var/www/cgi-bin /*
cp -r * /var/www/html/phpmotion/cgi-bin/* /var/www/cgi-binchmod 755 -R /var/www/cgi-bin/*
(9) Use a browser to enter the system for settings
1. Enter ip: port in the browser. Example: 10.10.90.210: 90
2. Click the continue button to go to step 2. If PHP enable_dl is set to a cross, modify php. ini and set enable_dl to On.
[Plain] view plaincopyprint?
- Vim/etc/php. ini
vim /etc/php.ini
After the modification, restart apache, refresh the browser, and click "continue.
3. Click "continue" to configure the database information:
4. Click "continue. Configure system information.
5. Click "continue" to delete the setup directory under the phpmotion directory.
[Plain] view plaincopyprint?
- Rm-rf/var/www/html/phpmotion/setup