Fantastico Error: enc_restrictions.inc.php is protected by SourceGuardian and requires file ixed.lin.4.X.X.pxp, 4.3.7.pxp, 4.3.8.pxp, 4.3.9.pxp error

Code: 
/usr/local/cpanel/base/3rdparty/fantastico/includes/enc_restrictions.inc.php is protected by SourceGuardian and requires file ixed.lin.4.3.9.pxp.
Please read SourceGuardian protected scripts manual.

Unfortunately many server administrators get this error ever now and then on their server, netenberg has failed to address the problem and has only provided the following temporary fix everytime the problem arises. This tutorial provides the steps needed to fix the problem on your server. This is a very simple tutorial and throughout most of it you can simply copy and paste via your SSH terminal.

Simple way: (Please note that if this does not work try the complex way):

Linux Code:
Code: 
    cd /tmp
    chattr -i ixed
    rm -Rf ixed*
    wget -N http://netenberg.com/files/ixed.tgz
    tar xzpf ixed.tgz
    rm -f ixed.tgz
    chattr +i ixed
FreeBSD Code:
Code: 
    cd /tmp
    chflags noschg ixed
    rm -Rf ixed*
    wget -N http://netenberg.com/files/ixed.tgz
    tar xzpf ixed.tgz
    rm -f ixed.tgz
    chflags schg ixed
PLEASE NOTE: If you've already done this in the past, but you start receiving errors again, check to see if PHP has been upgraded to a newer version. If so, you may need to fetch newer ixed files to cover your version of PHP. SourceGuardian updates ixed files fairly quickly, but if you can't find an ixed file for your version of PHP, then try renaming the latest version of the ixed file prior to your version to match your version:

FreeBSD and Linux Code:
Code: 
    cd /tmp/ixed
    cp ixed.lin.4.3.8.pxp ixed.lin.4.3.9.pxp
This fix may or may not work, on each version of PHP a new ixed file is released, so by doing this you are creating a fake version. As soon as the real ixed files gets released for your version of PHP then replace your fake version with the real version (by following the first set on instructions).

Complex Fix: (Adds ixed decoder files as a Dynamic Extentions to the php.ini file. However CPanel may modify php.ini on a daily basis and you may have to fix over and over again)


Code: 
    cd /usr/local/cpanel/3rdparty/etc/
    rm -f ixed.tgz
    wget http://netenberg.com/files/ixed.tgz
    tar xzpf ixed.tgz
    rm -f ixed.tgz
Linux
Code: 
    chattr -i /usr/local/cpanel/3rdparty/etc/php.ini
FreeBSD
Code: 
    chflags noschg /usr/local/cpanel/3rdparty/etc/php/ini
Last Step
Code: 
    /usr/local/cpanel/bin/checkphpini
Retry to load Fantastico. If you still get the errors, do this:


Code: 
    /scripts/upcp --force
If you still get errors:

Linux Code:
Code: 
    chattr -i /usr/local/cpanel/3rdparty/etc/php.ini
    pico -w /usr/local/cpanel/3rdparty/etc/php.ini
FreeBSD Code:
chflags noschg /usr/local/cpanel/3rdparty/etc/php.ini
pico -w /usr/local/cpanel/3rdparty/etc/php.ini

and edit the following line:
extension_dir = ./ ; directory in which ...

and remove the ./ if it appears (just those two characters, so it is set like this:
extension_dir = ; directory in which ...
instead.

Note: Some users find that changing the extension_dir to "/" (no period) works better for them.

Scroll down to the Dynamic Extentions area of the file and add the following line at the end of this section (before Module Settings):
Code: 
    extension="/usr/local/cpanel/3rdparty/etc/ixed/ixed.lin.4.3.8.pxp"
Change the number in ixed.lin.4.X.X.pxp to match whatever version of PHP you have installed.

If you get no more errors enter this:

Linux Code:
Code: 
    chattr +i /usr/local/cpanel/3rdparty/etc/php.ini
FreeBSD Code:
Code: 
    chflags schg /usr/local/cpanel/3rdparty/etc/php.ini
Last of all if you are still having problems, make sure you ixed directories are all chmoded to 0755:


Code: 
    chmod -Rf 0755 ixed
This may need to be done in either the /tmp dir or the /usr/local/cpanel/3rdparty/etc/ dir.



Credits: parts of this tutorial from the netenberg || creating possibilities website.
Areon Reviewed by Areon on . Fantastico Error: enc_restrictions.inc.php is protected by SourceGuardian and requires file ixed.lin.4.X.X.pxp, 4.3.7.pxp Fantastico Error: enc_restrictions.inc.php is protected by SourceGuardian and requires file ixed.lin.4.X.X.pxp, 4.3.7.pxp, 4.3.8.pxp, 4.3.9.pxp error /usr/local/cpanel/base/3rdparty/fantastico/includes/enc_restrictions.inc.php is protected by SourceGuardian and requires file ixed.lin.4.3.9.pxp. Please read SourceGuardian protected scripts manual. Unfortunately many server administrators get this error ever now and then on their server, netenberg has failed to address the problem and has Rating: 5