carrotweb
07-24-2002, 02:59 PM
I want to install Mambo on my virtual hosting account, but I don't have shell access. How do I run a perl file called 'install.pl'?
Thanks.
Thanks.
![]() | View Full Version : Newbie Question re Perl carrotweb 07-24-2002, 02:59 PM I want to install Mambo on my virtual hosting account, but I don't have shell access. How do I run a perl file called 'install.pl'? Thanks. microsol 07-24-2002, 03:01 PM I don't know mambo but you should be able to chmod the script to 755 and access it through it's url. apollo 07-24-2002, 03:23 PM ... and you will probably need to rename it to .cgi extension.. usually hosts configure apache server to execute only .cgi files as a scripts Ahmad 07-26-2002, 02:41 AM The problem with these scripts is that they were originally written to run from the command line. They will probably not print the proper headers and might expect you to interact with it through standard input (give you a prompt). MaB 07-26-2002, 11:40 AM This will be a dangerous script so remove it once your done: #!/usr/bin/perl print "content-type:text/html\n\n"; print "Executing...<BR>"; $command = `perl /path/to/pl/file/here.pl`; $command =~ s/\\n/<BR>/g; print "Output: [$command]"; Try it out :) |