PHP Installation & Configuration
From 5dollarwhitebox.org Media Wiki
[edit]
RedHat: Install PHP Module without recompiling
[root@linuxbox ~]# up2date -u php-devel [root@linuxbox ~]# up2date --get-source php [root@linuxbox ~]# rpm -Uvh /var/spool/up2date/php-4.3.9-3.9.src.rpm 1:php ########################################### [100%] [root@linuxbox SOURCES]# cd /usr/src/redhat/SOURCES/ [root@linuxbox SOURCES]# tar -zxvf php-4.3.9.tar.gz [root@linuxbox SOURCES]# wget http://internap.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.4.6.tbz2 [root@linuxbox SOURCES]# tar -jxvf ffmpeg-php-0.4.6.tbz2 [root@linuxbox SOURCES]# mv ffmpeg-php-0.4.6 /usr/src/redhat/SOURCES/php-4.3.9/ext/ffmpeg [root@linuxbox SOURCES]# cd php-4.3.9/ext/ffmpeg [root@linuxbox ffmpeg]# phpize [root@linuxbox ffmpeg]# ./configure --enable-shared --prefix=/usr [root@linuxbox ffmpeg]# make [root@linuxbox ffmpeg]# make install
You then may need to add the configuration to load the module:
[root@linuxbox]# vi /etc/php.d/ffmpeg.ini Add the following: ; Enable ffmpeg extension module extension=ffmpeg.so
Then test php:
[root@linuxbox]# php -v PHP 4.3.9 (cgi) (built: Nov 4 2005 11:49:35) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
You would get errors if it couldn't load the module"
You will then need to restart Apache.
[edit]
Pear Re-installation of the Command Line Manager
You may come across a borked pear install. This should help:
lynx -source http://go-pear.org/ | php
