cenos 6.4下安装phpmotion
|
一 安装LAMP (一)安装ffmpeg。 安装yasm
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz tar xzvf yasm-1.2.0.tar.gz cd yasm-1.2.0 ./configure make make install make distclean . ~/.profile
git clone --depth 1 git://git.videolan.org/x264.git cd x264 ./configure --enable-static make make install make distclean 安装fdk-aac
git clone --depth 1 git://github.com/mstorsjo/fdk-aac.git cd fdk-aac autoreconf -fiv ./configure --disable-shared make make install make distclean 安装libmp3lame
sudo apt-get install nasm wget http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz tar xzvf lame-3.99.5.tar.gz cd lame-3.99.5 ./configure --enable-nasm --disable-shared make make install make distclean
wget http://downloads.xiph.org/releases/opus/opus-1.0.3.tar.gz tar xzvf opus-1.0.3.tar.gz cd opus-1.0.3 ./configure --disable-shared make make install make distclean
git clone --depth 1 http://git.chromium.org/webm/libvpx.git cd libvpx ./configure --prefix="/opt/ffmpeg_sources/ffmpeg_build" --disable-examples make make install make clean 安装other
yum install libx11-dev libxext-dev libXfixes-dev libvorbis-dev libtheora-dev libass-dev 安装ffmpeg
git clone --depth 1 git://source.ffmpeg.org/ffmpeg cd 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-x11grab make make install make distclean (二)安装mencoder、flvtool2等
yum clean all rpm -Uhv http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm yum install mencoder flvtool2 (三)创建数据库eduVMS
mysql -uroot -p; create database eduVMS; (四)将phpmotion源文件复制到apache目录下。 (五)修改phpmotion文件及子文件的目录权限。
chown apache:apache -R phpmotion; (六)安装配置PHPshield 1、查看php版本。
Php -v 2、查看系统架构
uname -i 3、查看系统中php的扩展目录
php -i|grep extension_dir 输出类似于:extension_dir => /usr/lib64/php/modules => /usr/lib64/php/modules 4、CD到上面输出的目录
cd /usr/lib64/php/modules 5、将phpmotion/phpshield中对应的系统架构目录和相应版本的文件复制到当前目录中。并去掉后缀.lin。例如:
cp /var/www/html/phpmotion/phpshield/Linux_x86-64/ixed.5.3.lin ./ixed.5.3 6、通过php -i|grep php.ini命令找到php.ini文件,编辑php.ini文件,添加extension=ixed.5.3 7、重启apache
/etc/init.d/httpd restart (七)配置虚拟主机 编辑/etc/httpd/conf/httpd.conf文件。
vim /etc/httpd/conf/httpd.conf 修改如下: 1添加apache监听的IP地址和端口号:在Listen 80下面添加Listen 90 2添加文件目录设置
<Directory "/var/www/html/phpmotion"> Options Includes ExecCGI FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> 3、添加虚拟主机
<VirtualHost 10.10.90.210:90> DocumentRoot "/var/www/html/phpmotion" ServerName www.eduvideo.com </VirtualHost> 4、配置cgi。去掉注释AddHandler cgi-script .cgi 5、关闭SELinux
setenforce 0 6、重启apache
/etc/init.d/httpd restart (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
