#FROM daocloud.io/centos:6#MAINTAINER Larry <[email protected]>rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm && rpm -uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpmyum -y update && yum install -y wget# install rpm wget http://pkgs.repoforge.org/ rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm && rpm --import http:/ /apt.sw.be/rpm-gpg-key.dag.txt && rpm -k rpmforge-release-0.5.3-1.el6.rf.x86_64. rpm && rpm -i rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm# install epel# su -c ' rpm -uvh http://download.fedoraproject.org/pub/epel/6/i386/ epel-release-6-8.noarch.rpm ' # install some basic packagesyum install -y gcc make automake bzip2 unzip patch subversion libjpeg-devel yasm gcc-c++ vim# remove installed packagesyum remove -y ffmpeg x264# add confecho '/usr/lib ' >> /etc/ld.so.conf && echo '/usr/local/lib ' >> /etc/ ld.so.conf# install codecsyum install -y faac-devel lame-devel amrnb-devel opencore-amr-devel amrwb-devel libvorbis-devel libtheora-devel xvidcore-develyum install -y tar# install x264copy last_stable_x264.tar.bz2 /libs/cd /libs/ && tar xvjf last_stable_x264.tar.bz2 && cd x264* && ./configure --enable-shared --enable-pic && &NBSP;MAKE&NBSP;&&&NBSP;MAKE&NBSP;INSTALL&NBSP;&&&NBSP;CD&NBSP, .... # install libvpxcopy libvpx-v1.2.0.tar.bz2 /libs/cd /libs/ && tar xvjf libvpx-v1.2.0.tar.bz2 && cd libvpx-v1.2.0 && ./configure --enable-shared --enable-pic && MAKE&NBSP;&&&NBSP;MAKE&NBSP;INSTALL&NBSP;&&&NBSP;CD&NBSP, .... # install ffmpeg and ffprobecopy ffmpeg-2.0.1.tar.bz2 /libs/cd /libs/ && tar xvjf ffmpeg-2.0.1.tar.bz2 && cd ffmpeg-2.0.1 & & ./configure --enable-gpl --enable-version3 --enable-shared --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb -- enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx -- enable-libx264 --enable-libxvid && make && make install && ldconfig# install qt-faststartcd /libs/ffMpeg-2.0.1 && make tools/qt-faststart && cp tools/qt-faststart /usr/local/binyum install -y mplayer mencoder flvtool2 httpd openssh-server supervisor mysql-servermkdir -p /var//sshd && mkdir -p /var/log/supervisorcopy supervisor.conf /etc/supervisor/conf.d/supervisor.confyum Install -y --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof php-gdcopy php.ini /etc/expose 80 22cmd ["/USR/SBIN/HTTPD", "-K", "Start"]
This article is from the "david0512" blog, make sure to keep this source http://gjr0512.blog.51cto.com/6518687/1753549
Symfony installed under CentOS