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

The Gallery2 script uses SYSTEM() & EXEC() to call FFMPEG

For security reasons both those PHP functions appear to have been disabled on my shared web hosting server.

Is there another method to use for executing FFMPEG?

share|improve this question
I doubt it, since it would be blocked for the same reason SYSTEM() and EXEC() are blocked. – Douglas Leeder Aug 21 '09 at 12:29

Can you upload your own CGIs? If so, upload a bash script (named something.cgi) that starts ffmpeg and visit it.

Try making a file called "foo.cgi" with this content:

echo "Content-type: text/plain"
echo ""
ls -Fal

Upload that to your web root, then go to http://yoursite/foo.cgi

share|improve this answer
Sorry not understanding. This is a shared web server among 100 clients or so. None are granted ssh ability, but only ftp. – Clear.Cache Aug 21 '09 at 16:55
You could FTP a bash script (renamed to something.cgi) into your web root, then go to that page with a browser. The bash script will run on the server, and you can run whatever you want that way. For a start, try something like this: #!/bin/bash echo "Content-type: text/plain" echo "" ls If you see a directory listing when you go to that cgi, you're good. – Bill Weiss Aug 21 '09 at 19:18
argh, markup. I'll add the code I intended to my answer. – Bill Weiss Aug 21 '09 at 19:19

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.