Running Command

 
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI
View previous topic :: View next topic  
Author Message
Jimi_l
-


Joined: 16 Dec 2005
Posts: 33
Location: NH USA

PostPosted: Tue Dec 27, 2005 2:23 am    Post subject: Running Command Reply with quote

Hi All,

I am attempting to install Perlfect Search search engine on my Web site and following the instructions has gone well until this point-

Run the setup utility with the following command: perl setup.pl

I am not sure where to run this or how. On my paid for server it seems to me I just typed in in the browser after the root dir I.E.
www.mysite.com/perl setup.pl

But I have tried every variation I can think of to no avail. I have Active Perl installed and am pretty sure all the associations are correct. Again following the instructions as I went seem to do the trick. I also tried running the installer from the perl package manager. It prompts for a Y or N and when I select Y it just vanishes.

I made a test .pl script, put it in the root folder and can access it from the Web. I put the install script there and tried to run it but got a "for security reasons this cannot be called from a CGI script" message.

Thanks in advance for any help,

Jimi_l
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Tue Dec 27, 2005 11:02 am    Post subject: Reply with quote

try yoursite.com/setup.pl. I think the instructions mean to run it from a command prompt or a shell.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
Jimi_l
-


Joined: 16 Dec 2005
Posts: 33
Location: NH USA

PostPosted: Tue Dec 27, 2005 11:21 am    Post subject: Reply with quote

No luck,

I get the "for security reasons" message. I have tried both locally and externally.

Jimi_l
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Tue Dec 27, 2005 11:23 am    Post subject: Reply with quote

"for security reasons this cannot be called from a CGI script"

It must have to be run from a command prompt or shell then. Try it.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
Jimi_l
-


Joined: 16 Dec 2005
Posts: 33
Location: NH USA

PostPosted: Tue Dec 27, 2005 12:28 pm    Post subject: Reply with quote

The Perl package manager looks like a command line screen (DOS) but doing a search yeilds that is cannot find it in the "repository". I cannot seem to find where the repository is supposed to be from the documentation. There is a folder called repository in the Perl directory but none of the files in it are found when searching from the package manager.

I tried it from START>RUN and up comes the package manager with the CONTINUE Y/N option. Choosing Y just makes it go away.

Jimi_l
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Dec 27, 2005 2:08 pm    Post subject: Re: Running Command Reply with quote

Jimi_l wrote:
Run the setup utility with the following command: perl setup.pl

This translates into the following instructions:
* Go to Start > Run
* Type cmd and press the return key (if you are on Windows 95/98/ME, type command instead).
* The Windows command line window will be opened.
* Type there:
Code:
cd X:\path\to\script\dir

Of course replace X:\path\to\script\dir with the actual full path of the directory where your script is. Press return.
* Type:
Code:
X:

and press return. X: is to be replaced here with the drive where your script directory is (if it is for example in D:\Program Files\Abyss Web Server\htdocs, type D:).
* Now type:
Code:
perl setup.pl

and press return to run the setup script as instructed in the script documentation.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Jimi_l
-


Joined: 16 Dec 2005
Posts: 33
Location: NH USA

PostPosted: Tue Dec 27, 2005 2:16 pm    Post subject: Reply with quote

Runs!

Well it says I am missing DB modules but I can fix that. Apparently you cannot CD to the program files (or any two word) directory in XP (too many parameters)?

I moved the uncompressed folder to root and it trys to install.

Thanks,

Jimi_l
Back to top View user's profile Send private message
MonkeyNation
-


Joined: 05 Feb 2005
Posts: 921
Location: Cardiff

PostPosted: Tue Dec 27, 2005 2:24 pm    Post subject: Reply with quote

Jimi_l wrote:
Apparently you cannot CD to the program files (or any two word) directory in XP (too many parameters)?


Code:
cd "C:\Program Files\"

_________________
Back to top View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number
Jimi_l
-


Joined: 16 Dec 2005
Posts: 33
Location: NH USA

PostPosted: Tue Dec 27, 2005 3:03 pm    Post subject: Reply with quote

Nay,

Too many parameters

Jimi_l
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Dec 28, 2005 5:31 pm    Post subject: Reply with quote

Jimi_l,

Are you sure you launched cmd and not command?
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Jimi_l
-


Joined: 16 Dec 2005
Posts: 33
Location: NH USA

PostPosted: Thu Dec 29, 2005 12:24 pm    Post subject: Reply with quote

Your are correct Sir. It does indeed work that way.

I never realized they envoked different results!!

Jimi_l
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Dec 29, 2005 1:38 pm    Post subject: Reply with quote

Jimi_l wrote:
I never realized they envoked different results!!

cmd and command are not the same beast. command is the old legacy DOS command line shell. It does not support long file names (well this is not fully right, it can support them but it's painful) and does not know about command extensions.
cmd is the modern command line shell. It supports long file names and most of DOS commands are extended if invoked inside it (which results in several new options and parameters even for the standard cd or md commands).
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group