Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
> Very Confusing Install, for me anyway
alex905
post Nov 24 2005, 03:30 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 11
Joined: 20-September 05
Member No.: 5,535



i have recently downloaded a server script which is very good but underground it is a exact replica of cpanel and i have no idea how to install as there arnt any instructions.

here what i got

lots of difrent realeases and a file called install i tryed going to the folder were install was and typeing install but i got the error i thougt i would

install: too few arguments

so i looked at the perl file and i couldent see anything maybe you can?

here it is
CODE
#!/usr/bin/perl
$|=1;
$ENV{'LANG'} = 'C';
if (-e "/usr/local/bin/wget" && ! -e "/usr/bin/wget") {
    symlink("../local/bin/wget","/usr/bin/wget");
}
if (-e "/usr/local/cpanel") {
    system("wall "Cpanel Layer 2 Auto-Update Commencing"");
} else {
    system("wall "Cpanel Layer 2 Install Commencing"");
}
chomp($system = `uname -s`);
if ($system =~ /freebsd/i) {
    system("/scripts/ckillall","-9","cpaneld");
    system("/scripts/ckillall","-9","webmaild");
}
system("killall -9 stunnel >/dev/null 2>&1");
print "==>[ MafiaScripts.Com ] Installing.......";
@DANCE=("-","\","|","/");
opendir(INS,".");
@FILES=readdir(INS);
closedir(INS);
$cc = 0;
foreach $file (@FILES) {
    print "b$DANCE[$cc]";    
    if ($file =~ /.gz/) {
 system("tar -C /usr/local -z -x -f $file 2>/dev/null");
    }
    $cc++;
    if ($cc == 4) { $cc = 0; };
}
print "n";
if ($system =~ /freebsd/i) {
    system("/usr/local/cpanel/cpaneld");
    system("/usr/local/cpanel/webmaild");
}
print "==> Running post install scripts....";
chdir("/usr/local/cpanel/install/");
opendir(INS,".");
@FILES=readdir(INS);
closedir(INS);
print "rsyncn";
system("sh rsync 2>/dev/null");
print "rsync completen";
foreach $file (@FILES) {
    next if ($file eq "rsync");
    if ($file !~ /./) {
 print "$file.....";
 if ($file !~ /^z/) {
     if ($file eq "update" || $file eq "newemail") {
   system("sh $file >/dev/null 2>&1");
     } else {
   system("sh $file 2>/dev/null | /scripts/dotbuffer 10");
     }
 } else {
     system("sh $file");
 }
 print "Donen";
    }
}
print "n";
print "==> Cpanel 6 Install Completen";
print "==> Starting Cpanel 6....n";
system("/usr/local/cpanel/startup");
print "==> Post Install Completen";
system("rm -f /tmp/cp3installer.* >/dev/null 2>&1");
system("rm -f /usr/local/cpanel/install/*");
system("wall "Cpanel Layer 2 Install Complete"");


if theres anything else you want to know please ask
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies (1 - 6)
alex905
post Dec 3 2005, 12:45 PM
Post #2


Whats this Lie-nix Thing?
*

Group: Members
Posts: 11
Joined: 20-September 05
Member No.: 5,535



uodate iv been reading and tryed opening the file with the ./install command and it said i dont have the permisions so i chmoded it to 7777 and when i tryed it again i got

bad interpreter: no such file or folder

but i did get the name correct so i dont know what i could be

im on rehat 9.0
Go to the top of the page
 
+Quote Post
Hemant
post Dec 3 2005, 01:30 PM
Post #3


RMS is my Hero
******

Group: Support Specialist
Posts: 782
Joined: 6-October 02
From: Trichy,INDIA
Member No.: 29



Yeah that is a perl program and you should be able to run it out of box,provided you have perl installed...

What is the output of the command:

#chmod +x file_name.pl
#perl <file_name>.pl

When ofcourse the filename is the name of your perl script.It should work...if not lets see. Just make sure you have perl installed.


--------------------
Hemant Kumar
user posted image
hemant@linuxhelp.net
Go to the top of the page
 
+Quote Post
DS2K3
post Dec 3 2005, 04:08 PM
Post #4


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,284
Joined: 14-November 04
From: Southampton, Hampshire
Member No.: 4,165



Techncially, if you chmod it executable, you dont need to run "perl <name of file>", just "./name_of_file" (that's why it has the "magic line" [#!/usr/bin/perl] at the top).


--------------------
Fixed your problem? Let us know!
richard@linuxhelp.net

www.Gathr.co.uk Online Event Management
Go to the top of the page
 
+Quote Post
alex905
post Dec 3 2005, 06:25 PM
Post #5


Whats this Lie-nix Thing?
*

Group: Members
Posts: 11
Joined: 20-September 05
Member No.: 5,535



thanks to both of you because it worked and i have little chances to say thoses words regarding linux latly but hopefuly you people will be able to help me with some other problems that i am haveing which will be covered in other posts biggrin.gif

thanks
Go to the top of the page
 
+Quote Post
DS2K3
post Dec 3 2005, 06:41 PM
Post #6


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,284
Joined: 14-November 04
From: Southampton, Hampshire
Member No.: 4,165



Glad it's working

D


--------------------
Fixed your problem? Let us know!
richard@linuxhelp.net

www.Gathr.co.uk Online Event Management
Go to the top of the page
 
+Quote Post
Joniver
post Jan 14 2009, 09:49 PM
Post #7


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 14-January 09
Member No.: 13,855



QUOTE (alex905 @ Dec 4 2005, 07:25 AM) *
thanks to both of you because it worked and i have little chances to say thoses words regarding linux latly but hopefuly you people will be able to help me with some other problems that i am haveing which will be covered in other posts biggrin.gif

thanks



Good day alex,

Can you teach me step by step on how to setup cPanel Underground

Thanks in advance...

Joni


YM: cnc_joniver
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 15th December 2017 - 04:50 PM