Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to install this module - ffmpeg-php on a dedicated server, but am unsure where I should be saving this file and setting it up so that the binaries get created at the appropriate location.

Where should I be downloading it,


and untar-ring, phpize-ing and configure-ing it?

share|improve this question
up vote 0 down vote accepted

There are two parts to this question plus an unstated part:

  • where should I temporarily save the downloaded tbz2 file and work on it?
  • where should I install the executables, the man pages, the config files and so on?
  • what other approaches are there?

1. People sometimes create a subdirectory in /tmp (e.g. /tmp/ffmpeg) and extract the files there. You need to clean up and delete after the software is installed. I tend to login as a normal user, create a sysadmin/software folder in my home directory and extract new software into subdirectories there. I only su to root when the time comes to install the compiled and tested binaries etc.

2. There are standards for where software should be installed. Read the Linux Filesystem Hierarchy Standards,

3. I prefer to use the platform's packaging system and software repositories. This depends on which Linux distribution you use. For RedHat/CentOS etc I would not bother with the download unless the repositories had no ffmpeg-php package I could use with yum install ffmpeg-php. For other distros the native package management tool might be apt-get. There are advantages to having the package manager handle conflicts, dependencies and be able to provide a complete list of installed packages. I've no idea if ffmpeg-php is available this way - so it might not be an option, but I'd check carefully first.

share|improve this answer
Answer to 2) Based on what you're saying /usr/bin or /usr/lib look like the right location – siliconpi Oct 13 '10 at 12:10
Answer to 1) yum install ffmpeg-php says "Setting up Install Process No package ffmpeg-php available. Nothing to do" – siliconpi Oct 13 '10 at 12:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.