Plugins - Fantastico Deluxe Error

PCZero

Well-Known Member
Dec 13, 2003
778
103
193
Earth
Clicking
Home - Plugins - Fantastic De Luxe WHM Admin

Gives me the following error

Internal Server Error

500

No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/addon_fantastico.cgi) with exit signal: 1

cpsrvd/11.36.0.14 Server at foo.bar.com


I have not been able to resolve this at all. Any help?
 

PCZero

Well-Known Member
Dec 13, 2003
778
103
193
Earth
By adding the following lines to the addon_fantastico.cgi file I was able to get rid of the existing error but now I have a new error...

-------------------------
ADDED LINES
-------------------------
#!/bin/sh
eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"[email protected]"}; else exec /usr/bin/perl -x $0 ${1+"[email protected]"}; fi;'
if 0;
#!/usr/bin/perl
-------------------------


New error ---

Access Denied: Security Token Failure

Functions in cPanel / WHM are available only directly through the cPanel and WHM interfaces or through our XML API. The administrator of the system has enabled additional security token checks which have flagged this request as possibly malicious. This may be due to an expired session cookie or the use of an older theme which has not been updated to work with the security token system.
Request Info:

Requested page: /cgi/fantastico/index.php
Error message:
Form Data:
Key Value
 

Bigwebmaster

Active Member
Dec 3, 2003
32
9
158
I thought I would still post this here as I was having problems with my server and everywhere I look, nobody actually says what to do. Chances are if you have the problems above your version of fantastico simply is out of date and needs to be updated.

If you update to the latest version:

https://netenberg.com/#fantastico.html

and then click on "Installation", that seemed to fix all these problems for me with regards to security token failures, and any other weird things. Before following the instructions on that page, simply go here:

cd /usr/local/cpanel/whostmgr/docroot/cgi/

and then rename the old fantastico to something like fantastico-old before you follow the install instructions just so you have a backup of the version you were using. Once you install the newer version if everything looks good then you can delete that old version.
 

PCZero

Well-Known Member
Dec 13, 2003
778
103
193
Earth
This problem has surfaced again on another new box. I tried the update suggested by bigwebmaster but that fails at the command:

cd /var/netenberg/fantastico_f3/sources && /usr/local/cpanel/3rdparty/bin/php index.php license


The error thrown says something about Fantastico not being installed in the normal location. Any help is appreciated.
 

PCZero

Well-Known Member
Dec 13, 2003
778
103
193
Earth
Fantastico Fix!

I have found the VERY easy fix for two Fantastico errors. From my experience, these normally happen on a new server or one that has just been reimaged, etc. Both of them occur at WHM - Plugins - Fantastico De Luxe WHM Admin.

---- ERROR ONE START ----

Situation: Internal Server Error 500

Fix: Edit /usr/local/cpanel/whostmgr/docroot/cgi/addon_fantastico.cgi and put the code between the ">>>" lines at the top of the file.

>>>
#!/bin/sh eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"[email protected]"}; else exec /usr/bin/perl -x $0 ${1+"[email protected]"}; fi;'
if 0;
#!/usr/bin/perl
>>>

---- ERROR ONE END ----



---- ERROR TWO START ----

Situation: Invalid Token or Initial Install loops asking you to re-enter your username and password.

Fix: Run the code between the ">>>" lines at shell as root.

>>>
cd /usr/local/cpanel/whostmgr/docroot/cgi
wget -N http://files.betaservant.com/files/free/fantastico_whm_admin.tgz
tar -xzpf fantastico_whm_admin.tgz
rm -rf fantastico_whm_admin.tgz
>>>

---- ERROR TWO END ----


I hope this helps!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Re: Fantastico Fix!

Hello :)

You may also want to report these resolutions directly to Fantastico's support team, as it's a third party application that's not developed by cPanel.

Thank you.
 

PCZero

Well-Known Member
Dec 13, 2003
778
103
193
Earth
Will do Michael and a public thank you again to you for all the help you provide here.