Install phpmotion in cenos 6.4

Source: Internet
Author: User

1. Install LAMP
Ii. Install transcoding tools

(1) install ffmpeg.

Install yasm

[Css] view plaincopyprint?
  1. Wgethttp: // www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
  2. Tarxzvfyasm-1.2.0.tar.gz
  3. Cdyasm-1.2.0
  4. ./Configure
  5. Make
  6. Makeinstall
  7. Makedistclean
  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. Gitclone -- depth1git: // git.videolan.org/x264.git
  2. Cdx264
  3. ./Configure -- enable-static
  4. Make
  5. Makeinstall
  6. Makedistclean
git clone --depth 1 git://git.videolan.org/x264.gitcd x264./configure --enable-staticmakemake installmake distclean

Install fdk-aac
[Css] view plaincopyprint?
  1. Gitclone -- depth1git: // github.com/mstorsjo/fdk-aac.git
  2. Cdfdk-aac
  3. Autoreconf-fiv
  4. ./Configure -- disable-shared
  5. Make
  6. Makeinstall
  7. 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?
  1. Sudoapt-getinstallnasm
  2. Wgethttp: // downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz
  3. Tarxzvflame-3.99.5.tar.gz
  4. Cdlame-3.99.5
  5. ./Configure -- enable-nasm -- disable-shared
  6. Make
  7. Makeinstall
  8. 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?
  1. Wgethttp: // downloads.xiph.org/releases/opus/opus-1.0.3.tar.gz
  2. Tarxzvfopus-1.0.3.tar.gz
  3. Cdopus-1.0.3
  4. ./Configure -- disable-shared
  5. Make
  6. Makeinstall
  7. 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?
  1. Gitclone -- depth1http: // git.chromium.org/webm/libvpx.git
  2. Cdlibvpx
  3. ./Configure -- prefix = "/opt/ffmpeg_sources/ffmpeg_build" -- disable-examples
  4. Make
  5. Makeinstall
  6. 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?
  1. 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?
  1. Gitclone -- depth1git: // source.ffmpeg.org/ffmpeg
  2. Cdffmpeg
  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. Makeinstall
  6. 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?
  1. Yumcleanall
  2. Rpm-Uhvhttp: // pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
  3. 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?
  1. Mysql-uroot-p;
  2. 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?
  1. Chownapache: apache-Rphpmotion;
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 | 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?
  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/httpdrestart
/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. <Directory "/var/www/html/phpmotion">
  2. OptionsIncludesExecCGIFollowSymLinks
  3. AllowOverrideAll
  4. Orderallow, deny
  5. Allowfromall
  6. </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?
  1. <VirtualHost10.10.90.210: 90>
  2. DocumentRoot "/var/www/html/phpmotion"
  3. ServerNamewww.eduvideo.com
  4. </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?
  1. Setenforce0
setenforce 0

6. Restart apache
[Plain] view plaincopyprint?
  1. /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?
  1. Cp-r */var/www/html/phpmotion/cgi-bin/*/var/www/cgi-bin
  2. 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?
  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

Related Article

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.