Category Archives: Cpanel

FFMPEG common errors

FFMPEG common errors

I am not writing about the installation of ffmpeg or ffmpeg-php and related binaries as there are plenty of tutorials out there in internet, but there are a few errors on which you often end up while installing ffmpeg. I’m scribbling down the errors which I’ve come across while installing ffmpeg.A couple of fixes for all errors, alteast one of it should fix the issue


‘make’ fails with the following error

In file included from libavdevice/v4l.c:33:
/usr/include/linux/videodev.h:56: error: syntax error before “ulong”
/usr/include/linux/videodev.h:72: error: syntax error before ‘}’ token
libavdevice/v4l.c: In function `grab_read_header’:
libavdevice/v4l.c:75: error: storage size of ‘tuner’ isn’t known
libavdevice/v4l.c:133: error: invalid application of `sizeof’ to incomplete type `video_tuner’
libavdevice/v4l.c:140: error: invalid application of `sizeof’ to incomplete type `video_tuner’
libavdevice/v4l.c:75: warning: unused variable `tuner’


1)Uppgrade the linux and headers to 2.6.25 or higher (which is going to break your head and so no to it imo) or disable V4L and V4L2 during configuration. I dont think you’ll need V4L and V4L2 for your applications,so start over again after running the following commands in your ffmpeg source directory

make distclean
./configure –enable-libmp3lame –enable-libvorbis –disable-mmx –enable-shared –disable-demuxer=v4l –disable-demuxer=v4l2

2) edit the file /usr/include/linux/videodev.h using your favourate editor and go to line 56, replace the line as shown below

ulong rangelow, rangehigh; /* Tuner range */

change it to

unsigned long rangelow, rangehigh; /* Tuner range */


checking for ffmpeg headers… configure: error: ffmpeg headers not found. Make sure you’ve built ffmpeg as shared libs using the –enable-shared option

1) install ffmpeg-devel, go get the stuff for your distro from google.
I downloaded rpm for centos4 from here

2)Simply create a ffmpeg folder in /usr/local/include/ and run the following to copy all the header files

cp /usr/local/include/libavcodec/* /usr/local/include/ffmpeg
cp /usr/local/include/libavdevice/* /usr/local/include/ffmpeg
cp /usr/local/include/libavformat/* /usr/local/include/ffmpeg
cp /usr/local/include/libavutil/* /usr/local/include/ffmpeg
cp /usr/local/include/libswscale/* /usr/local/include/ffmpeg


ffmpeg: error while loading shared libraries: cannot open shared object file: No such file or directory

1) do ldconfig
2) find / -name ‘*’

once the find returns its path, export it using the following command

export LD_LIBRARY_PATH=<path>

Say for example if find returns the following path


the export command would be

export LD_LIBRARY_PATH=/usr/local/lib/


make: *** [ffmpeg_frame.lo] Error 1

1)Execute the following in the ffmpeg-php folder.
cp ffmpeg_frame.loT ffmpeg_frame.lo


PHP Warning: PHP Startup: Unable to load dynamic
library ‘/usr/lib/php/modules/’ – /usr/lib/php/modules/ undefined symbol: >>le_ffmpeg_frame in Unknown on line 0

ffmpeg may be installed in /usr/bin or /usr/local/bin, php might be checking for the stuff in the wrong location

Reboot command in a VPS

Reboot command in a VPS

Did you ever try restarting your virtuozzo VPS by hitting the ‘reboot’ command inside the VPS? If you’ve done, you might have had troubles in having it back online automatically. ‘reboot’ command works in a different way inside a VPS unlike a dedicated server. when you issue this command, VPS is stopped and started by a different script in the hardware node which is executed  in every minute.

When you hit reboot command inside the VPS, it invokes reboot system call with argument ‘restart’, which has to be handled by BIOS in normal cases. But since its a VPS, the system call is blocked from within since the VPS shouldnt talk directly with bios, which otherwise can result in a reboot of hardware node! So internelly, the reboot command is being handled this way

1. the VPS is simply stopped when reboot command is issues from within.
2. VPS is started again using a script /etc/sysconfig/vz-scripts/vereboot which is invoked automatically using a cron job specified in  /etc/cron.d/vereboot in ever 1 or 2 minutes depending on the cron

So its a better Idea to go for VZPP to get your virtuozzo VE rebooted rather than issuing a reboot command

Fantastico installation via cpanel

Fantastico installation via cpanel

Fantastico installation through WHM is a pretty easy job. Make sure that your server IP is licensed for fantastico installation. Login to WHM of your Server, go to

Plugins >> Fantastico De Luxe WHM Admin.

You’d find a direct ‘click here’ to install fatastico option in the installation page. Just feel free to click over there!, hold your breath for a couple of minutes until Fantastico fetched various script/softwares installation files.

Are you facing issues while installing fantastico clicking the ‘click here’ button? like the fantastico screen not responding at the time of installation or throwing any error when you trigger the install buttton? Don’t run around crying!

It might possible due to some corrupted or incomplete files in fantastico installation directory.Just follow these steps and you should be fine.

cd /usr/local/cpanel/whostmgr/docroot/cgi
wget -N
tar -xzpf fantastico_whm_admin.tgz
rm -rf fantastico_whm_admin.tgz

Do the installation again, you should probably go without any issues, next part is configuration, well there’s nothing complicated here as well.

IF your on a VPS , dont forget to enable vps oprion while configuring fantastico. and enable ‘suexec’ if your machine run suexec with apache

once this is done,try accesssing fantastico admin again, it might possibly through this error

Fantastico is not installed at the default location /usr/local/cpanel/3rdparty/fantastico. Either move the Fantastico directory from it’s current location to /usr/local/cpanel/3rdparty/fantastico OR enable ioncube loaders in WHM -> Tweak settings.

No need to panic, just go to

WHM >> Server Configurations >> Tweak Serrings.

You’d find the option to enable ioncube loader under php sections

Get the ioncube enabled and you’ll have fantastico on cpanel of accounts in your VPS. If you could not get fantastico option displayed in cpanel of accounts, check in 

WHM >> Main >> Packages >> Feature Manager

and ensures that you’ve checked the ‘Fantastico’ option.

You have options in Fantastico to enable fantastico for selected users/resllers