PHPmotion installation

apps

#1

I’d like to install PHPmotion on my DH, but this script can crash my server :frowning:

Did someone has solved this problem? What shuld I do to install it correctly?


#2

There are threads in these forums, and information on the web, that discuss what’s involved (and even an offer from another user to do it for a fee).

http://www.google.com/search?as_q=phpmotion+Dreamhost

You will need to install your own version of PHP and include several additional modules and libraries - the program will not run on a standard DH default PHP instance.

Note that this program’s memory and CPU requirements make it highly unlikely that is is suitable for use on a shared server.

–rlparker


#3

Please refer yourself to this thread:

http://discussion.dreamhost.com/showthreaded.pl?Cat=0&Board=forum_webdesign&Number=93219&page=&view=&sb=&o=&vc=1#Post93219


#4

I found some tutorial, how to instal ffmpeg-php and other stuff (http://www.netbrix.net/archives/20), but not all of commands is working, and can not install correctly phpmotion

I have edit commands list - new files versions, etc. but dont know if its all fine, coz i’m a noob with ssh

Might someone check it?

Prepare the directory structure
mkdir bin
mkdir lib
mkdir tmp
chmod 777 tmp
chmod 775 bin
chmod 775 lib

Export some environment variables
export TMPDIR=$HOME/tmp
export PATH=$HOME/bin:$PATH
export LD_LIBRARY_PATH=$HOME/lib:/usr/local/lib:$LD_LIBRARY_PATH
export CPATH=$HOME/include:/usr/local/include:$CPATH
export LIBRARY_PATH=$HOME/lib:/usr/local/lib:$LIBRARY_PATH
mkdir src
cd src

AUTOCONF
wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.61.tar.gz
tar -zxf autoconf-2.61.tar.gz
cd autoconf-2.61
./configure --prefix=$HOME
make
make install
cd …

LAME
wget http://nchc.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
tar -zxvf lame-3.97.tar.gz
cd lame-3.97
./configure --prefix=$HOME --enable-shared
make
make install
cd …

LIBOGG
wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
tar -zxf libogg-1.1.3.tar.gz
cd libogg-1.1.3
./configure --prefix=$HOME
make
make install
cd …

LIBVORBIS
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.2.0.tar.gz
tar -zxf libvorbis-1.2.0.tar.gz
cd libvorbis-1.2.0
./configure --prefix=$HOME
make
make install
cd …

FFMPEG
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cd ffmpeg
./configure --prefix=$HOME --cross-compile --enable-shared --enable-libmp3lame --extra-cflags=-I$HOME/include --extra-ldflags=-L$HOME/lib
make
make install
cd …

GD2
wget http://www.libgd.org/releases/gd-2.0.35.tar.gz
tar -zxf gd-2.0.35.tar.gz
cd gd-2.0.35
./configure --prefix=$HOME
make
make install
cd …

MPlayer Mencoder
wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2
bunzip2 essential-20071007.tar.bz2
tar -xf essential-20071007.tar
mv essential-20071007 $HOME/lib
wget http://www3.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc2.tar.bz2
bunzip2 MPlayer-1.0rc2.tar.bz2
tar -xf MPlayer-1.0rc2.tar
cd MPlayer-1.0rc2
./configure --prefix=$HOME --codecsdir=$HOME/lib/essential-20071007
make
make install
cd …

RUBY
wget http://rubyforge.org/frs/download.php/18421/ruby-1.8.6.tar.gz
tar -zxvf ruby-1.8.6.tar.gz
cd ruby-1.8.6
./configure --prefix=$HOME/local
make
make install
cd …

FLVTOOL2
wget http://rubyforge.org/frs/download.php/17497/flvtool2-1.0.6.tgz
tar -zxvf flvtool2-1.0.6.tgz
cd flvtool2-1.0.6
ruby setup.rb config --prefix=$HOME
ruby setup.rb setup
ruby setup.rb install
cd …

PHP
wget http://pl2.php.net/distributions/php-5.2.4.tar.bz2
bunzip2 php-5.2.4.tar.bz2
tar xf php-5.2.4.tar
cd php-5.2.4
./configure --prefix=$HOME --libdir=$HOME/lib --bindir=$HOME/bin --with-ffmpeg=$HOME
make
make install
cd …

FFMPEG-PHP
wget http://heanet.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.1.tbz2
bunzip2 ffmpeg-php-0.5.1.tbz2
tar -xf ffmpeg-php-0.5.1.tar
cd ffmpeg-php-0.5.1
phpize
./configure --prefix=$HOME --libdir=$HOME/lib --bindir=$HOME/bin --with-ffmpeg=$HOME
make clean
make install
cd …

Setup users environment to use the php installed earlier
cd $HOME/lib
cp $HOME/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg.so ./
cp $HOME/src/php-4.4.4/php.ini-recommended php.ini
vi php.ini (add extension= /home//lib/ffmpeg.so)< /STRONG>

To enable site
cp $HOME/bin/php $HOME/cgi-bin/php.cgi

add a .htaccess with following content

AddHandler phpFive .php
Action phpFive /cgi-bin/php.cgi

You might need to also run the following
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/lib
export LIBRARY_PATH=$HOME/lib:$LIBRARY_PATH
export CPATH=$HOME/include/:$HOME/include/lame/