Archive

Posts Tagged ‘Fantastico’

Buggy Wget Fantastico issue

August 21, 2010 Leave a comment

This is a script written by me, copy and run this from the shell.
#!/bin/bash
#
# Script for correct wget version and installing Fantastico
#
# Usage: sh fantastico-wget.sh
#
# Script written by Nithin Sunny

echo “####### WGET BUGGY VERSION ISSUE with FANTASTICO INSTALLATION (FIX) #######”
echo -e “\n”
if [ “$(uname -i)” == ‘x86_64’ ]; then
echo “This is a 64 bit server…”
cd
wget http://ftp.gnu.org/gnu/wget/wget-latest.tar.gz
tar xfz wget-latest.tar.gz
cd wget-*
./configure
make
make install
cd ../
rm -Rf wget-*
echo -e “\n”
echo “Fantastico Installation………………………”
cd /usr/local/cpanel/whostmgr/docroot/cgi
wget -N http://www.netenberg.com/files/free/fantastico_whm_admin.tgz
tar -xzpf fantastico_whm_admin.tgz
rm -rf fantastico_whm_admin.tgz
echo -e “\n”
echo “This will install a clean copy of wget on your server at /usr/local/bin/wget; Go into WHM as root, click on the Fantastico Admin area and click install. On the screen, be sure to enter /usr/local/bin/wget as the path to wget…….”
echo -e “\n”
echo “Then click to start the installation….”
exit 1;
else
echo “This is a 32 bit server…”
rpm -qa wget ;
wget ftp://ftp.funet.fi/pub/mirrors/ftp.redhat.com/pub/fedora/linux/core/5/i386/os/Fedora/RPMS/wget-1.10.2-3.2.1.i386.rpm
chattr -ia /usr/bin/wget
rpm -e wget ;
rpm -ivh –force wget-1.10.2-3.2.1.i386.rpm ;
rpm -qa wget ;
echo -e “\n”
echo “Fantastico Installation………………………”
cd /usr/local/cpanel/whostmgr/docroot/cgi
wget -N http://www.netenberg.com/files/free/fantastico_whm_admin.tgz
tar -xzpf fantastico_whm_admin.tgz
rm -rf fantastico_whm_admin.tgz
echo -e “\n”

echo “Go into WHM as root, click on the Fantastico Admin area and click install. “
echo -e “\n”
echo “Then click to start the installation…”
fi

Categories: cPanel, Linux Tags: , ,