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.
root@server [~]# cp -p /usr/local/cpanel/3rdparty/etc/php.ini /var/cpanel/3rdparty/etc/php.ini
cp: cannot create regular file `/var/cpanel/3rdparty/etc/php.ini’: No such file or directory
1. Try updating cPanel to the latest version.
2. If the above doesn’t work or if you are unable to do that then:
Check your WHM Tweak Settings to make sure that the Ioncube loader is selected and that the register_globals is checked, then save the changes. After doing this check whether you are getting any errors that the php.ini is inaccessible. If you get an error then run the following :
chattr -ia /usr/local/cpanel/3rdparty/etc/php.ini
and try again.
3. If the issue persists then run /scripts/makecpphp.
It just rebuilds the copy of PHP that cPanel and WHM use (not your public version of PHP) and then makes sure that cPanel and WHM are set to use that version.
This should resolve the issue.