Install phpmotion in cenos6.4

Source: Internet
Author: User
1. install LAMP 2. install the transcoding tool (1) install ffmpeg. Install yasm [css] viewplaincopyprint? Wgethttp: // www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gztar 1 install LAMP
II. install transcoding tools

(1) install ffmpeg.

Install yasm

[Css]View plaincopyprint?
  1. Wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
  2. Tar xzvf yasm-1.2.0.tar.gz
  3. Cd yasm-1.2.0
  4. ./Configure
  5. Make
  6. Make install
  7. Make distclean
  8. .~ /. 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?
  1. Git clone -- depth 1 git: // git.videolan.org/x264.git
  2. Cd x264
  3. ./Configure -- enable-static
  4. Make
  5. Make install
  6. Make distclean
git clone --depth 1 git://git.videolan.org/x264.gitcd x264./configure --enable-staticmakemake installmake distclean

Install fdk-aac
[Css]View plaincopyprint?
  1. Git clone -- depth 1 git: // github.com/mstorsjo/fdk-aac.git
  2. Cd fdk-aac
  3. Autoreconf-fiv
  4. ./Configure -- disable-shared
  5. Make
  6. Make install
  7. Make distclean
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?
  1. Sudo apt-get install nasm
  2. Wget http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz
  3. Tar xzvf lame-3.99.5.tar.gz
  4. Cd lame-3.99.5
  5. ./Configure -- enable-nasm -- disable-shared
  6. Make
  7. Make install
  8. Make distclean
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?
  1. Wget http://downloads.xiph.org/releases/opus/opus-1.0.3.tar.gz
  2. Tar xzvf opus-1.0.3.tar.gz
  3. Cd ops-1.0.3
  4. ./Configure -- disable-shared
  5. Make
  6. Make install
  7. Make distclean
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?
  1. Git clone -- depth 1 http://git.chromium.org/webm/libvpx.git
  2. Cd libvpx
  3. ./Configure -- prefix = "/opt/ffmpeg_sources/ffmpeg_build" -- disable-examples
  4. Make
  5. Make install
  6. Make clean
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?
  1. The yum install libx11-dev libxext-dev libXfixes-dev libvorbis-dev libtheora-dev libass-dev
yum install libx11-dev libxext-dev libXfixes-dev libvorbis-dev libtheora-dev libass-dev


Install ffmpeg
[Css]View plaincopyprint?
  1. Git clone -- depth 1 git: // source.ffmpeg.org/ffmpeg
  2. Cd ffmpeg
  3. . /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
  4. Make
  5. Make install
  6. Make distclean
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?
  1. Yum clean all
  2. Rpm-Uhv http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
  3. Yum install mencoder flvtool2
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?
  1. Mysql-uroot-p;
  2. Create database eduVMS;
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?
  1. Chown apache: apache-R phpmotion;
chown apache:apache -R phpmotion;

(6) install and configure PHPshield
1. check the php version.
[Css]View plaincopyprint?
  1. Php-v
Php -v

2. view the system architecture
[Plain]View plaincopyprint?
  1. Uname-I
uname -i

3. view the extension directory of php in the system
[Plain]View plaincopyprint?
  1. Php-I | grep extension_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?
  1. 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?
  1. 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?
  1. /Etc/init. d/httpd restart
/etc/init.d/httpd restart

(7) configure virtual hosts
Edit the/etc/httpd/conf/httpd. conf file.
[Plain]View plaincopyprint?
  1. 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?
  1. Options shortdes ExecCGI FollowSymLinks
  2. AllowOverride All
  3. Order allow, deny
  4. Allow from all
 
      Options Includes ExecCGI FollowSymLinks    AllowOverride All    Order allow,deny    Allow from all
 


3. add a VM
[Plain]View plaincopyprint?
  1. DocumentRoot "/var/www/html/phpmotion"
  2. ServerName www.eduvideo.com
 
  DocumentRoot "/var/www/html/phpmotion"ServerName www.eduvideo.com
 


4. configure cgi. Remove the AddHandler cgi-script. cgi annotation.
5. disable SELinux.
[Plain]View plaincopyprint?
  1. Setenforce 0
setenforce 0

6. restart apache
[Plain]View plaincopyprint?
  1. /Etc/init. d/httpd restart
/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?
  1. Cp-r */var/www/html/phpmotion/cgi-bin/*/var/www/cgi-bin
  2. Chmod 755-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?
  1. 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?
  1. Rm-rf/var/www/html/phpmotion/setup

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.