Category: Technical

Technical Information

Cpanel error while installing perl module.

If you get the below error while trying to install a perl module

*********************************************************************

Testing connection speed…(this could take a while)….Done

Ran out of working CPAN mirrors. Please contact cPanel Support at /scripts/cPanelPerl.pm line 209

*********************************************************************

The fix is as below

# rm -f /root/.cpcpan/mirrors.speeds

# rm -f /root/.cpcpan/pingtimes/*

And rerun the script.

Frame Forwarding using Javascript.

That is when you hit abcd.com it will forward to yahoo.com but the URL in address bar will not change. For this put the below content in index.html of the domain abcd.com

 

<html>

<head>

<title>abcd.com</title>

<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>

</head>

<script language=”JavaScript”>

document.write(“<frameset rows=* frameborder=NO border=0 framespacing=0 cols=*>”);

document.write(“<frame name=main src=http://www.yahoo.com”+document.location.search+”>”);

document.write(“</frameset>”);

document.write(“<noframes>”);

document.write(“< body bgcolor=#FFFFFF text=#000000>”);

document.write(“</body></noframes>”);

</script>

</html>