Fantastico IonCube error

In the last weeks seems that some particular error showed up more often on servers that are running Fatastico under Cpanel.

The error itself looks like this:

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.

I am not sure of the cause of the error but seems to be related to the PhP compiling options for CPanel(this is not the same with PhP running under Apache) .

Enabling IonCube seems to not resolve this issue.

Anyway a simple fix to this problem is to recompile the PhP for CPanel and not this is not being done by using EasyApache but by running the following:

/scripts/makecpphp – This will recompile the php that is serving Cpanel

Like i said the two php versions and compile options are not the same for Cpanel and Apache on a Cpanel server.